Hello everybody,
Since the php 7.3 update (I’ve used the same exact config used in php 7.2 before), I see this error every time I try to logon on the web interface:
# Whoops, the web server could not write required files to the filesystem.
### Running the following commands will fix the issue most of the time:
### Cannot write to log file: "logs/librenms.log"
Make sure it exists and is writable, or change your LOG_DIR setting.
#### If using SELinux you may also need:
semanage fcontext -a -t httpd_sys_rw_content_t 'logs/librenms.log(/.*)?'
restorecon -RFv logs/librenms.log
The strange thing is that I don’t have error in the librenms log, only the polling info (polling, services, and notification works well).
Validate output:
root@libre:/opt/librenms# ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.47-44-g29f8a8d4a
DB Schema | 281
PHP | 7.3.0-2+0~20181217092659.24+stretch~1.gbp54e52f
MySQL | 10.3.12-MariaDB-1:10.3.12+maria~stretch
RRDTool | 1.6.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.8.0
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
root@libre:/opt/librenms#
Logs folder output:
root@libre:/opt/librenms/logs# ls -l
total 41192
-rwxrwxr-- 1 librenms librenms 38077540 mai 15 2016 access_log
-rwxrwxr-- 1 librenms librenms 2086408 janv. 14 00:15 daily.log
-rwxrwxr-- 1 librenms librenms 864828 mai 15 2016 error_log
-rw-rwxr-- 1 librenms librenms 1131895 janv. 14 07:30 librenms.log
It works if I use chmod 664 on the librenms.log file but the permissions change back to what I’ve outputed. Any idea why?
Thanks