Some generic hints for librenms issues on Centos, August 2018

Hi.

Did an update on my install yesterday. Had some issues. Fixed them. This worked for me:

  • yum update

  • cd /opt/librenms
    ./daily.php
    ./validate.php

  • missing new dependency mysqlnd
    install mysqlnd. On centos, this means some permutation of:
    yum remove php72w-mysql
    yum install php72w-mysqlnd
    yum swap php72w-mysql php72w-mysqlnd

  • permissions nagging about /opt/librenms/.pki/nssdb
    chown -R librenms:librenms /opt/librenms/
    chmod 755 /opt/librenms/.pki/nssdb

  • some composer issue
    ./scripts/composer_wrapper.php install --no-dev

  • rebooting for good measure

after this, validate in GUI still complained.

  • remove cookies in webbrowser and login again
2 Likes

Hi, i’ve got a problem applying this fix:

“missing new dependency mysqlnd
install mysqlnd. On centos, this means some permutation of:
yum remove php72w-mysql
yum install php72w-mysqlnd
yum swap php72w-mysql php72w-mysqlnd”

for the command “yum install php72w-mysqlnd” the system returns me this:
“Error: php72w-common conflicts with php70w-common-7.0.31-1.w7.x86_64”

If i apply the --skip-broken parameter, the system returns me this packages skipped:
" php72w-common-7.2.8-1.w7.x86_64 from webtatic
php72w-mysqlnd-7.2.8-1.w7.x86_64 from webtatic
php72w-pdo-7.2.8-1.w7.x86_64 from webtatic"

I’ve cleaned the yum repository with “yum clean all”, but still the same problem. Anyone can help me? Thank you so much.

Hi everyone, it seems to be the PHP version, the command “yum swap php70w-mysql php70w-mysqlnd” worked for me.

Greetings!

1 Like

I did that along with this:

chown -R librenms:librenms /opt/librenms
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/

The 3 lines above (really the last 2) fixed my issues from the web UI not working after login.
CentOS 7 + PHP 7.0

2 Likes

This worked for mine too. Thanks for posting Zach!