Installation bug (wizard problem)


I’m new to librenms and was planning on migrating from cacti.

When I did my first wizard, I stumble upon the following error on stage 2:

Starting Update…
SQLSTATE[HY000] [2002] No route to host (SQL: select * from information_schema.tables where table_schema = librenms and table_name = migrations and table_type = ‘BASE TABLE’)

I know that this is normally related to routing problem but :

  • no firewall
  • no selinux
  • the database server is on the same subnet
  • the stage 1 completed. (so connection to database is working)
  • I can telnet 3306 and ping the database server from the librenms server.
  • if I hardcode the hostname in “vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php” , it is working.

You can check all the detail of my installation in the pastebin :

Thank you for your time!

That is your error it means it can’t connect to your mysql server as it can’t figure out how to reach the IP you supplied. (typo perhaps)

I check and rechecked everything. No typo.

The fact that the previous step is successful mean that the connection work no?

usually yes. I would make sure to clear your cookies to start a new install session and that the file /opt/librenms/.env does not exist yet.

Yep, I did all of that. 2 days of debugging. Anyway, it is working with the workaround. If anyone get that problem, some trace will exist on the web. Thank you. @+!