Data from next century in history

Hi,
I’m experiencing a strange issue with historical data. Occasionally, after a reboot (due to a power outage), I notice data captured in the year 2119! :smiley:
image
I was able to resolve the problem temporarily by removing the entire history using homeassistant/home-assistant_v2.db, but the issue reoccurs after a few reboots. This problem emerged after integrating InfluxDB, Grafana and updating HA core, hard to say when exactly this started but before those action i had no problem over 2 years. Later after reboot every timestamp is correct and everything ic correctly stored, but due to this one/few record from future, charts are corrupted and this is anoying.

I would prefer not to remove the entire history periodically. Is there any way to fix this?

Thanks!

it’s most likely corrupted data. Get a UPS and have the machine shutdown gracefully when it detects a power outage. NUT (network utility tools) supports most UPS’s, which gives you this info.

Thanks for idea, yes this may help.
Problem is that i never saw this issue before - without UPS. Only recently this pops up but i’m not sure what was exact rootcause because i made few changes at once