I’ve completed a fresh install of LibreNMS on Centos 8 using nginx. The base installation is working fine as follows:
[[email protected] librenms]# ./validate.php ==================================== Component | Version --------- | ------- LibreNMS | 1.65-58-g35488d89b DB Schema | 2020_06_23_00522_alter_availability_perc_column (171) PHP | 7.2.24 Python | 3.6.8 MySQL | 10.3.17-MariaDB RRDTool | 1.7.0 SNMP | NET-SNMP 5.8 ==================================== [OK] Composer Version: 1.10.9 [OK] Dependencies up-to-date. [OK] Database connection successful [OK] Database schema correct
As there aren’t any specific installation instructions for rrdcached on Centos 8 I followed those available for Centos 7. I created the /etc/systemd/system/rrdcached.service as specified but when I try to start the service I get the following error:
[[email protected] librenms]# systemctl enable --now rrdcached.service Job for rrdcached.service failed because the control process exited with error code. See "systemctl status rrdcached.service" and "journalctl -xe" for details.
systemctl status gives the following detail:
[[email protected] librenms]# systemctl status rrdcached.service ● rrdcached.service - Data caching daemon for rrdtool Loaded: loaded (/etc/systemd/system/rrdcached.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2020-07-28 11:29:03 BST; 3s ago Process: 2357 ExecStart=/usr/bin/rrdcached -w 1800 -z 1800 -f 3600 -s librenms -U librenms -G librenms -B -R -j /var/tmp -l unix:/run/rrdcached.sock -t 4 -F -b /opt/librenms/rrd/ (code=exited, status=3) Jul 28 11:29:03 localhost.localdomain systemd: Starting Data caching daemon for rrdtool... Jul 28 11:29:03 localhost.localdomain rrdcached: Failed to create base directory '/opt/librenms/rrd/': Permission denied Jul 28 11:29:03 localhost.localdomain systemd: rrdcached.service: Control process exited, code=exited status=3 Jul 28 11:29:03 localhost.localdomain systemd: rrdcached.service: Failed with result 'exit-code'. Jul 28 11:29:03 localhost.localdomain systemd: Failed to start Data caching daemon for rrdtool.
This is an error that doesn’t make a lot of sense to me as rrddcached is set to run as the librenms user in the librenms group and the /opt/librenms/rrd directory is owned by librenms/librenms:
[[email protected] librenms]# ls -lh /opt/librenms | grep rrd drwxrwxr-x+ 3 librenms librenms 47 Jul 28 11:10 rrd
I’ve not done a lot with Centos 8 so I may well be missing something obvious but does anyone have any pointers about how I can resolve this issue?