RiotMode
(Philipp)
December 21, 2020, 9:57pm
1
Hi Guys,
using a Raspb. 3B with openhabian 2.5.9.1. installed on SSD
created a backup and updated to OH 3 (installation complete)
but i can’t reach dashboard or anything else. i am only able to ssh via openhabian@openhab
also openhabian says
how can i get OH to start again ? its seems that it doesn’t run.
thank you!
hmerk
(Hans-Jörg Merk)
December 21, 2020, 10:03pm
2
Answered in second thread, please avoid double posting.
RiotMode
(Philipp)
December 21, 2020, 10:06pm
3
sorry and thanks, i think i will run into more problems
and didn’t want to occupy the other thread.
Java is already updated, what else can i do ?
hmerk
(Hans-Jörg Merk)
December 21, 2020, 10:10pm
4
First, update openHABian to latest version (1.6 or so, there is no 2.x)
Reinstall openHAB 3, you seem to have artifacts left, as there will be no more openhab2 folders, just openhab…
RiotMode
(Philipp)
December 21, 2020, 10:13pm
5
i am on openhabian 1.6.1 (stable)
Menu 42
did it a few times already
now i get this
hmerk
(Hans-Jörg Merk)
December 21, 2020, 10:16pm
6
What does openhab logs say?
RiotMode
(Philipp)
December 21, 2020, 10:18pm
7
hmerk:
openhab logs
Menu 21 ? Optional Components → Log Viewer ?
i can’t reach Console
hmerk
(Hans-Jörg Merk)
December 21, 2020, 10:32pm
8
No
cat /var/log/openhab/openhab.log
RiotMode
(Philipp)
December 21, 2020, 10:38pm
9
[23:37:10] openhabian@openhab:~$ cat /var/log/openhab/openhab.log
2020-12-21 23:30:03.243 [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="[3.0.0,3.0.0]"; filter:="(&(osgi.identity=openhab-runtime-ui)(type=karaf.feature)(version>=3.0.0)(version<=3.0.0))" [caused by: Unable to resolve openhab-runtime-ui/3.0.0: missing requirement [openhab-runtime-ui/3.0.0] osgi.identity; osgi.identity=openhab-core-ui; type=karaf.feature [caused by: Unable to resolve openhab-core-ui/3.0.0: missing requirement [openhab-core-ui/3.0.0] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.0.0: missing requirement [openhab-core-base/3.0.0] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.0,3.0.0]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.0: missing requirement [org.openhab.core.automation/3.0.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_275]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_275]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_275]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-runtime-ui/3.0.0: missing requirement [openhab-runtime-ui/3.0.0] osgi.identity; osgi.identity=openhab-core-ui; type=karaf.feature [caused by: Unable to resolve openhab-core-ui/3.0.0: missing requirement [openhab-core-ui/3.0.0] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.0.0: missing requirement [openhab-core-base/3.0.0] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.0,3.0.0]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.0: missing requirement [org.openhab.core.automation/3.0.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-ui/3.0.0: missing requirement [openhab-core-ui/3.0.0] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.0.0: missing requirement [openhab-core-base/3.0.0] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.0,3.0.0]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.0: missing requirement [org.openhab.core.automation/3.0.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-base/3.0.0: missing requirement [openhab-core-base/3.0.0] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.0,3.0.0]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.0: missing requirement [org.openhab.core.automation/3.0.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core.automation/3.0.0: missing requirement [org.openhab.core.automation/3.0.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.12.100.jar:?]
... 12 more
i tried to clean cache and restarted openhab, now i get this:
[23:46:21] openhabian@openhab:~$ sudo openhab-cli start
A systemd service configuration exists...
Use 'sudo /bin/systemctl start openhab.service' to start an openHAB service
Launching an instance in this terminal..
Launching the openHAB runtime...
_ _ _ ____
___ ___ ___ ___ | | | | / \ | __ )
/ _ \ / _ \ / _ \ / _ \ | |_| | / _ \ | _ \
| (_) | (_) | __/| | | || _ | / ___ \ | |_) )
\___/| __/ \___/|_| |_||_| |_|/_/ \_\|____/
|_| 3.0.0 - 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.0.0,3.0.0]"; filter:="(&(osgi.identity=openhab-runtime-base)(type=karaf.feature)(version>=3.0.0)(version<=3.0.0))" [caused by: Unable to resolve openhab-runtime-base/3.0.0: missing requirement [openhab-runtime-base/3.0.0] osgi.identity; osgi.identity=openhab-core-automation-module-script-rulesupport; type=karaf.feature [caused by: Unable to resolve openhab-core-automation-module-script-rulesupport/3.0.0: missing requirement [openhab-core-automation-module-script-rulesupport/3.0.0] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.0.0: missing requirement [openhab-core-base/3.0.0] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.0,3.0.0]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.0: missing requirement [org.openhab.core.automation/3.0.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
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.0.0: missing requirement [openhab-runtime-base/3.0.0] osgi.identity; osgi.identity=openhab-core-automation-module-script-rulesupport; type=karaf.feature [caused by: Unable to resolve openhab-core-automation-module-script-rulesupport/3.0.0: missing requirement [openhab-core-automation-module-script-rulesupport/3.0.0] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.0.0: missing requirement [openhab-core-base/3.0.0] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.0,3.0.0]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.0: missing requirement [org.openhab.core.automation/3.0.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-automation-module-script-rulesupport/3.0.0: missing requirement [openhab-core-automation-module-script-rulesupport/3.0.0] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.0.0: missing requirement [openhab-core-base/3.0.0] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.0,3.0.0]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.0: missing requirement [org.openhab.core.automation/3.0.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-base/3.0.0: missing requirement [openhab-core-base/3.0.0] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.0,3.0.0]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.0: missing requirement [org.openhab.core.automation/3.0.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 14 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core.automation/3.0.0: missing requirement [org.openhab.core.automation/3.0.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 15 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core/3.0.0: missing requirement [org.openhab.core/3.0.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 16 more
My java version:
java -version
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (Zulu 8.50.51.263-CA-linux_aarch32hf) (build 1.8.0_275-b01)
OpenJDK Client VM (Zulu 8.50.51.263-CA-linux_aarch32hf) (build 25.275-b01, mixed mode)
mstormi
(Markus Storm)
December 21, 2020, 11:00pm
10
You need Java 11. There’s a menu to install it.
How did you manage to install OH3 through openHABian without getting Java 11 installed, too ?
RiotMode
(Philipp)
December 21, 2020, 11:01pm
11
mstormi:
How did you manage to install OH3 through openHABian without getting Java 11
i just pressed Install or Update Buttons on openhabian. nothing else
i am now installing (Menu 46) Zulu 11 / 32 Bit (64 Bit was not compatible)
[00:05:50] openhabian@openhab:~$ java -version
openjdk version "11.0.9" 2020-10-20 LTS
OpenJDK Runtime Environment Zulu11.43+88-CA (build 11.0.9+11-LTS)
OpenJDK Client VM Zulu11.43+88-CA (build 11.0.9+11-LTS, mixed mode)
RiotMode
(Philipp)
December 21, 2020, 11:11pm
12
[00:07:03] openhabian@openhab:~$ sudo openhab-cli start
A systemd service configuration exists...
Use 'sudo /bin/systemctl start openhab.service' to start an openHAB service
Launching an instance in this terminal..
Launching the openHAB runtime...
_ _ _ ____
___ ___ ___ ___ | | | | / \ | __ )
/ _ \ / _ \ / _ \ / _ \ | |_| | / _ \ | _ \
| (_) | (_) | __/| | | || _ | / ___ \ | |_) )
\___/| __/ \___/|_| |_||_| |_|/_/ \_\|____/
|_| 3.0.0 - 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> WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.gson.internal.bind.ReflectiveTypeAdapterFactory (file:/var/lib/openhab/cache/org.eclipse.osgi/27/0/bundleFile) to field java.time.LocalDateTime.date
WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
mstormi
(Markus Storm)
December 21, 2020, 11:12pm
13
Could you set debugmode=maximum in /etc/openhabian.conf and reinstall OH3 BEFORE you install Java 11 please ?
mstormi
(Markus Storm)
December 21, 2020, 11:15pm
15
You must not use this start command. IIRC I already told you once some weeks ago.
Use systemctl start|stop|status openhab
And post your /etc/openhabian.conf
please.
RiotMode
(Philipp)
December 21, 2020, 11:19pm
16
mstormi:
You must not use this start command
sorry i had my old notes sheet open i am noob, you are the pro, have forbearance
Modify your openHABian settings
# Handle with care, only touch if you need to!!
hostname=openhab
username=openhabian
#userpw=xxxxxxxx
# Language and time. Be sure to set these to valid values
timeserver=0.pool.ntp.org
locales="en_US.UTF-8 de_DE.UTF-8"
system_default_locale="en_US.UTF-8"
#timezone=Europe/Berlin
# Wi-Fi settings. An ethernet connection is recommended
# Requirement: RPi3, RPi0W, PineA64 or a supported external Wi-Fi dongle
# Fill in your SSID and password below, leave empty to use ethernet
wifi_ssid=""
wifi_psk=""
# Wi-Fi setting. Select a two-letter country code suitable for your location
# E.g. US (default), DE, AU, NZ...
# You may infringe on local legislature otherwise
# See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab
wifi_country=""
# vim: filetype=sh
still no luck to see the Dashboard
RiotMode
(Philipp)
December 22, 2020, 12:34am
17
Finally made it , a few restarts & clear cache did the trick…
and started with
sudo /bin/systemctl start openhab.service
wohooo - @mstormi and @hmerk thanks for your help!
my steps to success in short:
check the log = cat /var/log/openhab/openhab.log
check if you can log in into console = sudo ssh openhab@localhost -p 8101
check the log there too = log:display
stop openhab = sudo systemctl stop openhab
clear cache and tmp = sudo openhab-cli clean-cache
start openhab with = sudo /bin/systemctl start openhab.service
only concern left so far, shouldn’t it be 3.0 ?
it works anyway but just asking.
RiotMode
(Philipp)
December 22, 2020, 5:41pm
18
i did nothing beside:
Stop OH / Start OH / Clear Cache
i then made a reboot of Raspb. and afterwards i was back on JAVA 1.8.0_275 !?!?
did a reinstall and it works again, but i lost my Homekit Pairing again.
its a bit frustrating with OH3 Update
Boby
(Robert K.)
December 25, 2020, 6:01pm
19
I was in the same situation (different problems than you, but upgrade related) and I left the path of migration and started to set up everything from the scratch. It hurts, but it’s also a good chance to get rid of some mistakes I made in the past. It’s more satisfying to set up everything on a fresh, clean installation instead of looking for tons of errors because of the migration.
RiotMode
(Philipp)
December 25, 2020, 6:03pm
20
yeah, i did it with 2.5.9.1 few months ago, i do not really want to do it again
i will see where i end up. its my last resort to start from scratch. thanks