Smooth upgrade from OH 3.4 to 4.02 using apt upgrade

I have been using Openhab since version 2.4 on a Pi3B for quite some time. Recently built new on a Pi4 with OH 3.4.

I installed Azul Java 17 with the Openhab 3.4 installation, no problems with that even though it wasn’t called for until OH4.

Running Debian Bullseye Linux 11 on the pi4 (4GB memory) with a Argon40 case with integrated SSD that is bootable.

I was pleasantly surprised that running

sudo apt update
sudo apt upgrade 

led me to upgrading me from OH 3.4 to 4.0.2 and auto ran the conversion bash script(s)

I did have to upgrade the GPG signing key, but the one liner provided in the 4.0 installation notes was self explanatory.

All existing things, Items, models, UI rules, pages all run fine. Had a few things to cleanup in the OHL.

Would like to congratulate the dev team on this upgrade accomplishment for OpenHab.

Best Regards,

Allan

3 Likes

glad to hear it went smoothly.
I was advised that Java 17 would not work with 3.4.2 so not to upgrade java until the migration to 4.0.2

Hi,
I also upgraded yesterday “by accident”.
Moved from Windows 3.4 to Linux 3.4 (Proxmox).
And got the upgrade by using apt-get.
Got just a message, that Java 17 is missing.
So installed it and started apt-get again successfully.
Only issues I had were to correct some item units (as expected) and to change the timezone in Karaf.