The web server could not write required files to the filesystem

I am on Ubuntu 20.04 and I got this:

I did everything that was asked but nothing changes

Sam.

What is in librenms.log?

What is the output of ./validate.php (run as user librenms)

Always the same thing

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

Component Version
LibreNMS 21.5.1-20-g70023c0b5
DB Schema Not Connected (0)
PHP 7.4.3
Python 3.8.5
MySQL ?
RRDTool 1.7.2
SNMP NET-SNMP 5.8
====================================

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

And I got that in the logs/librenms.log:

[2021-06-04 00:46:04] production.ERROR: SQLSTATE[HY000] [1698] Access denied for user ‘DBUSER’@‘localhost’ (SQL: select * from cache where key = laravel_cachechecks_popup_timeout limit 1) (View: /opt/librenms/resources/views/auth/login.blade.php) {“exception”:"[object] (Illuminate\View\ViewException(code: 0): SQLSTATE[HY000] [1698] Access denied for user ‘DBUSER’@‘localhost’ (SQL: select * from cache where key = laravel_cachechecks_popup_timeout limit 1) (View: /opt/librenms/resources/views/auth/login.blade.php) at /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php:678)

Sam.

You haven’t got the correct user/PW set.
Looks like you even haven’t edited yet.
Please check the install instructions carefully again.

Check the .env Duke in the librenms directory and set correct user and password.

Yes I had incorrectly entered the user or the password, now I get that!

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

Component Version
LibreNMS 21.5.1-20-g70023c0b5
DB Schema 2021_04_08_151101_add_foreign_keys_to_port_group_port_table (208)
PHP 7.4.3
Python 3.8.5
MySQL 10.3.29-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP NET-SNMP 5.8
====================================

[OK] Composer Version: 2.1.0
[OK] Dependencies up-to-date.
[WARN] You have no devices.
[FIX]:
Consider adding a device such as localhost: /addhost
[OK] Database connection successful
[OK] Database schema correct
[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

Sam.

Web UI should work in that state. Have you added your first device?

Well no I created a new Device Group but when I want to add a machine I get this:

Capture librenme3

:roll_eyes:

Sam.

Please post the complete output from ./validate.php (run as librenms), the output of librenms log and the complete screenshot, not Just a snippet.

Also please add your first device via cli before.

Adding a device - LibreNMS Docs" Adding a device - LibreNMS Docs

I think you have missed a step someone where you set users for php/webserver or so.
Double check all steps in Install LibreNMS - LibreNMS Docs

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

Component Version
LibreNMS 21.5.1-20-g70023c0b5
DB Schema 2021_04_08_151101_add_foreign_keys_to_port_group_port_table (208)
PHP 7.4.3
Python 3.8.5
MySQL 10.3.29-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP NET-SNMP 5.8
====================================

[OK] Composer Version: 2.1.0
[OK] Dependencies up-to-date.
[WARN] You have no devices.
[FIX]:
Consider adding a device such as localhost: /addhost
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:

The librenms.log
https://p.libren.ms/view/5d9e1cd1

I of course tried that but now I have a problem with SNMPD because on my machines I am in SysV and apparently SNMPD is made for Systemd and do not want to start in SysV.

I’ll see how to fix it …

Sam.

I connected a machine by cli which had an SNMPD installed but a lot of interface pages in NOT FOUND no graphs image either…

Sam.

Hi,

SNMPD and LibreNMS too complicated to configure …

I give up, thank you anyway for your help.

Sam.

To be honest it is very easy also for beginners.
Set up a new Ubuntu Server and give it a try.

No, I don’t want to reinstall my Ubuntu machine, installing and managing LibreNMS are too complex for me.

Thanks anyway for your time.

Sam.

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