OH2 fails to start after I upgraded from build #674 to #688. Via journalctl I see that the error is:
start.sh[2542]: Error occurred shutting down framework: java.io.FileNotFoundException: /var/lib/openhab2/etc/custom.properties (No such file or directory)
I’ve confirmed that /var/lib/openhab2/etc/custom.properties is not there.
I just tried:
apt remove openhab2-offline
rm -rf /var/lib/openhab2
apt install openhab2-offline
The install started openhab2, which systemd repeatedly attempts to restart for the following reason:
Jan 1 15:00:45 openHABianPi start.sh[7709]: Launching the openHAB runtime...
Jan 1 15:00:46 openHABianPi start.sh[7709]: /var/lib/openhab2/etc/custom.properties (No such file or directory)
Jan 1 15:00:46 openHABianPi start.sh[7709]: Error occurred shutting down framework: java.io.FileNotFoundException: /var/lib/openhab2/etc/custom.properties (No such file or directory)
Jan 1 15:00:46 openHABianPi start.sh[7709]: java.io.FileNotFoundException: /var/lib/openhab2/etc/custom.properties (No such file or directory)
There seems to have been some errors swallowed by apt when I first upgraded openhab2-offline. apt -V openhab2-offline showed that there were a number of files missing/differing from those installed from the .deb, in particular several in /var/lib/openhab2/etc/, including custom.properties.
With that knowledge in hand, instead of using apt, I used dpkg --purge to uninstall., I tried
dpkg --purge openhab2-offline
(after I had backed up /etc/openhab2). I then reinstalled openhab2-offline using