RRDCACHEd exited

Recently the graphs stopped working because rrdcached exits with error -1

“okt 18 08:37:53 THEHOST rrdcached[14887]: queue_thread_main: rrd_update_r (/opt/librenms/rrd/theswitch/port-id5069.rrd) failed with status -1. (/opt/librenms/rrd/theswitch/port-id5069.rrd: illegal attempt to update using time 1 illegal attempt to update using time 1539794865 when last update time is 1539794865 (minimum one second step))”

Why would rrd use the same time stamp?

Multiple pollers running?

Single instance with 2 minutes polling.

Only one rrdcached running:

ps aux | grep rrd
librenms 14887  2.5  0.9 4450372 77280 ?       Ssl  okt18  40:10 /usr/bin/rrdcached -B -F -R -w 1800 -z 1800 -t 16 -b /opt/librenms/rrd/ -j /var/lib/rrdcached/journal/ -G librenms -U librenms -p /run/rrdcached.pid -s librenms -l unix:/run/rrdcached.sock
myuser+ 21311  0.0  0.0  14472  1092 pts/0    S+   10:35   0:00 grep --color=auto rrd

rrdcached crashed again, but now there is no trace of my in journalctl -u rrdcached

Any tips on how to start tshoot this?

I have not found any solution to this so Im trying to go back to 5 mins polling. Hopefulle that will solve the problem. if not whats the best way to purge the rrd data?

There must be a issue with Libre since rrd thinks libre tries to update everysecond/ the same second.

I converted all rrd files to 5 mins and set the polling to 5 mins, from 2 min. And the issue stopped.

so no more
rrdcached[14887]: queue_thread_main: rrd_update_r (/opt/librenms/rrd/theswitch/port-id5069.rrd) failed with status -1. (/opt/librenms/rrd/theswitch/port-id5069.rrd: illegal attempt to update using time 1 illegal attempt to update using time 1539794865 when last update time is 1539794865 (minimum one second step))”

with 5 minutes polling.

I thought the only options were 5 min poling and 1 min polling?

@Kristoffer_Fagerlund did you convert your rrd files after changing frequency as outlined in the docs?

@Kevin_Krumm any frequency is allowed really. Probably stick to full minutes though.

1 Like

from 5 min -> 1 min yes I think so. It was a while ago tho.