Cannot Login after Fresh Install

Hello,

I have finished installing LibreNMS on a fresh install of Ubuntu server 18.04 I followed the install guide here https://docs.librenms.org/Installation/Installation-Ubuntu-1804-Apache/ I can get to the web page but when I try to login I receive a small popup that says Login denied. This sounds like permissions to me but I am not sure where to look. I have looked over the forum posts and not found much help on this issue maybe I am looking in the wrong place. I have been able to fix other problems by looking through the forum and that has been great so thank you everyone for that. Here are my ./validate.php results

====================================

Component Version
LibreNMS 1.57-60-gdec9a498e
DB Schema 2019_10_03_211702_serialize_config (146)
PHP 7.2.24-0ubuntu0.18.04.1
MySQL 10.1.41-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.9.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] You have not added any devices yet.
[FIX]:
You can add a device in the webui or with ./addhost.php
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
logs/.gitignore
rrd/.gitignore
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/cache/data/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore

I don’t think I am too far off from getting in but I can’t figure out where I am going wrong.
I am a Linux novice at best so I may have questions to your answers.
thank you, Andy

Add a new user: ./lnms user:add

also, run ./scripts/github-remove -d like it says to fix the .gitignore issues.

1 Like

That worked perfect! Thank you so much

====================================

Component Version
LibreNMS 1.57-70-gbf181b9dc
DB Schema 2019_04_22_220000_update_route_table (147)
PHP 7.2.24-0ubuntu0.18.04.1
MySQL 10.1.41-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3
====================================

[OK] Composer Version: 1.9.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] You have not added any devices yet.
[FIX]:
You can add a device in the webui or with ./addhost.php

what is ./lnms user:add ?

It is a script you run on the command line from within the librenms directory as the librenms user.