Openhab 4.0.0.M2 has failed to start after apt-get upgrade

Hi community,

I’ve been using Openhab in a stable environment now for a few years on a modified Dell desktop as a Linux server (running a headless Ubuntu 20.04.6 LTS on x86_64 architecture, tons of RAM and SSD space, ethernet interface, communication is OK as is the rest of the environment). I use Zigbee2MQTT which is working nicely, Grafana for graphing which is also working nicely.

Today I did an “apt-get upgrade” and then “apt-get upgrade --fix-missing” and I’m getting an error in my log when Openhab attempts to starts up.

Looks like this:

2023-05-05 09:21:57.029 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.broadlink-3.2.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.broadlink [27]
  Unresolved requirement: Import-Package: org.openhab.core

	at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:445) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) ~[?:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) ~[?:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) ~[?:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) ~[?:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) ~[?:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) ~[?:?]
2023-05-05 09:22:42.618 [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.M2,4.0.0.M2]"; filter:="(&(osgi.identity=openhab-runtime-ui)(type=karaf.feature)(version>=4.0.0.M2)(version<=4.0.0.M2))" [caused by: Unable to resolve openhab-runtime-ui/4.0.0.M2: missing requirement [openhab-runtime-ui/4.0.0.M2] osgi.identity; osgi.identity=org.openhab.ui; type=osgi.bundle; version="[4.0.0.M2,4.0.0.M2]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.ui/4.0.0.M2: missing requirement [org.openhab.ui/4.0.0.M2] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"]]
	at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:433) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:420) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:374) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:256) ~[?:?]
	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.M2: missing requirement [openhab-runtime-ui/4.0.0.M2] osgi.identity; osgi.identity=org.openhab.ui; type=osgi.bundle; version="[4.0.0.M2,4.0.0.M2]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.ui/4.0.0.M2: missing requirement [org.openhab.ui/4.0.0.M2] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"]
	at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
	... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.ui/4.0.0.M2: missing requirement [org.openhab.ui/4.0.0.M2] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"
	at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
	... 12 more

Does this indicate a Java problem perhaps?

Actually, I did a little searching. 4.0.0M2 needs Java17.

Installed using these instructions and I’m a happy camper again.

1 Like