RRD4J stoped working after Reboot

Hello,

as written in Topic stoped the Logging via RRD4J after restart of ohenhab2 or the reboot of the Server.
As solution I have to delete the local *.rrd files and make an additional restart of openhab. After this al is working fine till next restart.

I’m on the last Openhab Release 2.5.4, all armbian updates installed.

My rrd4j.persist
    Strategies {
    	// for rrd charts, we need a cron strategy
    	everyMinute : "0 * * * * ?"
    	everyHour : "0 0 * * * ?"
        everyDay : "0 0 0 * * ?" 	
    	default = everyChange
    }
        Items {
        	gHistTemp*,gHistHum*,gHistPres* : strategy = everyUpdate, everyMinute 
        }

Part of my Item Definition

// Historische Temperatur Daten
Group   gHistTemp
Group   gHistHum
Group 	gHistPres
Number GarageTemp1	"Temp Werkstatt [%.1f °C]" <temperature> (gGarage, gHistTemp) 		{ channel="mqtt:topic:oh2mosquitto:Garage:Garage_Werkstatt_Temp" }
Number GarageHum1 	"Feuchte Werkstatt [%.1f %%]" <temperature> (gGarage, gHistHum) 	{ channel="mqtt:topic:oh2mosquitto:Garage:Garage_Werkstatt_Hum" }
Number GarageTemp2	"Temp Garage [%.1f °C]" <temperature> (gGarage, gHistTemp) 			{ channel="mqtt:topic:oh2mosquitto:Garage:Garage_Garage_Temp" }
Number GarageHum2 	"Feuchte Garage [%.1f %%]" <temperature> (gGarage, gHistHum) 		{ channel="mqtt:topic:oh2mosquitto:Garage:Garage_Garage_Hum" }

I set the LOG LEVEL vor rrd4j on DEBUG.

At the non working rrd4j operation I got only the following text in obenhab.log

2020-05-15 07:46:35.612 [DEBUG] [stence.rrd4j.internal.RRD4jActivator] - RRD4j persistence bundle has been started.
2020-05-15 07:46:35.765 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Created default_other = GAUGE heartbeat = 3600 min/max = NaN/NaN step = 1 6 archives(s) = [ MAX xff = 0.999 steps = 1 rows = 3600 MAX xff = 0.999 steps = 10 rows = 1440 MAX xff = 0.999 steps = 60 rows = 1440 MAX xff = 0.999 steps = 900 rows = 2880 MAX xff = 0.999 steps = 21600 rows = 1460 MAX xff = 0.999 steps = 86400 rows = 3650] 0 items(s) = []
2020-05-15 07:46:35.768 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Created default_numeric = GAUGE heartbeat = 60 min/max = NaN/NaN step = 60 6 archives(s) = [ AVERAGE xff = 0.5 steps = 1 rows = 480 AVERAGE xff = 0.5 steps = 4 rows = 360 AVERAGE xff = 0.5 steps = 14 rows = 644 AVERAGE xff = 0.5 steps = 60 rows = 720 AVERAGE xff = 0.5 steps = 720 rows = 730 AVERAGE xff = 0.5 steps = 10080 rows = 520] 0 items(s) = []
2020-05-15 07:46:35.861 [DEBUG] [4j.internal.charts.RRD4jChartServlet] - Starting up rrd chart servlet at /rrdchart.png

When rrd4j persitence is working i got also the storage messages in openhab.log

2020-05-15 08:37:00.551 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'GarageHum1' with state '53.00' in rrd4j database
2020-05-15 08:37:00.560 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'GarageHum2' with state '40.00' in rrd4j database

Any Ideas / solutions

Thank you all

Ingo

Which user is running openHAB and to whom do the rrd files belong?

Service is running under user openhab

ownership of files are all openhab:openhab

-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 GarageHum1.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 GarageHum2.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 GarageTemp1.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 GarageTemp2.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 Pool_Temperatur.rrd
-rwxr-xr-x 1 openhab openhab  32 Apr 19 15:38 Readme.txt
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 Temperatur_Hum_Wohn.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 Temperatur_Ist_FF_BadOben.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 Temperatur_Ist_FF_BadUnten.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 Temperatur_Ist_Kueche.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 Temperatur_Ist_Samuel.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 Temperatur_Ist_Schlafzimmer.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 Temperatur_Ist_Wohn.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 Thermometer_Garten_Hum.rrd
-rw-r--r-- 1 openhab openhab 28K Mai 15 11:42 Thermometer_Garten_Temp.rrd

OK, doesn’t look bad (although on my system the group openhab is als allowed to write, but I don’t think that the cause).
I’m sorry, but I have no idea what could be causing such.

I’m also on openHAB 2.5.4 and its working before and after a rrestart.

Hello,

the problem was fixed after I granted write access for the group openhab to the rrd files. I dont no why but it work

Ingo

1 Like

Hello @Hubaer
I have the same problem, but only since the lastVersion of Openhab (2.5.10).
Can you write to me how you granted the write access.
I am sorry, I am no pro.

thanks in advance

In yout folder with the rrd files:

sudo chmod g+w *.rrd