LibreNMS logs not writable (raspberry pi)


I’m having issues with my monitoring system which was perfectly running fine on Raspberry Pi
Now I get this error when I try to login to LibreNMS.
Error: logs not writable! Run these commands as root on your LibreNMS server to fix:
chown -R librenms:librenms /opt/librenms/logs

setfacl -R -m g::rwx /opt/librenms/logs

setfacl -d -m g::rwx /opt/librenms/logs

If using SELinux you may also need:
semanage fcontext -a -t httpd_sys_content_t ‘/opt/librenms/logs(/.*)?’

semanage fcontext -a -t httpd_sys_rw_content_t ‘/opt/librenms/logs(/.*)?’

restorecon -RFvv /opt/librenms/logs

I tried to run those commands but they are not for the Debian GNU on Pi, Anyone has an Idea?

Thanks in advance

Sounds similar to this one

If it still doesn’t work can you do a ls -li inside your logs directory and show us the output

Presumably chown worked ?

1 Like

Thanks, Chas

Changing the /opt/librenms/logs/librenms.log permission worked

1 Like