Home Assistant LOG errors please help

hallo , i have migrated my hass from raspberry to VM ( ubuntu system with virtualbox and hassio vdi ) , all seems working correctly but checking the logs i have tons of errore every minute …
below you can find one , can you help me to check and identity how to solve ?the migration had saved me a lot of time, so i would like to avoid to configure again all the system…
‘’’’’’’’’’’’’’’’’’’
‘‘Error executing query: (sqlite3.DatabaseError) database disk image is malformed
[SQL: INSERT INTO events (event_type, event_data, origin, time_fired, created, context_id, context_user_id) VALUES (?, ?, ?, ?, ?, ?, ?)]
[parameters: (‘state_changed’, ‘{“entity_id”: “sensor.powr2_energy_current”, “old_state”: {“entity_id”: “sensor.powr2_energy_current”, “state”: “unknown”, “attributes”: {“unit_of_me … (510 characters truncated) … :00”, “last_updated”: “2020-02-14T09:11:06.227675+00:00”, “context”: {“id”: “a603c2d9d603426496e46af9877f451f”, “parent_id”: null, “user_id”: null}}}’, ‘LOCAL’, ‘2020-02-14 09:11:06.227746’, ‘2020-02-14 09:11:06.486654’, ‘a603c2d9d603426496e46af9877f451f’, None)]
(Background on this error at: http://sqlalche.me/e/4xp6
‘’’’’’’

Looks like a database problem. I suggest deleting the db and restart HA.

As @Burningstone said;

  • delete the file “home-assistant_v2.db” in your config folder
  • restart HA

hallo, thanks i deleted home-assistant_v2.db and restarted , all seems works fine now …
thanks everybody

Nice to hear! :grin: