question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recorder warns sqlite3 was not shutdown cleanly, despite controlled shutdown

See original GitHub issue

The problem

Recently, I often but not always get a warning that the Recorder’s default sqlite3 DB was not shutdown cleanly. This is despite performing a controlled shutdown via the UI on the Hardware settings page.

Currently running 2022.6.x and HAOS 8.1. This issue started within the past month or so. Hard for me to pinpoint if it’s correlated with HAOS 8.x or the Core version.

I have a feeling this issue will need to be moved to the HAOS repo, but the direct problem that is logged is from Recorder.

I have run HAOS in a VM for a few years (OVA image running within KVM on Proxmox). I always shut it down from within the HAOS guest via the UI.

I am sure there are more diagnostics I can help pull, I am not sure where to start.

Thank you teams!

2022-06-18 09:21:03 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly

image

What version of Home Assistant Core has the issue?

core-2022.6.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Recorder

Link to integration documentation on our website

https://www.home-assistant.io/integrations/recorder/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:5
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
adamfeldmancommented, Jul 27, 2022

Thanks for the info @pvizeli! The issue remains in the 2022.7.x series and on HAOS 8.2.

In my experience it’s very consistent – IIRC anytime I’ve done a controlled shutdown via the UI, the sqlite warning shows up in the logs.

0reactions
Commifreakcommented, Jan 2, 2023

Same here (docker) 2023-01-02 10:40:07.272 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly but it always was a clean shutdown. Maybe sometimes the shutdown does not finish ongoing events? During my test I had this:

2023-01-02 10:45:31.925 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2023-01-02 10:45:31.984 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=13 from 2023-01-02 09:44:37.593355)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on startup - Configuration - Home Assistant Community
Your database is toast (not unheard of in terms of sqllite). A simple fix is to shutdown HA, delete the database ( //config/home-assistant_v2.db...
Read more >
DbServer not shutdown cleanly - Ubiquiti Community
even when UnIFi is correctly stopped, the message is there, complaining that it was not shutdown correctly. How can i get rid of...
Read more >
RTI Recording Service
vice may not shut down properly. In this case, Recording Console displays an error that the service stopped unexpectedly. [RTI Issue ID RECORD-135]....
Read more >
Troubleshooting - SimpleScreenRecorder - Maarten Baert's
OpenGL recording doesn't work: the application size is not recognized ... which I thought I was suppose to but when I restart pulse,...
Read more >
Persistent queues (PQ) | Logstash Reference [8.5] - Elastic
Data may be lost if an abnormal shutdown occurs before the checkpoint file has been committed. A persistent queue does not handle permanent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found