Openhabian OH3 Upgrade doesnt complete

Hello,
I am completely new to Openhab and I just started experimenting with openhabian on a
Raspberry Pi Model B 4GB RAM
a few days ago. Yesterday I saw that Openhab 3.0 is on the verge of being realease and thus I tried giving it a shot and tried to upgrade my Openhab 2 Installation practically empty according to the documentation.

I installed putty connected to my pi with it and then started the upggrade.

Java 11 installs fine. But then Nothing happened when installing the OpenHAB 3 update for over 2h.

Thus I thought maybe I did something wrong and reflashed the sd card and installed openHabian again. This worked fine. Directly after install, as a first action I connected via putty to the Pi and started the upgrade again. Thus far with the same result.

Since about 1h stuck at
2020-12-06_18:30:58_CET [openHABian] Installing selected openHAB version…

Any Idea what I can do?

Regards,

Matt

2020-12-06_18:01:00_CET [openHABian] Checking for root privileges… OK
2020-12-06_18:01:00_CET [openHABian] Loading configuration file ‘/etc/openhabian.conf’… OK
2020-12-06_18:01:00_CET [openHABian] openHABian configuration tool version: [stable]v1.6.1-963(1fa8959)
2020-12-06_18:01:00_CET [openHABian] Checking for changes in origin branch stable… OK
2020-12-06_18:01:08_CET [openHABian] Switching to branch stable… OK
2020-12-06_18:01:17_CET [openHABian] Updating Linux package information… OK
2020-12-06_18:01:17_CET [openHABian] Preparing openHAB installation… OK
2020-12-06_18:01:22_CET [openHABian] Beginning openHAB backup… SKIPPED
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
openhab2 openhab2-addons
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 294 MB disk space will be freed.
(Reading database … 53348 files and directories currently installed.)
Removing openhab2-addons (2.5.10-1) …
Removing openhab2 (2.5.10-1) …
Processing triggers for systemd (241-7~deb10u4+rpi1) …
Updating FireMotD available updates count …
2020-12-06_18:02:08_CET [openHABian] WARNING: We were unable to detect Java 11 on your system so we will install the openHABian default (Zulu 11).2020-12-06_18:02:10_CET [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)… OK
2020-12-06_18:02:20_CET [openHABian] Downloading Java Zulu 11 32-Bit OpenJDK… OK
2020-12-06_18:03:21_CET [openHABian] Installing Java Zulu 11 32-Bit OpenJDK… OK
2020-12-06_18:03:28_CET [openHABian] Installing Java Zulu CEK to enable unlimited cipher strength… OK
2020-12-06_18:03:29_CET [openHABian] Installing openHAB… 2020-12-06_18:03:29_CET [openHABian] Beginning install of latest openHAB3 milestone release (testing)… OK
2020-12-06_18:30:56_CET [openHABian] Adding required keys to apt… OK
2020-12-06_18:30:58_CET [openHABian] Installing selected openHAB version…

is that the highest debug level that is available in openhabian-config ?
If not startup with debugging as described in the openhabian docs: https://github.com/openhab/openhabian/blob/master/docs/openhabian-DEBUG.md#debug

You need to set

debugmode=on

in /etc/openhabian.conf. Then you’ll see what is going wrong while installing openHab.

1 Like

Had the same issue and followed the instructions:
Debug mode was set to on in /etc/openhabian.conf
During failed update to OH3 it instructed to run sudo dpkg --configure -a manually.
Did so and confirmed to change config files back to maintainers version (‘I’ or ‘Y’)
Afterwards the update to OH3 went through, still some errors but it looks like it installed.

Hi,
thank you for your assistance and sorry for the late reply but I just got back to tryout today.
I reflashed the openhab 2 image, updated the openhab 2 Version. It worked fine.

Afterwards as a nearly total linux novice it took me some time until i managed to start bash and edit the config file to debug mode on. But finally that worked as well.

Then I started the upgrade to openhab 3 again. And now I could see much more information and I had to choose file overrides serveral times I confirmed all with “Y” and finally it said that openhab 3 was succesfully installed.

I got a prompt from the openhabian-config:
“Error of execution: 40 | openhab related”

The server hasn’t been accessible via Browser yet, but I will give it a few more minutes.

Thanks for your help.

Matt

Ok, unfortunately openhab 3 server seems to not come available.
I found the logs on the console - and its says that it doesnt find the right java Version (see below). But the Java install during the upgrade didnt show any errors. Any Ideas?

[15:26:36] openhabian@openHABianDevice:~$ sudo openhab-cli showlogs

==> /var/log/openhab/audit.log <==

==> /var/log/openhab/events.log <==

==> /var/log/openhab/openhab.log <==
… 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core.karaf/3.0.0.M5: missing requirement [org.openhab.core.karaf/3.0.0.M5] 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.M5: missing requirement [org.openhab.core/3.0.0.M5] 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 org.openhab.core/3.0.0.M5: missing requirement [org.openhab.core/3.0.0.M5] 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

Ok, I dont know exactly what I did - but finally openhab 3 became available in the browser.

Thus I am allright for the time being.

Thx again for pointing me towards the debug mode. That did the job.