[SOLVED] Error with rrd4j. Evertime editing rrd4j.persist Exception occurs (Openhab 2.2.0)

Everytime I edit rrd4j.persist the Exception (down under) occurs.
No persistence state is stored in /var/lib/openhab2/persistence/rrd4j

The strange thing is, that it worked until last weekend. Now I can’t persist the state of the items.

/etc/openhab2/persistence/rrd4j.persist:
Strategies {
everyMinute : “30 * * * * ?”
everyHour : “20 0 * * * ?”
everyDay : “40 0 0 * * ?”
}
Items {
* : strategy = everyMinute, restoreOnStartup
}

Output in openhab.log:
2018-06-02 22:35:30.577 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘rrd4j.persist’
2018-06-02 22:35:30.651 [ERROR] [.core.internal.folder.FolderObserver] - Error handling update of file ‘/etc/openhab2/persistence/rrd4j.persist’: Infinite or NaN.
java.lang.NumberFormatException: Infinite or NaN
at java.math.BigDecimal.(BigDecimal.java:895) [?:?]
at java.math.BigDecimal.(BigDecimal.java:872) [?:?]
at org.openhab.core.library.types.DecimalType.(DecimalType.java:45) [200:org.openhab.core.compat1x:2.2.0]
at org.openhab.persistence.rrd4j.internal.RRD4jService.mapToState(RRD4jService.java:346) [240:org.openhab.persistence.rrd4j:1.11.0]
at org.openhab.persistence.rrd4j.internal.RRD4jService.query(RRD4jService.java:215) [240:org.openhab.persistence.rrd4j:1.11.0]
at org.openhab.core.persistence.internal.QueryablePersistenceServiceDelegate.query(QueryablePersistenceServiceDelegate.java:47) [200:org.openhab.core.compat1x:2.2.0]
at org.eclipse.smarthome.core.persistence.internal.PersistenceManagerImpl.initialize(PersistenceManagerImpl.java:262) [114:org.eclipse.smarthome.core.persistence:0.10.0.b1]
at org.eclipse.smarthome.core.persistence.internal.PersistenceManagerImpl.startEventHandling(PersistenceManagerImpl.java:377) [114:org.eclipse.smarthome.core.persistence:0.10.0.b1]
at org.eclipse.smarthome.core.persistence.internal.PersistenceManagerImpl.addConfig(PersistenceManagerImpl.java:352) [114:org.eclipse.smarthome.core.persistence:0.10.0.b1]
at org.eclipse.smarthome.model.persistence.internal.PersistenceModelManager.modelChanged(PersistenceModelManager.java:101) [139:org.eclipse.smarthome.model.persistence:0.10.0.b1]
at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:314) [134:org.eclipse.smarthome.model.core:0.10.0.b1]
at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:143) [134:org.eclipse.smarthome.model.core:0.10.0.b1]
at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:247) [134:org.eclipse.smarthome.model.core:0.10.0.b1]
at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.processWatchEvent(FolderObserver.java:311) [134:org.eclipse.smarthome.model.core:0.10.0.b1]
at org.eclipse.smarthome.core.service.WatchQueueReader.run(WatchQueueReader.java:209) [109:org.eclipse.smarthome.core:0.10.0.b1]
at java.lang.Thread.run(Thread.java:748) [?:?]

Anyone an Idea, what’s going wrong?

Try deleting the file and create a new one. BUT type in the new file don’t copy and paste. You may have one or more rogue invisible characters in there causing the error.

Hi, thanks a lot.
now the Execption isn’t thrown any longer, but the files in
/var/lib/openhab2/persistence/rrd4j
aren’t updated, so I think, the state of the items aren’t persisted…

Did you restart OH? After creating the new rrdj4.persist file?

Yes I restarted… Still the same

Had to delete all files in /var/lib/openhab2/persistence/rrd4j/
Afterwards rrd4j was running…