-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Recorder with external SQL server - "Database not ready" error #6179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This will likely be fixed by #6167. |
Installing the I suspect SQLAlchemy throws an uncaught exception on the recorder thread and this message is generated by other processes blocking on the recorder. Since #4614 these will increase the timers and throw proper exceptions, but the root cause will still be hidden. Will propose a possible fix. |
Home Assistant release (
hass --version
): 0.38.4Python release (
python3 --version
): Python 3.5.2Component/platform: Recorder
Description of problem:
After configuring the Recorder with the "db_url", the following error message appears in the log:
[homeassistant.components.recorder] Database not ready, waiting another 10 seconds.
No data written or read from the database
Expected:
Uploading dat to the database and read them.
Problem-relevant
configuration.yaml
entries and steps to reproduce:Additional info:
recorder is a MySQL server, the user name,password db read/write is working outside HA
More cases in the forum:
https://community.home-assistant.io/t/0-38-1-database-not-ready/11724
Possible solution
The HA not checking (and not installing) the required sql python package (in my case mysqlclient).
Temporary fix could be the
It could be great, if the HA could install the proper component "on-the-fly" after the start.
The text was updated successfully, but these errors were encountered: