Hardware: Raspberry Pi 4 (I think)
OS: Raspbian
openHAB version:4.0.0
I went on vacation for a week, and when I came back could no longer access openHAB (not able to see anything via the web interface on port 8080). I tried just restarting the raspberry pi, and it didn’t help. I can log in to the raspberry pi remotely, so the pi itself is working.
Because of the problem I (maybe stupidly) decided to upgrade packages, and it looks like openHAB got upgraded to version 4.0.0, but I still can’t access it, and the raspberry pi is still accessible.
If I check the openHAB service status in linux command line, I get this (looks like the service is running but something is wrong):
openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-02-27 19:23:21 GMT; 3min 26s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Main PID: 479 (java)
Tasks: 38 (limit: 4915)
CGroup: /system.slice/openhab.service
└─479 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/openhab -Dopenhab.logdir=/var/log/openha
Feb 27 19:24:10 raspberrypi karaf[479]: ... 13 more
Feb 27 19:24:10 raspberrypi karaf[479]: Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core.storage.json/4.0.0.202302270306: missing requirement [org.openhab.core.storage.json/4.0
Feb 27 19:24:10 raspberrypi karaf[479]: at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
Feb 27 19:24:10 raspberrypi karaf[479]: ... 14 more
Feb 27 19:24:10 raspberrypi karaf[479]: Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core.config.core/4.0.0.202302270304: missing requirement [org.openhab.core.config.core/4.0.0
Feb 27 19:24:10 raspberrypi karaf[479]: at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
Feb 27 19:24:10 raspberrypi karaf[479]: ... 15 more
Feb 27 19:24:10 raspberrypi karaf[479]: Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core/4.0.0.202302270301: missing requirement [org.openhab.core/4.0.0.202302270301] osgi.ee;
Feb 27 19:24:10 raspberrypi karaf[479]: at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
Feb 27 19:24:10 raspberrypi karaf[479]: ... 16 more
~
~
~
and the openhab.log file contains this:
2023-02-27 19:28:22.371 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.venstarthermostat-3.1.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.venstarthermostat [26]
Unresolved requirement: Import-Package: org.openhab.core.config.core.status
at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:445) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.7.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.7.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [bundleFile:3.7.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [bundleFile:3.7.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.7.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.7.4]
2023-02-27 19:28:22.373 [ERROR] [ternal.service.BootFeaturesInstaller] - Error installing boot features
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-runtime-ui; type=karaf.feature; version="[4.0.0.SNAPSHOT,4.0.0.SNAPSHOT]"; filter:="(&(osgi.identity=openhab-runtime-ui)(type=karaf.feature)(version>=4.0.0.SNAPSHOT)(version<=4.0.0.SNAPSHOT))" [caused by: Unable to resolve openhab-runtime-ui/4.0.0.SNAPSHOT: missing requirement [openhab-runtime-ui/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-ui-icon; type=karaf.feature [caused by: Unable to resolve openhab-core-ui-icon/4.0.0.SNAPSHOT: missing requirement [openhab-core-ui-icon/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/4.0.0.SNAPSHOT: missing requirement [openhab-core-base/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[4.0.0.202302270306,4.0.0.202302270306]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/4.0.0.202302270306: missing requirement [org.openhab.core.automation/4.0.0.202302270306] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=4.0.0)(!(version>=5.0.0)))" [caused by: Unable to resolve org.openhab.core/4.0.0.202302270301: missing requirement [org.openhab.core/4.0.0.202302270301] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"]]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:433) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:420) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:374) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:399) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1069) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:1004) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-runtime-ui/4.0.0.SNAPSHOT: missing requirement [openhab-runtime-ui/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-ui-icon; type=karaf.feature [caused by: Unable to resolve openhab-core-ui-icon/4.0.0.SNAPSHOT: missing requirement [openhab-core-ui-icon/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/4.0.0.SNAPSHOT: missing requirement [openhab-core-base/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[4.0.0.202302270306,4.0.0.202302270306]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/4.0.0.202302270306: missing requirement [org.openhab.core.automation/4.0.0.202302270306] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=4.0.0)(!(version>=5.0.0)))" [caused by: Unable to resolve org.openhab.core/4.0.0.202302270301: missing requirement [org.openhab.core/4.0.0.202302270301] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-ui-icon/4.0.0.SNAPSHOT: missing requirement [openhab-core-ui-icon/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/4.0.0.SNAPSHOT: missing requirement [openhab-core-base/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[4.0.0.202302270306,4.0.0.202302270306]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/4.0.0.202302270306: missing requirement [org.openhab.core.automation/4.0.0.202302270306] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=4.0.0)(!(version>=5.0.0)))" [caused by: Unable to resolve org.openhab.core/4.0.0.202302270301: missing requirement [org.openhab.core/4.0.0.202302270301] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-base/4.0.0.SNAPSHOT: missing requirement [openhab-core-base/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[4.0.0.202302270306,4.0.0.202302270306]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/4.0.0.202302270306: missing requirement [org.openhab.core.automation/4.0.0.202302270306] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=4.0.0)(!(version>=5.0.0)))" [caused by: Unable to resolve org.openhab.core/4.0.0.202302270301: missing requirement [org.openhab.core/4.0.0.202302270301] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core.automation/4.0.0.202302270306: missing requirement [org.openhab.core.automation/4.0.0.202302270306] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=4.0.0)(!(version>=5.0.0)))" [caused by: Unable to resolve org.openhab.core/4.0.0.202302270301: missing requirement [org.openhab.core/4.0.0.202302270301] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core/4.0.0.202302270301: missing requirement [org.openhab.core/4.0.0.202302270301] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
... 12 more
2023-02-27 19:28:22.411 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.verisure-3.2.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.verisure [27]
Unresolved requirement: Import-Package: org.openhab.core.config.discovery
at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:445) ~[org.eclipse.osgi-3.17.200.jar:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.7.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.7.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [bundleFile:3.7.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [bundleFile:3.7.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.7.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.7.4]
Any ideas how to fix it?