How to "reinstall"?


My database crashed so I created a fresh db for LibreNMS.

Now I goto hostname/install it shows

403 This should only be called during install

I’ve run build-base.php and validate.php passes.

librenms@librenms:~$ ./validate.php

Component Version
LibreNMS 1.68-10-g5b892dc4f
DB Schema 2020_09_22_172321_add_alert_log_index (174)
PHP 7.3.19-1~deb10u1
Python 3.7.3
MySQL 10.3.23-MariaDB-0+deb10u1
RRDTool 1.7.1


[OK] Composer Version: 1.10.13
[OK] Dependencies up-to-date.
[WARN] You have no devices.
Consider adding a device such as localhost: /addhost
[OK] Database connection successful
[OK] Database schema correct

Now I can open the login page but I don’t have an account to login.

Question is how do I go though the installation steps again or something else to bring it back with a fresh install?

thank you

You just need to create a user: lnms user:add --role=admin (with a username)

thank you, it worked!

I changed ip’s on server then access denied. adding a user worked for me Thanks!!

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