MariaDB Failure. How to reset librenms password?


I tried logging into Libre yesterday and was met with the “whoops” message. Got onto PUTTY and pulled this for ./validate.php. My first attempt is to upgrade the MariaDB but the documented password for librenms does not work. How can I reset that password? I think once I get that upgraded I can continue to use the WebGUI.

-bash-4.2$ ./
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Caching Mac OUI data OK
-bash-4.2$ ./validate.php

Component Version
LibreNMS 21.5.1-34-g0489382
DB Schema 2020_12_14_091314_create_port_group_port_table (205)
PHP 7.4.11
Python 3.6.8
MySQL 5.5.65-MariaDB
RRDTool 1.4.8


[OK] Composer Version: 2.1.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] MariaDB version 10.2.2 is the minimum supported version as of March, 202 1.
Update MariaDB to a supported version, 10.5 suggested.
[FAIL] Your database is out of date!
./lnms migrate
[WARN] Global lnms shortcut not installed. lnms command must be run with full p ath
sudo ln -s /opt/librenms/lnms /usr/bin/lnms
[WARN] Bash completion not installed. lnms command tab completion unavailable.
sudo cp /opt/librenms/misc/lnms-completion.bash /etc/bash_completion.d/

lnms user:add --role=admin test

Am I doing something wrong?

[[email protected] ~]# su - librenms
Last login: Wed Jun 16 15:44:22 CDT 2021 on tty1
-bash-4.2$ lnms user:add --role=admin test
-bash: lnms: command not found

Do what it suggests to create the lnms link, otherwise you’ll need to run ./lnms

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