Trying to install OH2, moving from OH1. I did have an earlier snapshot of OH2 running on the system, but upgrading it failed to start. I then tried to do a compoletely “clean” install (removed the existing snapshot and all openhab2 directories. Even tried the beta5 release. No matter what I try, I end up with this error in syslog, and a constantly restarting service:
Dec 27 00:06:54 raspberrypiOH start.sh[18632]: Launching the openHAB runtime...
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: /var/lib/openhab2/etc/custom.properties (No such file or directory)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: Error occurred shutting down framework: java.io.FileNotFoundException: /var/lib/openhab2/etc/custom.properties (No such file or directory)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: java.io.FileNotFoundException: /var/lib/openhab2/etc/custom.properties (No such file or directory)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at java.io.FileInputStream.open0(Native Method)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at java.io.FileInputStream.open(FileInputStream.java:195)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at java.io.FileInputStream.<init>(FileInputStream.java:138)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at java.io.FileInputStream.<init>(FileInputStream.java:93)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at org.apache.karaf.util.config.PropertiesLoader.loadPropertiesFile(PropertiesLoader.java:150)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at org.apache.karaf.util.config.PropertiesLoader.loadIncludes(PropertiesLoader.java:190)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at org.apache.karaf.util.config.PropertiesLoader.loadPropertiesFile(PropertiesLoader.java:173)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at org.apache.karaf.util.config.PropertiesLoader.loadConfigProperties(PropertiesLoader.java:71)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at org.apache.karaf.main.ConfigProperties.<init>(ConfigProperties.java:205)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at org.apache.karaf.main.Main.updateInstancePidAfterShutdown(Main.java:226)
Dec 27 00:06:57 raspberrypiOH start.sh[18632]: at org.apache.karaf.main.Main.main(Main.java:191)
Dec 27 00:06:57 raspberrypiOH systemd[1]: openhab2.service: main process exited, code=exited, status=254/n/a
I even went as far as copying the custom.properties file from cloudbees into the folder where it’s missing, but then the service gets through this step and appears to hang after a “Startlevel changed” message. No http server on port 8080 even after 15+ minutes, no error messages in syslog, and no logs in /var/log/openhab2 (openhab.log never gets created).
Does anyone have any idea what could be wrong, or how I could further “clean” my system before reinstalling OH2? I’m sure it’s some leftover of the OH1 install or the OH2 snapshot I had running prior…
My next step would be to try openhabian from scratch, but I don’t want to lose the other configs I have on this RPI2.