Update from 3.4.4 to 4.01 does not lead to a starting system

  • Platform information:
    • Hardware: RaspBerry Pi 4 with 4GB
    • OS: Raspbian 10 (buster)
    • Java Runtime Environment:
      openjdk 17.0.8 2023-07-18
      OpenJDK Runtime Environment Zulu17.44+15-CA (build 17.0.8+7)
      OpenJDK Server VM Zulu17.44+15-CA (build 17.0.8+7, mixed mode)
    • openHAB version: 4.0.1-1
  • Issue of the topic: openHab starts, but the site does not show

Basically the status show this:
openhabian@openHABpi:~/.sdkman/bin $ sudo /bin/systemctl status openhab.service
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-08-11 16:58:31 CEST; 17min ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Main PID: 604 (java)
Tasks: 29 (limit: 3839)
Wether the dashboard on :8080 nor on :8443 is reachable.

The log tells me:
2023-08-11 16:58:52.480 [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.1,4.0.1]”; filter:=“(&(osgi.identity=openhab-runtime-ui)(type=karaf.feature)(version>=4.0.1)(version<=4.0.1))” [caused by: Unable to resolve openhab-runtime-ui/4.0.1: missing requirement [openhab-runtime-ui/4.0.1] osgi.identity; osgi.identity=openhab-runtime-base; type=karaf.feature [caused by: Unable to resolve openhab-runtime-base/4.0.1: missing requirement [openhab-runtime-base/4.0.1] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/4.0.1: missing requirement [openhab-core-base/4.0.1] osgi.identity; osgi.identity=org.openhab.core.config.core; type=osgi.bundle; version=“[4.0.1,4.0.1]”; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.config.core/4.0.1: missing requirement [org.openhab.core.config.core/4.0.1] 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.1: missing requirement [org.openhab.core/4.0.1] 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.1: missing requirement [openhab-runtime-ui/4.0.1] osgi.identity; osgi.identity=openhab-runtime-base; type=karaf.feature [caused by: Unable to resolve openhab-runtime-base/4.0.1: missing requirement [openhab-runtime-base/4.0.1] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/4.0.1: missing requirement [openhab-core-base/4.0.1] osgi.identity; osgi.identity=org.openhab.core.config.core; type=osgi.bundle; version=“[4.0.1,4.0.1]”; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.config.core/4.0.1: missing requirement [org.openhab.core.config.core/4.0.1] 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.1: missing requirement [org.openhab.core/4.0.1] 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 openhab-runtime-base/4.0.1: missing requirement [openhab-runtime-base/4.0.1] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/4.0.1: missing requirement [openhab-core-base/4.0.1] osgi.identity; osgi.identity=org.openhab.core.config.core; type=osgi.bundle; version=“[4.0.1,4.0.1]”; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.config.core/4.0.1: missing requirement [org.openhab.core.config.core/4.0.1] 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.1: missing requirement [org.openhab.core/4.0.1] 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
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-base/4.0.1: missing requirement [openhab-core-base/4.0.1] osgi.identity; osgi.identity=org.openhab.core.config.core; type=osgi.bundle; version=“[4.0.1,4.0.1]”; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.config.core/4.0.1: missing requirement [org.openhab.core.config.core/4.0.1] 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.1: missing requirement [org.openhab.core/4.0.1] 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:?]
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.core.config.core/4.0.1: missing requirement [org.openhab.core.config.core/4.0.1] 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.1: missing requirement [org.openhab.core/4.0.1] 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:?]
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
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core/4.0.1: missing requirement [org.openhab.core/4.0.1] 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:?]
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:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]

For me it looks like something was updadet, but i miss a lot of parts. I did the update to java 17 manually and now i’m lost. Any help?

Please use code fences when posting logs.

```
code goes here
```

Are you certain that OH is starting using Java 17? Do you have any other Java installed?

Are you sure about that? buster is oldstable, so you should upgrade to bullseye - as openHABian1.8.0 isn’t compatible to buster anyway.

Please be aware that at some point in the near future, bullseye will become oldstable and bookworm will be your choice (if using debian, bookworm is stable since end of July)

Rich is right, i mixed something up with the default setting of java 17. I fixed that and its up and running again.

@Udo_Hartmann: Yes, i’m pretty sure about that … i will think about the upgrade to bullseye asap.
To be honest, as long the system is running, the normal updating is just enough. :wink:

Nope :slight_smile:
There are other issues with buster in question of openHABian (openhabian-config will produce errors if updated to version 1.8, which is strongly recommended.)

No, it really isn’t.

Frankly, either you care about keeping your system up to date for what ever reason (e.g. keeping it patched against known vulnerabilities and problems) in which case, moving to bullseye or bookworm now so you are ready to keep up with the updates seamlessly. Or you don’t in which case you shouldn’t be running apt upgrade in the first place.