Upgrade from 3.4 hits an early problem

Hi

I want to upgrade my openhabian. I am currently on 3.4.0-SNAPSHOT - Build #3106, but when I try to upgrade using menu item 02 I get an error. It states “Old Openhab System” and only displays “Attention” and the OK button.

How do I move from my version to the latest? I looked at a migration guide covering 3.4.2 → 4.x, but none of the topics really rimed with my error?

Where to start?

Kind regards
Christian

The most important thing to understand is that openHAB is not the same thing as openHABian. 3.4.0-SNAPSHOT is going to be the version of openHAB. That is not the version of openHABian. openHAB is the Java application that runs your home automation. openHABian is a series of scripts that install and configure openHAB among a bunch of other third party stuff on the operating system.

So what version of openHABian are you running? It should tell you when you start openhabian-config. It should also offer to upgrade itself when you start openhabian-config, though if your openhabian is too old maybe it wont. I don’t remember when that was implemented.

Thanks for clearifying. I am as you state using openhabian and wanted to use openhabian to upgrade.

When using the openhabian-config and select “About”, I see this:

openHABian Configuration Tool — [openHAB]{2024-02-18T19:18:20+01:00}(986a647)
│ openHAB 3.4.0-SNAPSHOT - Build #3106

The config tool did upgrade when I launched it, so I believe that the config tool is the latest version now.

But when selecting option 02 - Upgrade, it gives the aforementioned error. (or basically an empty error message, nothing to go on)

I then try selecting option 03 “Install or upgrade to latest version”, which results in this console output:

2024-02-28_21:50:34_CET [openHABian] Checking for root privileges... OK
2024-02-28_21:50:34_CET [openHABian] Disabling IPv6... OK
2024-02-28_21:50:34_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2024-02-28_21:50:34_CET [openHABian] openHABian configuration tool version: [openHAB]{2024-02-18T19:18:20+01:00}(986a647)
2024-02-28_21:50:34_CET [openHABian] Checking for changes in origin branch HEAD... OK
2024-02-28_21:50:35_CET [openHABian] Switching to branch openHAB... OK
2024-02-28_21:50:35_CET [openHABian] Checking openHAB Signing Key expiry.
2024-02-28_21:50:35_CET [openHABian] Checking expiry date of apt keys... OK
2024-02-28_21:50:38_CET [openHABian] Updating Linux package information... OK
2024-02-28_21:50:39_CET [openHABian] Beginning install of latest openhab snapshot build (unstable repo)... OK
2024-02-28_21:50:40_CET [openHABian] Adding required keys to apt... OK
2024-02-28_21:50:40_CET [openHABian] Installing selected openHAB version... FAILED (update apt lists)
2024-02-28_21:50:50_CET [openHABian] We hope you got what you came for! See you again soon ;)

What could I try next?

Now that we are sure you are on the latest version of openHABian, review openHABian | openHAB to get more logs on what went on and some steps to take,

Note, that openHABian no longer supports Raspberry Pi OS buster and before (no wheezy, jessy, buster) so if you are running on one of these OS’s you may have better luck starting with a new SD image so you get the whole OS updates. Then install OH 3.4 through openhabian-config, restore the backup from your current instance, make sure everything works, then upgrade.

There are several tutorials and threads on the forum for guidance.

1 Like

The error message gets thrown after the script tried to execute this command:

apt-get update

Try to run it yourself (sudo apt-get update) and see what the error message is.