Problem Upgrading from Openhabian 3.4.2 to 4.x

Now yes.

And now the update to bullseye has also gone through.
Now I have an error message that Java 17 is still missing.
It’s all very complicated.

install the package openjdk-17-jre-headless or use openhabian-config to install the related java package.

You can ping the host ?

1 Like

Yes. The system runs with the new IP, which comes from DHCP.
I can ping the host and the website runs on Port 8080
It seems that only a few basic settings are missing.
e.g. a fixed IP address was set before

You can have your DHCP server assign a fixed IP address based on your Raspi’s MAC. Read the docs.

of course, it’s now the default (i.e. openhabian)

1 Like

Now it’s up and running. I went through the second suggestion again:
reinstall from scratch

It went faster now.

Changed password of openhabian and changed IP address (yes - I use fixed IPs for my servers and printers)
Mosquitto Broker still had to be installed, but that can be done quickly via oh-config.
Now it runs with bullseye.
Many, many thanks for your support.

Now the next challenge: Update to OH4.
Do you have any best-practice suggestions?

Read the FAQ others and I linked to.

Now I have bullseye and Java17.
The correct branch is set.

image

image

But I still get the message Old OpenHAB Version : “Attention!”

image

Everything seems to be ok. No errors or warnigs to be seen.

What could be the problem now?

What branch, set where and why do you think it is correct there?

when doing what ?

How am I supposed to know ? Read the docs to find out how to enable debugging (debug=maximum in openhabian.conf) and to provide a logfile of what’s going on, else noone can tell.

The branch is “openHAB branch”
I have selected the release option in OH-Config [01]:

I have just discovered that the Configuration Tool is probably out of date:

I think I have already seen a version from December.
I thought it was self-updating. Does it not? How can I do this manually?

Why did you change it before updating OH (or why at all?)

It should. Did you flash an old image ? Download latest and try again with that.

It was OpenHAB3 like recommended in the scratch reinstall.

No. Downloaded yesterday.

I’ll try debugging and get back to you
Thank you.

Before:
image

Then I switched to release:

The Console:

Your branch and ‘origin/openHAB’ have diverged,
and have 10 and 3 different commits each, respectively.

What the meaning of that?

If i start now the Configuration Tool there is the message about an update:
image

If I Continue, i get the version of September:
image

And there is no way back to my prior openHAB3:

Shall I try to switch the branch do no update of the configuration tool.
it just always takes quite a long time until I have cloned the SD cards.

Which is what you should not have done.

Why did you do that at all?
There’s no way back from inside the tool I know of

Try on the command line

sudo bash
cd /opt/openhabian
git checkout openHAB3

No warranty this will work, I have no system at hand to try.

if I leave it at openHAB3, the message also appears: Old openHAB version - ATTENTION !

Because I get the message: Old openHAB version - ATTENTION !

I have try it. The Old value/branch openHAB3 is selected again.
When I try to update I get the message: Old openHAB version - ATTENTION !

Where can i find the log-file for the debug=maximum option?

Set this in /etc/openhabian.conf then run openhabian-config again and you should be seeing the output in your shell window.