cidi
(Christian)
December 28, 2023, 5:54pm
16
do you have the ‘lastest’ version of openhabian-config ( you can check the version in the about section )
I think so. Its from 12.12.23:
openHABian Configuration Tool — [openHAB3]{2023-12-12T18:59:04+01:00}(8e591be)
openHAB 3.4.2 - Release Build
the openhab signature will be stored under /usr/share/keyrings. Check if it is already there
There are two files.
-rw-r--r-- 1 root root 2280 Dez 28 14:48 openhab.gpg
-rw-r--r-- 1 root root 1233 Mai 29 2012 raspbian-archive-keyring.gpg
Are these okay?
That is not necessary. The specified gpg file is already there.
cidi
(Christian)
December 28, 2023, 5:57pm
17
Why don’t you just reinstall from scratch and import your old config as recommended ?
I shy away from the effort of a basic installation. I honestly don’t know what is necessary again until I can start oh-config and import a backup. And I still don’t know whether everything is really in the backup? Bindigs, settings etc.
mstormi
(Markus Storm)
December 28, 2023, 6:06pm
18
Read the link I gave. You’ve already put more time into this than doing that would have costed.
Plus, unlike an OS upgrade, it’s reversible/non-destructive.
Wolfgang_S
(Wolfgang_S)
December 28, 2023, 8:08pm
19
Yes, correct, the file for openhab is there. Is it also referenced in /etc/apt/sources.list.d/openhab.list ?
cidi
(Christian)
December 28, 2023, 8:15pm
20
mstormi:
Read the link I gave. You’ve already put more time into this than doing that would have costed.
Plus, unlike an OS upgrade, it’s reversible/non-destructive
I have tested this. It is definitely faster.
But…
I got a new DHCP IP address and can no longer log in to the console with my openhabian password.
The browser-based log shows some errors, but I attribute most of them to the wrong IP.
cidi
(Christian)
December 28, 2023, 8:18pm
21
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.
Wolfgang_S
(Wolfgang_S)
December 28, 2023, 9:50pm
22
install the package openjdk-17-jre-headless or use openhabian-config to install the related java package.
You can ping the host ?
1 Like
cidi
(Christian)
December 28, 2023, 10:09pm
23
Wolfgang_S:
You can ping the host
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
mstormi
(Markus Storm)
December 28, 2023, 11:46pm
24
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
cidi
(Christian)
December 29, 2023, 12:33pm
25
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?
mstormi
(Markus Storm)
December 29, 2023, 12:35pm
26
Read the FAQ others and I linked to.
cidi
(Christian)
December 29, 2023, 1:25pm
27
Now I have bullseye and Java17.
The correct branch is set.
But I still get the message Old OpenHAB Version : “Attention!”
Everything seems to be ok. No errors or warnigs to be seen.
What could be the problem now?
mstormi
(Markus Storm)
December 29, 2023, 1:33pm
28
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.
cidi
(Christian)
December 29, 2023, 1:47pm
30
mstormi:
What branch, set where and why do you think it is correct there?
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?
mstormi
(Markus Storm)
December 29, 2023, 1:57pm
31
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.
cidi
(Christian)
December 29, 2023, 2:06pm
32
mstormi:
Why did you change it before updating OH (or why at all?)
It was OpenHAB3 like recommended in the scratch reinstall.
mstormi:
Did you flash an old image ? Download latest and try again with that.
No. Downloaded yesterday.
I’ll try debugging and get back to you
Thank you.
cidi
(Christian)
December 29, 2023, 2:26pm
33
mstormi:
What branch, set where and why do you think it is correct there?
Before:
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:
If I Continue, i get the version of September:
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.
mstormi
(Markus Storm)
December 29, 2023, 3:06pm
34
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.
cidi
(Christian)
December 29, 2023, 3:25pm
35
mstormi:
Which is what you should not have done
if I leave it at openHAB3, the message also appears: Old openHAB version - ATTENTION !
mstormi:
Why did you do that at all?
Because I get the message: Old openHAB version - ATTENTION !
mstormi:
Try on the command line
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?
mstormi
(Markus Storm)
December 29, 2023, 3:40pm
36
Set this in /etc/openhabian.conf
then run openhabian-config
again and you should be seeing the output in your shell window.