I flashed an SD card with the new 1.5 image for PI3 the installed samba add-on, then dropped my system snapshot in the backup folder and restored the system configs.
However, after the restore (from a no error Hassio 1.3/Hass 0.73) the logs are filling up with mysql errors, (log snip below).
I checked my config files and they are the same as the working configs from the previous install. I when thru the wiki pages on configuring mariadb, in case I missed something new to configure, seems not.
In “confiurayion.yaml” I have:
recorder:
db_url: mysql://hass:mypassword@core-mariadb/homeassistant
purge_keep_days: 25
exclude:
entities:
- sensor.date
- sensor.time
And mariadb config:
{
"databases": [
"homeassistant"
],
"logins": [
{
"username": "hass",
"host": "%",
"password": "mypassword"
}
],
"rights": [
{
"username": "hass",
"host": "%",
"database": "homeassistant",
"grant": "ALL PRIVILEGES ON"
}
]
}
Errors from log:
2018-07-12 19:34:01 ERROR (Recorder) [homeassistant.components.recorder] Error in database update. Could not save after 11 tries. Giving up
2018-07-12 19:34:01 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2003, 'Can\'t connect to MySQL server on \'core-mariadb\' (111 "Connection refused")') (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-12 19:34:01 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (_mysql_exceptions.OperationalError) (2003, 'Can\'t connect to MySQL server on \'core-mariadb\' (111 "Connection refused")') (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-07-12 19:34:05 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 4, 416218))] (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-12 19:34:05 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 4, 416218))] (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-07-12 19:34:09 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 8, 728844))] (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-12 19:34:09 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 8, 728844))] (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-07-12 19:34:14 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 12, 989077))] (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-12 19:34:14 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 12, 989077))] (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-07-12 19:34:18 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 17, 257096))] (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-12 19:34:18 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 17, 257096))] (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-07-12 19:34:22 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 21, 509604))] (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-12 19:34:22 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 21, 509604))] (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-07-12 19:34:27 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 25, 748872))] (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-12 19:34:27 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 25, 748872))] (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-07-12 19:34:31 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 30, 53153))] (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-12 19:34:31 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 30, 53153))] (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-07-12 19:34:35 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 34, 338450))] (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-12 19:34:35 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 34, 338450))] (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-07-12 19:34:39 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 38, 610302))] (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-12 19:34:39 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (%s, %s, %s, %s, %s)'] [parameters: ('service_registered', '{"domain": "hassio", "service": "host_reboot"}', 'LOCAL', datetime.datetime(2018, 7, 12, 22, 55, 33, 167490, tzinfo=<UTC>), datetime.datetime(2018, 7, 12, 23, 34, 38, 610302))] (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-07-12 19:34:39 ERROR (Recorder) [homeassistant.components.recorder] Error in database update. Could not save after 11 tries. Giving up
Did I run in to a bug or did I miss some necessary upgrade steps?