I’m a Pi3 user running the apt-get instance of the unstable version of 2.2.0.
In 2.2.0 1102 I was noticing my Z-Wave would drop occasionally (roughly after 24 hours). The Zwave controller (Aeon ZStick Gen2) would remain initialised but all nodes would be offline/uninitialised.
In my previous occurrence when this happened, I simply updated Openhab and the problem went away for a while longer. It happened again on Friday so I upgraded my OH2 platform to at the time 1104. This took me further from the solution, in that OH2 wouldn’t even run then.
When upgrading, I stop the service, clear /cache/ and /tmp/, and perform an apt-get install --reinstall on both openhab2 and openhab2-addons. This generally, hasn’t caused me any grief, until 1104.
Thinking 1104 might be fundamentally broken, I’ve done the same again tonight, this time I’ve received 1106, but still getting the same issue.
OH2 ‘does run’ but sits at “Please stand by while UIs are being installed. This can take several minutes.” no matter how long I leave it, it sits there.
Any ideas of how I could troubleshoot this? What log options should I change? I tend not to use Karaf, but instead, monitor openhab.log in a log viewer. In org.ops4j.pax.logging.cfg I have changed the OpenHAB and Smarthome from INFO to TRACE… is there any other’s I could change/investigate?
To clarify openHAB does start but doesn’t get past the installing UIs stage?
There should be errors (not just info’s or traces) printed in openhab.log for a problem like this. Are there any?
One issue that comes to mind is one that the unstable builds have had recently but is now fixed. Could you check the contents of /var/lib/openhab2/etc/org.openhab.addons.cfg to see if it contains quote marks? It shouldn’t so if there is, then these should be removed. For example:
OH2 service runs, but it sits at “Loading UIs”… I left it overnight, 13 hours or so, and woke to the same message. I have experienced the same issue you mention above, my org.openhab.addons.cfg looks “clean”.
I even removed that file and hoped addons.cfg would re-populate it. To no avail.
I’ve just done a very granular clean down, and short of uninstalling, I don’t know what else I can do now.
I’m now running #1109. But still facing the same issues. It’s been sat loading UI for an hour.
Could be related to one of the issues that seems to have been on going for a while with snapshots where by installation of openhab2-addons gets things messed up on restarts. Only just started dabbling in snapshots myself this week and got very frustrated with trying to get a clean snapshot install (based on the documentation) running on a clean machine and eventually nailed it to this lot:
So I’ve now got a clean OH snapshot running without doing the apt-get for the addons and I’m testing migration of my OH2.1 version stuff. Basically the addons are available from the online repos so you can live without them offline.
Not sure if the latest and greatest snapshot should now have a proper fix (or is in the build pipeline) as the maintainers are talking about prerparing for a 2.2 release.
I’m curious as to how you uninstalled. By “nuke directories”, do you mean manually deleted directories, then APT would have seen this as a user configuration, and would not have repopulated items when you reinstalled.
To completely wipe openHAB’s directories (move anything important away first):
I am on Ubuntu 16 Server running as a VM with ESXi server and using apt-get install and upgrades. Just had the stuck at UIs earlier today after the upgrade to 1112. But can typically get it going with a reboot.
Yes, and I think that is where the problem is occurring. I have 3 addons in my \usr\share\openhab2\addons directory, They are the test security zwave binding, osram lightify, and myq addons. And in the logs, I can see those 3 bindings are getting an error with an uresolved requirement of com.google.common.base
2017-12-04 13:48:30.509 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.zwave-2.2.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zwave [11]
Unresolved requirement: Import-Package: com.google.common.collect
at org.eclipse.osgi.container.Module.start(Module.java:444) [?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) [?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1253) [8:org.apache.felix.fileinstall:3.5.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1225) [8:org.apache.felix.fileinstall:3.5.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512) [8:org.apache.felix.fileinstall:3.5.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361) [8:org.apache.felix.fileinstall:3.5.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312) [8:org.apache.felix.fileinstall:3.5.8]
2017-12-04 13:48:30.523 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.myq-1.10.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.myq [12]
Unresolved requirement: Import-Package: com.google.common.base
at org.eclipse.osgi.container.Module.start(Module.java:444) [?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) [?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1253) [8:org.apache.felix.fileinstall:3.5.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1225) [8:org.apache.felix.fileinstall:3.5.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512) [8:org.apache.felix.fileinstall:3.5.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361) [8:org.apache.felix.fileinstall:3.5.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312) [8:org.apache.felix.fileinstall:3.5.8]
2017-12-04 13:48:30.527 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.osramlightify-2.2.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.osramlightify [10]
Unresolved requirement: Import-Package: com.google.common.base
I just did an ‘apt-get update’ to the latest #1112 and it killed startup of my simple test installation, wouldn’t load the UIs. Before the update it was apt-get installed without addons as previously said, plenty of reinstalls with purges to get it running. Wouldn’t usually consider a server reboot for this sort of software but did give it a shot and it worked?! That would suggest the service management wasn’t or isn’t stop/starting properly although only did the documented method. I’ll pay a little more attention the services and processes if it shows again.
This isn’t just for openHAB however, this is the same for anything apt installed. To clean everything related to a program you must use apt-get purge. If you manually delete things without purging, the things set as “configurable” won’t replace themselves because apt assumes that deleting the file was a choice you made.