I have been attempting to install Librenms on a Digital Ocean Linux “Droplet”, I first tried with Ubuntu, following the instructions on Librenms website I got as far as modifying the mariadb configuration file but the directory and file didn’t exist. /etc/mysql/mariadb.conf.d/50-server.cnf. I did find my.cnf and modified that but would not validate …
So next I tried with CentOS, I got as far as the SELinux commands, it errors not finding directories or files.
This is getting quite frustrating, I’m not a Linux expert. Does anyone have a sure fire way of installing this? Thank you!
Both distros I used are on the list
@jayjzz can you post what errors you are receiving?
And the distro you are using is Centos?
Hi Kevin, thank you … I am using this hardware / CentOS config 512 MB Memory / 20 GB Disk / SFO1 - CentOS 7.3.1611 x64
Here are the errors
[root@centos-512mb-sfo1-01 librenms]# semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/logs(/.*)?'
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.30, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.30: No such file or directory
/sbin/load_policy: Can’t load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.30, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.30: No such file or directory
/sbin/load_policy: Can’t load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
OSError: No such file or directory
Try yum install policycoreutils-python
again.
[root@centos-512mb-sfo1-01 librenms]# yum install policy-python
Loaded plugins: fastestmirror
base | 3.6 kB 00:00
epel/x86_64/metalink | 12 kB 00:00
epel | 4.3 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
webtatic | 3.6 kB 00:00
(1/2): epel/x86_64/updateinfo | 807 kB 00:01
(2/2): epel/x86_64/primary_db | 4.7 MB 00:00
Loading mirror speeds from cached hostfile
okay no do a yum update and then try the semanage fcontext -a -t httpd_sys_content_t ‘/opt/librenms/logs(/.*)?’
I did a yum update, ran fine … looks like the same error
[root@centos-512mb-sfo1-01 librenms]# semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/logs(/.*)?'
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.30, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.30: No such file or directory
/sbin/load_policy: Can’t load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.30, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.30: No such file or directory
/sbin/load_policy: Can’t load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
OSError: No such file or directory
Jay,
i did quick google search and looks like that is issue with SELinux and old version of it. you need to update SElinuix. This dosnt look like issue with LibreNMS.
You could also just disable SELinux.
1 Like
Wonderful … thank you … After I disable it, I would just continue with the firewall commands?
Thank you so much for your help …
You can yes, if you don’t run the firewall (on by default in CentOS 7.3) then you can skip those commands.