Rrd4j Persistence error

Hi

I’m having truble finding the error in my code.

I get the following error in my log:

2018-02-06 19:51:46.704 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'rrd4j.persist' has errors, therefore ignoring it: [1,1]: mismatched input '<EOF>' expecting 'Strategies'
// persistence strategies have a name and a definition and are referred to in the "Items" section Strategies {
	// for rrd charts, we need a cron strategy
Strategies {
	everyMinute : "0 * * * * ?"
//	everyHour : "0 0 * * * ?"
// 	everyDay : "0 0 0 * * ?"
// 	everyWeek :"0 0 0 0 * ?"
}

Items {
	 Oregon_RainTotal : strategy = everyMinute
	 Oregon_RainTotal_W : strategy = everyMinute
	 Oregon_RainTotal_H : strategy = everyMinute
	 Oregon_RainTotal_D : strategy = everyMinute 

// persist all items once a day and on every change and restore them from the db at startup

	Temperature* : strategy = everyMinute

}

// vim: syntax=Xtend

Maybe the spaces in the second line before the //
But I’m only guessing, If that error is reported only after a change of the file, it might be caused by the handling of the open file. In this case the persistence service should work.

@zamzon - I had the same error and it was indeed just a file-handling effect. You can easily check that the syntax itself reads o.k. by touching the file from the console directly

touch /etc/openhab2/persistence/rrd4j.persist 

and checking the log. If the file refreshes o.k., than the syntax is o.k. and the persistance servce should be running.