starting version 3.2.2
[INFO] Use exists mariadb initial system
[INFO] Start MariaDB
180103 17:02:52 mysqld_safe Logging to '/data/databases/core-mariadb.err'.
180103 17:02:52 mysqld_safe Starting mysqld daemon with databases from /data/databases
[INFO] Init custom database
[INFO] Create database homeassistant
[INFO] Init/Update users
[INFO] Update user hass
[INFO] Init/Update rights
[INFO] Alter rights for hass@homeassistant - homeassistant
And yet I get this error every time x10.
2018-01-03 17:07:43 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (_mysql_exceptions.OperationalError) (2005, "Unknown MySQL server host 'core-mariadb' (-3)") (retrying in 3 seconds)
I’ve tried uninstalling it and reinstalling it. I’ve tried all sorts of options for the database, and I’ve even tried deleting my old history data to see if that would help. I’ve got nothing. Any help would be greatly appreciated.
No I do not use the pi-hole add on. I have Check Home Assistant configuration, Let’s Encrypt, Duckdns, Samba share, Rpc shutdown, Configurator, and Ssh server. Along with the Mariadb of course.
If MariaDB is running on the same host as HomeAssistant, try replacing mysql://hass:my-password@core-mariadb/homeassistant with mysql://hass:[email protected]/homeassistant or mysql://hass:my-password@localhost/homeassistant
edit: just realized this is for Hass.io, so my suggestions may not apply.
I am trying to get my home assistant to use MariaDB using the docker image however none of my history seems to be updating. I don’t seem to have any errors in the log file but they aren’t updating in history or the logbook either. If I stop my MariaDB docker then I do get a bunch of errors. Any ideas on what is going on or what to check for here? A lot of my devices show as unknown in the history or device history not found.
Strange - I’ve added only to the configuration ‘history:’ entry.
And the problem disapeared…
Now this part has entry:
# Set-up MariaDB for Hass.io
recorder:
db_url: mysql://hass:[email protected]/homeassistant?charset=utf8
# Track history, changes, etc.
history:
Is that really needed ‘history:’ entry in ‘configuration.yaml’ when switched to ‘MariaDB’…???
I could not find "a must’ i any documentation/community. As per detailed documentation here:
This integration ‘history:’ is by default enabled, unless you’ve disabled or removed the default_config: line from your configuration.
Looks like this entry it is still needed in ‘configuration.yaml’…
It probably had to do with the indentation. You missed a TAB on db_url… In your next post you fixed that issue. I don’t think it has anything to do with the history tracker.
I’m wondering (a little daunted after banging my head against this one) if these commands Mariabd backup/restore could be used from within the addon’s container, backing up and restoring using an exposed hass share.