Upgrade 3.4 to 4: Startup fails

Hello,
I upgraded OH 3.4 to 4, now OH does not start correctly, I see this error in the log:

2023-06-17 17:59:03.291 [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-base; type=karaf.feature; version="[4.0.0.M3,4.0.0.M3]"; filter:="(&(osgi.identity=openhab-runtime-base)(type=karaf.feature)(version>=4.0.0.M3)(version<=4.0.0.M3))" [caused by: Unable to resolve openhab-runtime-base/4.0.0.M3: missing requirement [openhab-runtime-base/4.0.0.M3] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/4.0.0.M3: missing requirement [openhab-core-base/4.0.0.M3] osgi.identity; osgi.identity=org.openhab.core.config.core; type=osgi.bundle; version="[4.0.0.M3,4.0.0.M3]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.config.core/4.0.0.M3: missing requirement [org.openhab.core.config.core/4.0.0.M3] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.common.registry)(version>=4.0.0)(!(version>=5.0.0)))" [caused by: Unable to resolve org.openhab.core/4.0.0.M3: missing requirement [org.openhab.core/4.0.0.M3] 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) ~[?:?]
  • Platform information:
    • Hardware: Proxmox VM
    • OS: debian bullseye
    • Java Runtime Environment: OpenJDK Runtime Environment (build 11.0.18+10-post-Debian-1deb11u1)

Can anyone please help me? Thank you!

1 Like

ok, found out that I had to install openJDK 17
Thanx anyways!

2 Likes