Cannot complete new LNMS install. Error while building DB

Hello,

I’ve been going crazy trying to set up a new installation of LNMS.

Here’s the details -

The issue is -

Once I get to the end where I go to http://librenms.local.net/install, I see four green happy looking boxes for the following items -

PHP 8.3.6
pdo_mysql
mysqlnd
gd

I enter the db password, check credentials comes back fine, then I click Build Database. This is where I get my trouble.

It starts fine with stuff wizzing by, but I end up with an error. Here’s the last bit of output:

6ms
DONE
2025_03_18_003446_drop_bouncer_tables

15ms
DONE
2025_03_22_134124_fix_ipv6_addresses_id_type

25ms
DONE

INFO Seeding database.

Database\Seeders\DefaultAlertTemplateSeeder … RUNNING
Database\Seeders\DefaultAlertTemplateSeeder … 3 ms DONE

Database\Seeders\ConfigSeeder … RUNNING
Database\Seeders\ConfigSeeder … 1 ms DONE

Database\Seeders\RolesSeeder … RUNNING
SQLSTATE[HY000] [1045] Access denied for user ‘librenms’@‘localhost’ (using password: NO) (Connection: mysql, SQL: delete from cache where key = laravel_cache_spatie.permission.cache)

Error!

I have tried everything I can think of. I’ve tried different browsers, Chrome and Firefox. I’ve deleted the whole installation and started over so many times now I’ve lost count. At first, I thought maybe it was because of the DB password I was using because it had a “#” in it. So I ditched the pound sign. Started over, used different password… Same result. The last few attempts, after starting from stratch, I made the password “librenms”, just to rule out that somehow that password was causing a problem. Same result. No matter how many times I try to install, I get that same error!

Please, can someone help me figure out how to get past this error?

I’m happy to provide whatever information would help.

Thank you,

-Alan

I have the same issue. I got passed it by editing the .env file with the database login information. That said, once I got past that issue, I ran into another issue where it reports database inconsistencies. I think that the installer is busted. I believe this has been reported and there is a fix coming.

I read about the .env file and I wanted to take a look, but I couldn’t find it. If I remember, it is supposed to be in /opt/librenms

If it’s true the installer is broken, then I’ll be waiting eagerly for a fix because we’re without monitoring currently. I feel blind. Thanks for the reply!

Yep, it is located here… /opt/librenms/.env

Can you point me to where the issue was reported? I’ve searched all kinds of things and didn’t find anything that was installer related.

actually, the issue has been resolved with the latest release. Run a git pull and the issue should resolve.