Installation Issue on GUI level (php8.1)

Hi all

I’m trying to setup the product since yesterday.
Yesterday, using the old setup instructions still based on php7.4,
I was able to reach the web GUI showing the pre-check page,
where a message inform about the necessity to use php8.1 version.

Today I repeated the procedure, which is updated including the php8.1.
The ngingx and fpm services are starting (apparently) properly,
but I can’t gain the access to the web GUI to complete the installation.

The following error banner appeared.

librenms_error

Here below some logs.
Could someone help me please ?
Thanks in advance
I.


root@librenms:/opt/librenms#
root@librenms:/opt/librenms#
root@librenms:/opt/librenms# service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-08-05 15:08:53 CEST; 39min ago
Docs: man:nginx(8)
Process: 564 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 711 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 4033 ExecReload=/usr/sbin/nginx -g daemon on; master_process on; -s reload (code=exited, status=0/SUCCESS)
Main PID: 716 (nginx)
Tasks: 9 (limit: 9505)
Memory: 17.6M
CPU: 278ms
CGroup: /system.slice/nginx.service
├─ 716 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
├─4034 nginx: worker process
├─4035 nginx: worker process
├─4036 nginx: worker process
├─4037 nginx: worker process
├─4038 nginx: worker process
├─4039 nginx: worker process
├─4040 nginx: worker process
└─4041 nginx: worker process

ago 05 15:08:52 librenms systemd[1]: Starting A high performance web server and a reverse proxy server…
ago 05 15:08:53 librenms systemd[1]: Started A high performance web server and a reverse proxy server.
ago 05 15:10:43 librenms systemd[1]: Reloading A high performance web server and a reverse proxy server.
ago 05 15:10:43 librenms systemd[1]: Reloaded A high performance web server and a reverse proxy server.
ago 05 15:20:10 librenms systemd[1]: Reloading A high performance web server and a reverse proxy server.
ago 05 15:20:10 librenms systemd[1]: Reloaded A high performance web server and a reverse proxy server.
ago 05 15:20:45 librenms systemd[1]: Reloading A high performance web server and a reverse proxy server.
ago 05 15:20:45 librenms systemd[1]: Reloaded A high performance web server and a reverse proxy server.
ago 05 15:47:44 librenms systemd[1]: Reloading A high performance web server and a reverse proxy server.
ago 05 15:47:44 librenms systemd[1]: Reloaded A high performance web server and a reverse proxy server.
root@librenms:/opt/librenms# service php8.1-fpm status
● php8.1-fpm.service - The PHP 8.1 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php8.1-fpm.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-08-05 15:47:49 CEST; 23s ago
Docs: man:php-fpm8.1(8)
Process: 4053 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.1/fpm/pool.d/www.conf 81 (code=exited, st>
Main PID: 4047 (php-fpm8.1)
Status: “Processes active: 0, idle: 4, Requests: 0, slow: 0, Traffic: 0req/sec”
Tasks: 5 (limit: 9505)
Memory: 12.6M
CPU: 71ms
CGroup: /system.slice/php8.1-fpm.service
├─4047 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf)
├─4049 php-fpm: pool librenms
├─4050 php-fpm: pool librenms
├─4051 php-fpm: pool www
└─4052 php-fpm: pool www

ago 05 15:47:49 librenms systemd[1]: Starting The PHP 8.1 FastCGI Process Manager…
ago 05 15:47:49 librenms systemd[1]: Started The PHP 8.1 FastCGI Process Manager.
root@librenms:/opt/librenms#
root@librenms:/opt/librenms#
root@librenms:/opt/librenms#

librenms@librenms:~$ ./validate.php

Component Version
LibreNMS 22.7.0-46-g36e7a7793
DB Schema Not Connected (0)
PHP 8.1.8
Python 3.9.2
Database Not Connected
RRDTool 1.7.2
SNMP 5.9
====================================

[OK] Composer Version: 2.3.10
[OK] Dependencies up-to-date.
Could not connect to database, check logs/librenms.log.

cat /opt/librenms/logs/librenms.log


Next Illuminate\Database\QueryException: SQLSTATE[HY000] [1045] Accesso non consentito per l’utente (( it means: access denied for user )) : ‘librenms’@‘localhost’ (Password: NO) (SQL: select * from config where (config_name = snmp.unescape) limit 1) in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php:712
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php(672): Illuminate\Database\Connection->runQueryCallback()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php(376): Illuminate\Database\Connection->run()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2414): Illuminate\Database\Connection->select()
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2402): Illuminate\Database\Query\Builder->runSelect()
#4 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2936): Illuminate\Database\Query\Builder->Illuminate\Database\Query{closure}()
#5 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2403): Illuminate\Database\Query\Builder->onceWithColumns()
#6 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(625): Illuminate\Database\Query\Builder->get()
#7 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(609): Illuminate\Database\Eloquent\Builder->getModels()
#8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(294): Illuminate\Database\Eloquent\Builder->get()
#9 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(474): Illuminate\Database\Eloquent\Builder->first()
#10 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(508): Illuminate\Database\Eloquent\Builder->firstOrNew()
#11 /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->updateOrCreate()
#12 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2132): Illuminate\Database\Eloquent\Model->forwardCallTo()
#13 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2144): Illuminate\Database\Eloquent\Model->__call()
#14 /opt/librenms/LibreNMS/Config.php(259): Illuminate\Database\Eloquent\Model::__callStatic()
#15 /opt/librenms/LibreNMS/Config.php(471): LibreNMS\Config::persist()
#16 /opt/librenms/LibreNMS/Config.php(60): LibreNMS\Config::processConfig()
#17 /opt/librenms/app/Providers/ConfigServiceProvider.php(27): LibreNMS\Config::load()
#18 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Providers\ConfigServiceProvider->boot()
#19 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#20 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#21 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#22 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(653): Illuminate\Container\BoundMethod::call()
#23 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(924): Illuminate\Container\Container->call()
#24 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(905): Illuminate\Foundation\Application->bootProvider()
#25 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation{closure}()
#26 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(906): array_walk()
#27 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\Foundation\Application->boot()
#28 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
#29 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\Foundation\Application->bootstrapWith()
#30 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(127): Illuminate\Foundation\Console\Kernel->bootstrap()
#31 /opt/librenms/app/Console/Kernel.php(72): Illuminate\Foundation\Console\Kernel->handle()
#32 /opt/librenms/artisan(37): App\Console\Kernel->handle()
#33 {main}

You have configured invalid credentials to the database

Hi

thanks for the reply.
I just put a new password at this level of the DB installation procedure :

CREATE USER 'librenms'@'localhost' IDENTIFIED BY 'password';

I used a simple alphanumeric combination, no special characters.
After that I never used that password, no prompt asked to insert it (no GUI access).
How can be invalid that passwd?
Thanks again for your time
I.

Hi again

I just finished a new fresh-install on another VM, directly based on PHP8.1 as reported into the new install guide, and everything goes fine.
Probably the upgrade from the previous version 7.4 to the new 8.1 introduced the issue on my old installation attempt.
Now I correctly reached the GUI installation section where I was asked to insert the DB credentials,
and the setup finished.
Thanks, regards
I.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.