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

I’m assuming you’re just testing things out on the mentioned machine but if not, please let me provide a little unsolicited advise.

The hardware is way over-specced for running openhab. That is of course not a problem in itself, but it makes it far more likely that you end up making something else run on the same machine (because why not, it has plenty of horse power).

And you really don’t want to do that. Home automation systems have far stricter uptime and reliability requirements than your average home system/application. I used to run it in a container on a machine that did other things too and it turned out to be a pain in ass. Instead I moved it to an old, retired laptop that has more than enough power to run OH and it only runs OH and zigbee2mqtt. The reason for doing both is that they are both integral parts of my setup here and one without the other is pretty pointless if both need to be kept running all the time anyway.

Additionally, if you have any linux experience, run it on linux. There are very few people here running OH on Windows, so your pool of helpers is simply much smaller.

1 Like

Thanks!
I am indeed just experimenting with it, but your point is well taken, I’ll move it all to a dedicated Linux box.
Or to a Raspberry Pi 4 (or 5!), when they ever become available again!