Dear mstormi,
first thank you for your ongoing support!
I checked the openhab2.list
in /etc/apt/sources.list.d/
and found a link with bintray.
I commented this one with a #
and added deb https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main
which i found here openHAB 2 on Linux | openHAB
After this i did openhabian-config
and the following windows showed up:
I selected “skip” and selected
01 Select branch
The stable branch was already selected so i did no change.
After this i selected 03 in the main menu.
I selected “Replace”
Continue
During the installation i was wondering because i saw the following lines:
$ apt-get update
+ apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Reading package lists... Done
N: Ignoring file 'openhab2.liste' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
+ return 0
++ apt-cache madison openhab
++ head -n 1
++ cut '-d|' -f2
++ xargs
+ openhabVersion=3.1.0-1
+ cond_redirect apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.1.0-1 openhab-addons=3.1.0-1
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.1.0-1 openhab-addons=3.1.0-1 \033[39;49;00m'
$ apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.1.0-1 openhab-addons=3.1.0-1
+ apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.1.0-1 openhab-addons=3.1.0-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
I performed the changes in openhab2.list
and not openhab2.liste
…
Sounds good
And again an error message
+ whiptail --title 'Operation Successful!' --msgbox 'The stable release of openHAB3 is now installed on your system.\n\nPlease test the correct behavior of your setup. You might need to adapt your configuration, if available. If you made changes to the files in '\''/var/lib/openhab'\'' they were replaced, but you can restore them from backup files next to the originals.\n\nCheck the "openHAB Release Notes" and the official announcements to learn about additons, fixes and changes.' 15 80
+ echo OK
OK
+ [[ -d /var/lib/openhab/persistence/mapdb ]]
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2021-07-30_19:48:40_CEST [openHABian] Deleting mapdb persistence files... '
2021-07-30_19:48:40_CEST [openHABian] Deleting mapdb persistence files... + rm -f /var/lib/openhab/persistence/mapdb/storage.mapdb
+ echo OK
OK
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2021-07-30_19:48:40_CEST [openHABian] Migrating Amanda config... '
2021-07-30_19:48:40_CEST [openHABian] Migrating Amanda config... + for i in $amandaConfigs
+ [[ -s /etc/amanda/openhab-*/disklist ]]
+ echo OK
OK
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2021-07-30_19:48:40_CEST [openHABian] Migrating Samba and mount units... '
2021-07-30_19:48:40_CEST [openHABian] Migrating Samba and mount units... + cond_redirect systemctl stop smbd nmbd
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl stop smbd nmbd \033[39;49;00m'
$ systemctl stop smbd nmbd
+ systemctl stop smbd nmbd
+ return 0
+ cond_redirect systemctl disable --now 'srv-openhab2\x2daddons.mount' 'srv-openhab2\x2dconf.mount' 'srv-openhab2\x2duserdata.mount' 'srv-openhab2\x2dsys.mount'
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl disable --now srv-openhab2\x2daddons.mount srv-openhab2\x2dconf.mount srv-openhab2\x2duserdata.mount srv-openhab2\x2dsys.mount \033[39;49;00m'
$ systemctl disable --now srv-openhab2-addons.mount srv-openhab2-conf.mount srv-openhab2-userdata.mount srv-openhab2-sys.mount
+ systemctl disable --now 'srv-openhab2\x2daddons.mount' 'srv-openhab2\x2dconf.mount' 'srv-openhab2\x2duserdata.mount' 'srv-openhab2\x2dsys.mount'
+ return 0
+ for s in ${mountUnits}
+ [[ openhab == \o\p\e\n\h\a\b ]]
+ newname='/etc/systemd/system/srv-openhab*'
+ sed -e 's|openhab2|openhab|g' '/etc/systemd/system/srv-openhab*'
+ rm -f '/etc/systemd/system/srv-openhab*'
+ services='srv-openhab\x2daddons.mount srv-openhab\x2dconf.mount srv-openhab\x2duserdata.mount srv-openhab\x2dsys.mount'
+ sed -i 's|/openhab2|/openhab|g' /etc/samba/smb.conf
+ cond_redirect systemctl enable --now 'srv-openhab\x2daddons.mount' 'srv-openhab\x2dconf.mount' 'srv-openhab\x2duserdata.mount' 'srv-openhab\x2dsys.mount'
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl enable --now srv-openhab\x2daddons.mount srv-openhab\x2dconf.mount srv-openhab\x2duserdata.mount srv-openhab\x2dsys.mount \033[39;49;00m'
$ systemctl enable --now srv-openhab-addons.mount srv-openhab-conf.mount srv-openhab-userdata.mount srv-openhab-sys.mount
+ systemctl enable --now 'srv-openhab\x2daddons.mount' 'srv-openhab\x2dconf.mount' 'srv-openhab\x2duserdata.mount' 'srv-openhab\x2dsys.mount'
Failed to enable unit: Unit file srv-openhab\x2daddons.mount does not exist.
+ return 1
+ echo 'FAILED (reenable mount units)'
FAILED (reenable mount units)
+ return 1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n "03 | Install openHAB"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/master/docs/openhabian-DEBUG.md how to proceed.' 14 80
+ return 0
After all this i checked again:
[19:51:55] openhabian@openhab:/etc/apt/sources.list.d$ ls
openhab2.liste openhab-linuxpkg.list openhab.list raspi.list vscode.list
openhab2.list
was renamed to openhab2.liste
BUT after a reboot i saw this in the terminal!
_ _ _ ____ _
___ ___ ___ ___ | | | | / \ | __ ) (_) ____ ___
/ _ \ / _ \ / _ \ / _ \ | |_| | / _ \ | _ \ | | / _ \ / _ \
| (_) | (_) | __/| | | || _ | / ___ \ | |_) )| || (_) || | | |
\___/| __/ \___/|_| |_||_| |_|/_/ \_\|____/ |_| \__|_||_| | |
|_| 3.1.0 - Release Build
Looking for a place to get started? Check out 'sudo openhabian-config' and the
documentation at https://www.openhab.org/docs/installation/openhabian.html
The openHAB dashboard can be reached at http://openhab:8080
To interact with openHAB on the command line, execute: 'openhab-cli --help'
Checking again the 01 Select branch
still the stable
branch is selected.
Shall i change it to OpenHAB 3
?
After typing IPADDRESS:8080
in the browser OpenHab release 3.1 is showing up!
So i am not sure if I am fine now or if the error message above is something serious…
What do you think?