Graphs are not loading after Migration

Before posting i looked at all the relevant posts and could not correct my issue.

Really scratching my head now…

Moved from RHEL 7 → RHEL 9.6
Followed all the instructions for the migration.

config.php and .env all appear to fine.

This issue is that no graphs will load including the poller graphs:

I see the files in each of the devices in the rrd/ directory are being updated every 5 minutes

i ran the following to make sure permissions were good:

chown -R librenms:librenms /opt/librenms
chmod 771 /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/
$ ./validate.php 
===========================================
Component | Version
--------- | -------
LibreNMS  | 25.6.0-20-ga1dd554e5 (2025-06-18T19:46:31-04:00)
DB Schema | 2025_06_11_173916_drop_alert_rule (344)
PHP       | 8.2.28
Python    | 3.9.21
Database  | MariaDB 10.5.27-MariaDB
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================

[OK]    Composer Version: 2.8.9
[OK]    Dependencies up-to-date.
[OK]    Database Connected
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrd_dir is writable
[OK]    rrdtool version ok

git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean


What ami missing?

This is the error when i try to load the rrd int he poller -

In doing more digging and testing.

I added a new device, localhost, same result, no graphs.

I think it has something to do with my nginx config.

I am using a signed SSL cert and dual stack v4/v6 on the interface.

here is my nginx conf file:

server {
 listen      80;
 server_name <removed>;
 return 301 https://<removed>;
}
server {
 listen 443 ssl http2;
 listen [::]:443 ssl http2;
 ssl_certificate /etc/nginx/ssl/<removed>.crt;
 ssl_certificate_key /etc/nginx/ssl/<removed>.key;
 access_log /var/log/nginx/nginx.vhost.access.log;
 error_log /var/log/nginx/nginx.vhost.error.log;
 server_name <removed>;
 root        /opt/librenms/html;
 index       index.php;


 charset utf-8;
 gzip on;
 gzip_types text/css application/javascript text/javascript application/x-javascript image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
 location / {
  try_files $uri $uri/ /index.php?$query_string;
 }
 location ~ [^/]\.php(/|$) {
  fastcgi_pass unix:/run/php-fpm-librenms.sock;
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  include fastcgi.conf;
 }
 location ~ /\.(?!well-known).* {
  deny all;
 }
}

Did you check rrdcached?

Thank you for the reply.

I’m not sure what I would check with rrdcached?

in my config its disabled, as it was on the previous server:

#$config['rrdcached']

enable it?

Thank you for any guidance.

Ok,

I tried to enable it but the logs are throwing the error of permission denied.

I followed the instructions provided in -

n 20 00:13:19  systemd[1]: Starting LibreNMS: Data caching daemon of rrdtool...
░░ Subject: A start job for unit rrdcached.service has begun execution
░░ 
░░ A start job for unit rrdcached.service has begun execution.
░░ 
░░ The job identifier is 327912.
Jun 20 00:13:19  rrdcached[1060729]: Failed to create base directory '/opt/librenms/rrd/': Permission denied
Jun 20 00:13:19  systemd[1]: rrdcached.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ An ExecStart= process belonging to unit rrdcached.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 3.
Jun 20 00:13:19  systemd[1]: rrdcached.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ The unit rrdcached.service has entered the 'failed' state with result 'exit-code'.
Jun 20 00:13:19 ns-power.uvm.edu systemd[1]: Failed to start LibreNMS: Data caching daemon of rrdtool.


Ideas on how to clear this error?

Thanks in advance.


I fixed this issue. Graphs are working again.

Had to make chanes to SELinux:

require {
        class dir { getattr search };
        class file { lock open read write };
        type rrdcached_t;
        type user_home_t;
}
#============= rrdcached_t ==============
allow rrdcached_t user_home_t:dir { getattr search };
allow rrdcached_t user_home_t:file { lock open read write };

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.