Newbie, New install hangs on Windows, after displaying tons of errors

  • Platform information:
    • Hardware: Dell Optiplex PC, 32GB, 4 TB
    • OS: Windows 10 Pro
    • Java Runtime Environment: openjdk 11.0.12 2021-07-20
    • openHAB version: 3.4.1.
  • Issue of the topic:

Issue: Downloaded the 3.4.1 version, then downloaded the addons in the ‘addons’ folder, then ran the ./start.bat in Windows’ Powershell.
It stopped after a few minutes, and it just sits there, hanging, now close to an hour.
It seemed to have spit out tons of errors, see log below.
Where did I (or openHAB) go wrong?
What do I do now?

  • Please post configurations (if applicable): N/A
  • If logs where generated please post these here using code fences:
D:\openHAB\openhab-3.4.1> .\start.bat
Launching the openHAB runtime...

                           _   _     _     ____
   ___   ___   ___   ___  | | | |   / \   | __ )
  / _ \ / _ \ / _ \ / _ \ | |_| |  / _ \  |  _ \
 | (_) | (_) |  __/| | | ||  _  | / ___ \ | |_) )
  \___/|  __/ \___/|_| |_||_| |_|/_/   \_\|____/
       |_|       3.4.1 - Release Build

Use '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
To exit, use '<ctrl-d>' or 'logout'.

openhab> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-runtime-base; type=karaf.feature; version="[3.4.1,3.4.1]"; filter:="(&(osgi.identity=openhab-runtime-base)(type=karaf.feature)(version>=3.4.1)(version<=3.4.1))" [caused by: Unable to resolve openhab-runtime-base/3.4.1: missing requirement [openhab-runtime-base/3.4.1] osgi.identity; osgi.identity=openhab-core-io-rest-mdns; type=karaf.feature [caused by: Unable to resolve openhab-core-io-rest-mdns/3.4.1: missing requirement [openhab-core-io-rest-mdns/3.4.1] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.4.1: missing requirement [openhab-core-base/3.4.1] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.4.1,3.4.1]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.4.1: missing requirement [org.openhab.core.automation/3.4.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.4.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.4.1: missing requirement [org.openhab.core/3.4.1] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]]]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:433)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:420)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:374)
        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:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-runtime-base/3.4.1: missing requirement [openhab-runtime-base/3.4.1] osgi.identity; osgi.identity=openhab-core-io-rest-mdns; type=karaf.feature [caused by: Unable to resolve openhab-core-io-rest-mdns/3.4.1: missing requirement [openhab-core-io-rest-mdns/3.4.1] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.4.1: missing requirement [openhab-core-base/3.4.1] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.4.1,3.4.1]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.4.1: missing requirement [org.openhab.core.automation/3.4.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.4.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.4.1: missing requirement [org.openhab.core/3.4.1] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        ... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-io-rest-mdns/3.4.1: missing requirement [openhab-core-io-rest-mdns/3.4.1] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.4.1: missing requirement [openhab-core-base/3.4.1] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.4.1,3.4.1]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.4.1: missing requirement [org.openhab.core.automation/3.4.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.4.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.4.1: missing requirement [org.openhab.core/3.4.1] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        ... 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-base/3.4.1: missing requirement [openhab-core-base/3.4.1] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.4.1,3.4.1]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.4.1: missing requirement [org.openhab.core.automation/3.4.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.4.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.4.1: missing requirement [org.openhab.core/3.4.1] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        ... 14 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core.automation/3.4.1: missing requirement [org.openhab.core.automation/3.4.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.4.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.4.1: missing requirement [org.openhab.core/3.4.1] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        ... 15 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core/3.4.1: missing requirement [org.openhab.core/3.4.1] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        ... 16 more

Just try the install again Paul
Oh, and welcome to the community, we’ll get you going

1 Like

Hi,
Make sure you have configured your windows pc for java correctly. added the user/system enviroment variables for java home the errors you are getting are pointing to openhab not able to locate java install
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core/3.4.1: missing requirement [org.openhab.core/3.4.1] osgi.ee; filter:=“(&(osgi.ee=JavaSE)(version=11))”
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
Review the install guides and follow the additional steps for installing java on windows and you will be fine.
Take a look here and review the steps carefully.

1 Like

That was it, thanks!
(I DID have the JAVA_HOME variable, but it pointed to some very old version, and not the jdk I was actually using).

1 Like