Some graphs are not drawing

Hello,

This morning I am having some issues with some graphs drawing. Some work, while some do not. The error I get when looking at the rrd output is:

ERROR: rrdcached: rrd_fetch_r failed: mmaping file '/opt/librenms/rrd/switch01/port-id6787.rrd': Invalid argument

Either that file doesn’t exist, or it doesn’t have permission.

Run ./validate.php

I checked and the file does exist, but it looks empty. I ran the validate and got the following:

====================================
Component | Version
--------- | -------
LibreNMS  | 1.33-234-g712201e
DB Schema | 223
PHP       | 7.0.22-0ubuntu0.16.04.1
MySQL     | 10.0.31-MariaDB-0ubuntu0.16.04.2
RRDTool   | 1.5.5
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Database connection successful
[OK]    Database schema correct

Can you show the file permissions of the rrd file?

Also, are you using rrdcached?

I had to turn off RRDcached because something with the permissions was causing no graphs to be drawn even if I give the folders 777 access.

The permissions of all the files are “-rw-rw-r–”

Is rrdcached still enabled in your config.php?

If you follow the rrdcached docs, you won’t have any permissions issues. Make sure rrdcached is running with the correct command line switches.

https://docs.librenms.org/Extensions/RRDCached/