Closed metbril closed 7 years ago
I checked again, the problem occured after upgrade from b5 to stable:
From /var/log/apt/history.log:
Start-Date: 2017-01-25 20:31:49
Commandline: apt-get install openhab2
Requested-By: ian (1001)
Install: openhab2:armhf (2.0.0-1)
Remove: openhab2-online:armhf (2.0.0~b5)
End-Date: 2017-01-25 20:36:39
From /var/log/openhab2/ ( grep rrd4j.persist openhab.log*)
openhab.log.5:2017-01-25 16:24:07.264 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
openhab.log.5:2017-01-25 16:25:37.230 [DEBUG] [sistence.internal.PersistenceManager] - Initializing rrd4j persistence service.
openhab.log.5:2017-01-25 20:38:45.376 [ERROR] [urce.impl.DefaultResourceDescription] - /var/lib/openhab2/rrd4j.persist (No such file or directory)
openhab.log.5:java.io.FileNotFoundException: /var/lib/openhab2/rrd4j.persist (No such file or directory)
openhab.log.5:2017-01-25 20:38:45.377 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
openhab.log.5:2017-01-25 20:38:45.400 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'rrd4j.persist' is either empty or cannot be parsed correctly!
openhab.log.5:2017-01-26 00:11:52.823 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
(I symlinked /etc/openhab2/persist/*.persist to /var/lib/openhab2/ just before the restart at 2017-01-26 00:11)
I there anything I can check to provide more information? Where does openhab2 look for the the path for the .persist file?
Other configuration files are working fine (items, rules, services, transform, sitemaps are in use without any problems).
Have you checked recent commits to the repo?
Give me a hint.
Hi @rtvb and @euphi, I was still unable to replicate this. Is this problem still occurring for you both?
There was no change/update to the stable package, so the problem still occurs.
To have same progress, it would be helpful to know how openhab2 determines the path of its .persist configuration files.
To have same progress, it would be helpful to know how openhab2 determines the path of its .persist configuration files.
Honestly, I'm not sure. It's not something that's specifically set for the package so I assume it's been fixed somewhere on the distro end. @kaikreuzer would you be able to shed light on why rrd4j is looking in a different place than other persistence services?
@BClark09: All .persist file are only found in /var/lib/openhab2.
In my case, these are mapdb.persist and rrd4j.persist only, because no other persistence services are installed.
And I simply can't replicate that problem... For me, on a new install of the latest snapshot and on my full 2.0.0 stable system mapdb.persist and rrd4j.persist only work if they're in /etc/openhab2/persistance, where it is expected they will be.
Note nothing in my /var/lib/openhab2
But when I change the files inside /etc/openhab2/persistance:
Hi @euphi and @metbril, since I'm still unable to replicate this problem I'm going to close this issue for now. Can you let me know if you have any replication steps or new information, and I can open this issue again.
Mhm. Unfortunately no one answered my question, where openhab stores its config path, so I was not able to investigate further. I assume there was something special in my upgrade path, so that this configuration (whereever it persisted) was wrong.
For myself,the problem is solved, because I reinstalled my complete server (for other reasons), so the config is now read correctly from /etc/openhab.
I still have the backup of the old installation (complete root-filesystem of the Linaro installation), so I could look up something, if someone told me what to look up and where.
Hi @euphi, glad you have if sorted. Quite honestly, I wouldn't know where that specific path for persistence is set but I do know that it uses the OPENHAB_CONF
folder prefix. This is set using a file called oh2_dir_layout and goes in /usr/share/openhab2
.
Initially raised by @euphi here:
https://github.com/openhab/openhab-distro/issues/405