Graphs Permission Denied

===========================================

Component Version
LibreNMS 23.9.1-1-g52bc8dc7d (2023-09-20T06:41:31-05:00)
DB Schema 2023_09_01_084057_application_new_defaults (259)
PHP 8.2.3
Python 3.9.14
Database MariaDB 10.5.16-MariaDB
RRDTool 1.7.2
SNMP 5.9.1
===========================================

[OK] Composer Version: 2.6.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[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
[FAIL] No active polling method detected
[OK] Dispatcher Service not detected
[OK] Locks are functional
[FAIL] No active python wrapper pollers found
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
includes/discovery/ports.inc.php
includes/polling/ports.inc.php
misc/db_schema.yaml

I am working on migrating our existing Libre instance from a RHEL 7 to RHEL 9, and running into issues with graphing. All the graphs display the same error graphic and say permission denied trying to open the rrd file. The only graphs that will display properly are the processor and memory graphs, but as soon as the first poll runs, they become like the rest.
I have tried changing rrd/ to 777, and putting the apache user in the the librenms group, but nothing changes it. rrd/ is currently 775, the device folders are all 777. All of the rrd files are 777 or 774. Haven’t touched these so not sure why they’re not all the same.
I’ve tried looking at other similar topics, but none of the steps have resolved my issue.

Forgot to mention I have disabled all of the cron jobs for the moment to make sure nothing gets changed while I’m working on this issue.

Just ran the rrd graph command as apache, and it appears to work. Does the web UI run the command as apache?

sudo -u apache rrdtool graph …
Output: 1703x369

Does anyone have any ideas for why I’m getting permission denied?

I went ahead and deleted the rrd directory and ran poller.php to repopulate the directory. That made graphs start working. I then started migrating the rrd folders over from the old Libre server, and I now have historical data. Don’t know why it didn’t work the first time, but now it works.

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