Waiting 30s for database to be ready…
ERROR: Failed to connect to database on localhost
I can connect to the local database instance with those credentials though…
mysql -u librenms -plibrenms123
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 108
Server version: 5.5.56-MariaDB MariaDB Server
Any idea why this isn’t working? I don’t see it even trying to connect to the mysql server.
Initializing LibreNMS files / folders…
Setting LibreNMS configuration…
Fixing permissions…
Checking additional Monitoring plugins…
Waiting 30s for database to be ready…
ERROR: Failed to connect to database on 127.0.0.1
Thanks for the help guys. I figured out my problem. It was a mysql problem. It didn’t like that the user was coming from the docker0 ip address so it kept denying access. Normally I would have spotted that pretty quickly with a packet capture but I am still getting the hang of dockers.
Chas,
I actually tried to use docker compose but the version of docker compose I can download didn’t like the sample config that Jaris provided.