Hello all,
First of all, thank you very much for releasing LibreNMS as FLOSS (and using the GPL3).
- Steps to reproduce an issue.
I setup LibreNMS from this Site (Doc LibreNMS Site)
If i came up to the point: “Webinstaller” (http://librenms.example.com/install) i get the “502“ Error by NGINX. Long time i read here in the community about this (30 results for502 error nginx)
Now that I’ve tried “all” the options, I’m turning to you (somewhat desperately). ![]()
I followed the (many) tips, for example:
i do: sudo /usr/sbin/php-fpm8.3 --nodaemonize --fpm-config /etc/php/8.3/fpm/php-fpm.conf
i have “checkout” a earlyer version & have done the ./daily.sh
i have test it with 2 options in /etc/php/8.3/fpm/pool.d/librenms.conf
# listen = /run/php-fpm-libremns.sock
;listen = 127.0.0.1:9000
I have “kick off“ => sudo aa-teardown
nothing helped ![]()
php -v
PHP 8.3.6 (cli) (built: Jul 14 2025 18:30:55) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies
- The output of
./validate.php
librenms@librenms:~$ ./validate.php
| Component | Version |
|---|---|
| LibreNMS | 25.9.0-dev.42+acf742d05 (2025-09-10T14:48:39+00:00) |
| DB Schema | No Schema (0) |
| PHP | 8.3.6 |
| Python | 3.12.3 |
| Database | MariaDB 10.11.13-MariaDB-0ubuntu0.24.04.1 |
| RRDTool | 1.7.2 |
| SNMP | 5.9.4.pre2 |
| =========================================== |
[OK] Composer Version: 2.8.11
[OK] Dependencies up-to-date.
Exception: Illuminate\Database\QueryException SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘librenms.devices’ doesn’t exist (Connection: mysql, SQL: select exists(select * from devices) as exists) @ /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php:824
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php(778): Illuminate\Database\Connection->runQueryCallback()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php(397): Illuminate\Database\Connection->run()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3561): Illuminate\Database\Connection->select()
#3 /opt/librenms/LibreNMS/Validations/Configuration.php(53): Illuminate\Database\Query\Builder->exists()
#4 /opt/librenms/LibreNMS/Validator.php(90): LibreNMS\Validations\Configuration->validate()
#5 /opt/librenms/validate.php(147): LibreNMS\Validator->validate()
#6 {main}
In Connection.php line 824:
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘librenms.devices’ doesn’t exist (Connection: mysql, SQL: select exists(select * from devices) as
exists)
In Connection.php line 406:
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘librenms.devices’ doesn’t exist
nginx error.log tells:
2025/09/12 11:19:43 [crit] 1622215#1622215: *1 connect() to unix:/run/php-fpm-librenms.sock failed (2: No such file or directory) while connecting to upstream, client: $CLIENT_IP, server: $LIBRENMS_SVR_NAME, request: “GET /install HTTP/1.1”, upstream: “fastcgi://unix:/run/php-fpm-librenms.sock:”, host: “$LIBRESERVER_IP”
2025/09/12 11:19:58 [crit] 1622218#1622218: *5 connect() to unix:/run/php-fpm-librenms.sock failed (2: No such file or directory) while connecting to upstream, client: $CLIENT_IP, server: $LIBRESERVER_NAME, request: “GET /install HTTP/1.1”, upstream: “fastcgi://unix:/run/php-fpm-librenms.sock:”, host: “$HOSTNAME_LIBRENMS”
What else can I do?
Thanks in advance.
Mike