FAILED (deCONZ database on zram)

I have openhabian 3.3 running on a RPI 4 4Gb for a while now together with 1wire and deconz.
All added with the openhabian-config.
At a certain time a tried to install Mosquitto.
But then I get an error in the config

There was an error or interruption during the execution of:\n “20 | Optional Components”\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or openhabian/docs/openhabian-DEBUG.md at main · openhab/openhabian · GitHub how to proceed.’

Also the deconz needed a new install.

I wanted to wait for my ordered RPI, but in the meantime a ring doorbel is present.
So now with the update to 3.4, I wanted to give it a new try.
Again the same error, but I can’t get my deconz running again also with that same message.
With the verbose put on maximum
I see

  • echo ‘FAILED (deCONZ database on zram)’
    FAILED (deCONZ database on zram)

Tried to install zram again, looks ok (no messages)
Tried to remove mosquitto
But all the same result
Has someone an idea to get deconz back running? The steps to install manual?

I have my RPI connected with a cable no wifi.

It was possible to do
sudo apt install deconz
then I tried again the regular setup but the same message
So I changed manual the port to 8081
My biggest concern was the deconz, so this is back running and ok
I had to change for all the items the bridge
Can this done for all the itemls together or a script?

The problem of the installation of the optional components is still present.

With debug=maximum you should be seeing a lot more, and that would be a minimum anyone to help would need to see.

Show your config. Do you use .things files or the UI to configure it ?
In my .things file I have only one entry where the bridge is defined so just one entry for the port needs to be changed. I assume it is the same for the UI ( for the jsondb ).

Be more verbose. With what the error is. Above it is just stated tried to remove mosquitto … all the same result. The debug output as described in the debug description and stated by mstormi will help.

This is when i only try the option for deconz

++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-12-30_07:55:13_CET [openHABian] Updating Linux package information... '
2022-12-30_07:55:13_CET [openHABian] Updating Linux package information... + kill -0 8651
+ echo OK
OK
+ case "$choice2" in
+ deconz_setup
+ local port=8081
+ local keyName=deconz
+ local appData=/var/lib/openhab/persistence/deCONZ
+ local 'introText=This will install deCONZ as a web service, the companion app to support Dresden Elektronik Conbee and Raspbee Zigbee controllers.\nUse the web interface on port 8081 to pair your sensors.\nNote the port is changed to 8081 as the default 80 wouldn'\''t be right with openHAB itself running on 8080.'
+ local 'successText=The deCONZ API plugin and the Phoscon companion web app were successfully installed on your system.\nUse the web interface on port 8081 to pair your sensors with Conbee or Raspbee Zigbee controllers.\nNote the port has been changed from its default 80 to 8081.'
+ local repo=/etc/apt/sources.list.d/deconz.list
+ whiptail --title 'deCONZ installation' --yes-button Continue --no-button Cancel --yesno 'This will install deCONZ as a web service, the companion app to support Dresden Elektronik Conbee and Raspbee Zigbee controllers.\nUse the web interface on port 8081 to pair your sensors.\nNote the port is changed to 8081 as the default 80 wouldn'\''t be right with openHAB itself running on 8080.' 11 80
+ add_keys http://phoscon.de/apt/deconz.pub.key deconz
+ local repoKey=/usr/share/keyrings/deconz.gpg
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-12-30_07:55:14_CET [openHABian] Adding required keys to apt... '
2022-12-30_07:55:14_CET [openHABian] Adding required keys to apt... + curl -fsSL http://phoscon.de/apt/deconz.pub.key
+ gpg --dearmor
+ echo OK
OK
++ lsb_release -si
+ myOS=Raspbian
++ lsb_release -sc
+ myRelease=bullseye
+ [[ bullseye == \n\/\a ]]
+ is_x86_64
+ [[ '' == \x\8\6\_\6\4 ]]
+ [[ '' == \a\m\d\6\4 ]]
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ echo 'deb [signed-by=/usr/share/keyrings/deconz.gpg] http://phoscon.de/apt/deconz bullseye main'
+ cond_redirect mkdir /var/lib/openhab/persistence/deCONZ
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir /var/lib/openhab/persistence/deCONZ \033[39;49;00m'

$ mkdir /var/lib/openhab/persistence/deCONZ
+ mkdir /var/lib/openhab/persistence/deCONZ
mkdir: cannot create directory ‘/var/lib/openhab/persistence/deCONZ’: File exists
+ return 1
+ fix_permissions /var/lib/openhab/persistence/deCONZ openhabian:openhabian 664 775
+ [[ -e /var/lib/openhab/persistence/deCONZ ]]
+ chown openhabian:openhabian /var/lib/openhab/persistence/deCONZ
+ [[ -n 664 ]]
+ [[ -f /var/lib/openhab/persistence/deCONZ ]]
+ [[ -n 775 ]]
+ [[ -d /var/lib/openhab/persistence/deCONZ ]]
+ find /var/lib/openhab/persistence/deCONZ -type d -print0
+ xargs -0 chmod 775
+ return 0
+ ln -sf /var/lib/openhab/persistence/deCONZ /home/openhabian/.local
+ echo 'FAILED (deCONZ database on zram)'
FAILED (deCONZ database on zram)
+ return 1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n  "20 | Optional Components"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/main/docs/openhabian-DEBUG.md how to proceed.' 14 80
+ return 0
+ true
+ show_main_menu
+ local choice
+ local version
+++ get_git_revision
+++ local branch
+++ local commitDate
+++ local shorthash
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=openHAB3
++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
+++ commitDate=2022-12-18T22:39:53+01:00
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=2633096
+++ echo '[openHAB3]{2022-12-18T22:39:53+01:00}(2633096)'
++ whiptail --title 'openHABian Configuration Tool — [openHAB3]{2022-12-18T22:39:53+01:00}(2633096)' --menu 'Setup Options' 19 116 12 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian project and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02 | Upgrade System' 'Update all installed software packages (incl. openHAB) to their latest version' '03 | Install openHAB' 'Install or upgrade to openHAB 3' '04 | Import config' 'Import an openHAB 3 configuration from file or URL' '' '' '10 | Apply Improvements' 'Apply the latest improvements to the basic openHABian setup ►' '20 | Optional Components' 'Choose from a set of optional software components ►' '30 | System Settings' 'A range of system and hardware related configuration steps ►' '40 | openHAB Related' 'Switch the installed openHAB version or apply tweaks ►' '50 | Backup/Restore' 'Manage backups and restore your system ►'
+ choice=
+ RET=1
+ '[' 1 -eq 1 ']'
+ return 255
+ system_check_default_password
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ local algo
+ local defaultPassword
+ local defaultUser
+ local generatedPassword
+ local introText
+ local originalPassword
+ local salt
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ id -u pi
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ defaultUser=openhabian
+ defaultPassword=openhabian
++ grep -w openhabian /etc/shadow
++ cut -d: -f2
+ originalPassword='$y$j9T$4t.7RqmFZvniH720SCnv//$f30CqaB0tsoCSvHGvjO3LqnudZQRzXh1Pkxh1lWwf7D'
++ echo '$y$j9T$4t.7RqmFZvniH720SCnv//$f30CqaB0tsoCSvHGvjO3LqnudZQRzXh1Pkxh1lWwf7D'
++ cut '-d$' -f2
+ algo=y
+ introText='The default password was detected on your system! That is a serious security concern. Bad guys or malicious programs in your subnet are able to gain root access!\n\nPlease set a strong password by typing the command '\''passwd openhabian'\''!'
++ echo '$y$j9T$4t.7RqmFZvniH720SCnv//$f30CqaB0tsoCSvHGvjO3LqnudZQRzXh1Pkxh1lWwf7D'
++ cut '-d$' -f3
+ salt=j9T
+ export algo defaultPassword salt
++ perl -le 'print crypt("$ENV{defaultPassword}","\$$ENV{algo}\$$ENV{salt}\$")'
+ generatedPassword='$y$j9T$$1DJdHt2WNxWqFR3sUxwYKh.KdyI9MF4X/A9710MJGjA'
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-12-30_07:55:26_CET [openHABian] Checking for default openHABian username:password combination... '
2022-12-30_07:55:26_CET [openHABian] Checking for default openHABian username:password combination... ++ id -u openhabian
+ [[ -n 1000 ]]
+ [[ $y$j9T$$1DJdHt2WNxWqFR3sUxwYKh.KdyI9MF4X/A9710MJGjA == \$\y\$\j\9\T\$\4\t\.\7\R\q\m\F\Z\v\n\i\H\7\2\0\S\C\n\v\/\/\$\f\3\0\C\q\a\B\0\t\s\o\C\S\v\H\G\v\j\O\3\L\q\n\u\d\Z\Q\R\z\X\h\1\P\k\x\h\1\l\W\w\f\7\D ]]
+ echo OK
OK
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -e '2022-12-30_07:55:26_CET [openHABian] We hope you got what you came for! See you again soon ;)'
2022-12-30_07:55:26_CET [openHABian] We hope you got what you came for! See you again soon ;)
+ cd /home/openhabian

With ui (no file input)
Indeed one bridge
But in the proces I didnt succee in correcting the old bridge and I had to recreate the bridge.
Erase the old and then create a new with the same name. But doing so the things where put on a blank bridge.

The command

ln -sf /var/lib/openhab/persistence/deCONZ /home/openhabian/.local

fails during execution.

What is the output of the command:

ls -l /home/openhabian/.local

openhabian@openhabian:~ $ ls -l /home/openhabian/.local
total 4
lrwxrwxrwx 1 root root 35 Dec 30 08:54 deCONZ → /var/lib/openhab/persistence/deCONZ
drwxr-xr-x 4 openhabian openhab 4096 Jan 4 2022 share

Deconz is running (manual instal)

This thread is pretty old, but I am facing the same issue.
Using openhabian on RPi4, I cannot reinstall deconz using openhabian-config.
I am getting
“echo ‘FAILED (deCONZ database on zram)’
FAILED (deCONZ database on zram)”

With debug on maximum the output is as follows. But his does not give me a better hinter what I can do. I would be happy to get some help.

openhabian@openhabian:~ $ sudo openhabian-config
2023-06-02_23:12:28_CEST [openHABian] Checking for root privileges... OK
+ export UNATTENDED SILENT DEBUGMAX INTERACTIVE
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/auth.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/backup.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/config.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/ext-storage.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/find.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/habapp.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/helpers.bash
++ ESC='\033['
++ COL_DEF='\033[39;49;00m'
++ COL_RED='\033[31;01m'
++ COL_GREEN='\033[32;01m'
++ COL_YELLOW='\033[33;01m'
++ COL_BLUE='\033[34;01m'
++ COL_MAGENTA='\033[35;01m'
++ COL_CYAN='\033[36;01m'
++ COL_LGRAY='\033[37;01m'
++ COL_DGRAY='\033[90;01m'
++ export COL_DEF COL_RED COL_GREEN COL_YELLOW COL_BLUE COL_MAGENTA COL_CYAN COL_LGRAY COL_DGRAY
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/influxdb+grafana.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/java-jre.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/menu.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/nodejs-apps.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/nut.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/openhab.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/openhabian.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/packages.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/system.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/vpn.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/wifi.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/zram.bash
++ pwd
+ OLDWD=/home/openhabian
+ cd /opt
+ update_openhabian_conf
+ local configFile=/etc/openhabian.conf
+ local referenceConfig=/opt/openhabian/build-image/openhabian.conf
+ cp /etc/openhabian.conf /etc/openhabian.conf.BAK
+ read -r line
+ [[ # Origin: openhabian.conf =~ ^(#)?[a-zA-Z] ]]
+ echo '# Origin: openhabian.conf'
+ read -r line
+ [[ # =~ ^(#)?[a-zA-Z] ]]
+ echo '#'
+ read -r line
+ [[ # Modify your openHABian settings =~ ^(#)?[a-zA-Z] ]]
+ echo '# Modify your openHABian settings'
+ read -r line
+ [[ # Handle with care, only touch if you need to! =~ ^(#)?[a-zA-Z] ]]
+ echo '# Handle with care, only touch if you need to!'
+ read -r line
+ [[ # This file will only be used on unattended initial install. =~ ^(#)?[a-zA-Z] ]]
+ echo '# This file will only be used on unattended initial install.'
+ read -r line
+ [[ # If you want to change anything after unattended install completed, use menu in openhabian-config. =~ ^(#)?[a-zA-Z] ]]
+ echo '# If you want to change anything after unattended install completed, use menu in openhabian-config.'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # ATTENTION: to disable an option a line MUST be of the format '# option=value' =~ ^(#)?[a-zA-Z] ]]
+ echo '# ATTENTION: to disable an option a line MUST be of the format '\''# option=value'\'''
+ read -r line
+ [[ # KEEP THE SPACE IT IS IMPORTANT !! =~ ^(#)?[a-zA-Z] ]]
+ echo '# KEEP THE SPACE IT IS IMPORTANT !!'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Hostname to set this one to =~ ^(#)?[a-zA-Z] ]]
+ echo '# Hostname to set this one to'
+ read -r line
+ [[ hostname=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=hostname=openhabian
+ [[ hostname=openhabian =~ ^#[a-zA-Z] ]]
++ echo hostname=openhabian
++ cut -d= -f1
+ param=hostname
+ [[ -v hostname ]]
+ [[ openhabian == *\ * ]]
+ echo hostname=openhabian
+ read -r line
+ [[ # if it exists, the default user (with its working environment) will be renamed to this username given here ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# if it exists, the default user (with its working environment) will be renamed to this username given here ...'
+ read -r line
+ [[ username=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=username=openhabian
+ [[ username=openhabian =~ ^#[a-zA-Z] ]]
++ echo username=openhabian
++ cut -d= -f1
+ param=username
+ [[ -v username ]]
+ [[ openhabian == *\ * ]]
+ echo username=openhabian
+ read -r line
+ [[ # ... and given this password. The password will be removed from this file after completion for security reasons. =~ ^(#)?[a-zA-Z] ]]
+ echo '# ... and given this password. The password will be removed from this file after completion for security reasons.'
+ read -r line
+ [[ userpw=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=userpw=openhabian
+ [[ userpw=openhabian =~ ^#[a-zA-Z] ]]
++ echo userpw=openhabian
++ cut -d= -f1
+ param=userpw
+ [[ -v userpw ]]
+ [[ openhabian == *\ * ]]
+ echo userpw=openhabian
+ read -r line
+ [[ # set this to download a SSH key and authorize the owner to login as the admin user =~ ^(#)?[a-zA-Z] ]]
+ echo '# set this to download a SSH key and authorize the owner to login as the admin user'
+ read -r line
+ [[ adminkeyurl="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='adminkeyurl=""'
+ [[ adminkeyurl="" =~ ^#[a-zA-Z] ]]
++ echo 'adminkeyurl=""'
++ cut -d= -f1
+ param=adminkeyurl
+ [[ -v adminkeyurl ]]
+ [[ '' == *\ * ]]
+ echo adminkeyurl=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Language and timezone. See Debian documentation for valid values. =~ ^(#)?[a-zA-Z] ]]
+ echo '# Language and timezone. See Debian documentation for valid values.'
+ read -r line
+ [[ timezone=Europe/Berlin =~ ^(#)?[a-zA-Z] ]]
+ parsed=timezone=Europe/Berlin
+ [[ timezone=Europe/Berlin =~ ^#[a-zA-Z] ]]
++ echo timezone=Europe/Berlin
++ cut -d= -f1
+ param=timezone
+ [[ -v timezone ]]
+ [[ Europe/Berlin == *\ * ]]
+ echo timezone=Europe/Berlin
+ read -r line
+ [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^(#)?[a-zA-Z] ]]
+ parsed='locales="en_US.UTF-8 de_DE.UTF-8"'
+ [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^#[a-zA-Z] ]]
++ echo 'locales="en_US.UTF-8 de_DE.UTF-8"'
++ cut -d= -f1
+ param=locales
+ [[ -v locales ]]
+ [[ en_US.UTF-8 de_DE.UTF-8 == *\ * ]]
+ echo 'locales="en_US.UTF-8 de_DE.UTF-8"'
+ read -r line
+ [[ system_default_locale="en_US.UTF-8" =~ ^(#)?[a-zA-Z] ]]
+ parsed='system_default_locale="en_US.UTF-8"'
+ [[ system_default_locale="en_US.UTF-8" =~ ^#[a-zA-Z] ]]
++ echo 'system_default_locale="en_US.UTF-8"'
++ cut -d= -f1
+ param=system_default_locale
+ [[ -v system_default_locale ]]
+ [[ en_US.UTF-8 == *\ * ]]
+ echo system_default_locale=en_US.UTF-8
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # WiFi settings. An ethernet connection is recommended. =~ ^(#)?[a-zA-Z] ]]
+ echo '# WiFi settings. An ethernet connection is recommended.'
+ read -r line
+ [[ # If you have a RPi4, RPi3, RPi0W or a supported external WiFi dongle, the WiFi =~ ^(#)?[a-zA-Z] ]]
+ echo '# If you have a RPi4, RPi3, RPi0W or a supported external WiFi dongle, the WiFi'
+ read -r line
+ [[ # interface can be setup and used for the initial installation. =~ ^(#)?[a-zA-Z] ]]
+ echo '# interface can be setup and used for the initial installation.'
+ read -r line
+ [[ # Fill in your SSID and password below, leave empty or put comment in front to =~ ^(#)?[a-zA-Z] ]]
+ echo '# Fill in your SSID and password below, leave empty or put comment in front to'
+ read -r line
+ [[ # have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works. =~ ^(#)?[a-zA-Z] ]]
+ echo '# have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works.'
+ read -r line
+ [[ # ATTENTION: you need to escape these special characters: $, `, ", \, (newline) =~ ^(#)?[a-zA-Z] ]]
+ echo '# ATTENTION: you need to escape these special characters: $, `, ", \, (newline)'
+ read -r line
+ [[ # 'Escaping' means to put an additional \ in front of that character =~ ^(#)?[a-zA-Z] ]]
+ echo '# '\''Escaping'\'' means to put an additional \ in front of that character'
+ read -r line
+ [[ wifi_ssid="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_ssid=""'
+ [[ wifi_ssid="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_ssid=""'
++ cut -d= -f1
+ param=wifi_ssid
+ [[ -v wifi_ssid ]]
+ [[ '' == *\ * ]]
+ echo wifi_ssid=
+ read -r line
+ [[ wifi_password="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_password=""'
+ [[ wifi_password="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_password=""'
++ cut -d= -f1
+ param=wifi_password
+ [[ -v wifi_password ]]
+ [[ '' == *\ * ]]
+ echo wifi_password=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Wi-Fi setting. Select a two-letter country code suitable for your location =~ ^(#)?[a-zA-Z] ]]
+ echo '# Wi-Fi setting. Select a two-letter country code suitable for your location'
+ read -r line
+ [[ # E.g. US (default), DE, AU, NZ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# E.g. US (default), DE, AU, NZ...'
+ read -r line
+ [[ # You may infringe on local legislature otherwise =~ ^(#)?[a-zA-Z] ]]
+ echo '# You may infringe on local legislature otherwise'
+ read -r line
+ [[ # See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab =~ ^(#)?[a-zA-Z] ]]
+ echo '# See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab'
+ read -r line
+ [[ wifi_country="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_country=""'
+ [[ wifi_country="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_country=""'
++ cut -d= -f1
+ param=wifi_country
+ [[ -v wifi_country ]]
+ [[ '' == *\ * ]]
+ echo wifi_country=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Eventually disable all IPv6 e.g. on installation problems =~ ^(#)?[a-zA-Z] ]]
+ echo '# Eventually disable all IPv6 e.g. on installation problems'
+ read -r line
+ [[ # values: "enable", "disable" =~ ^(#)?[a-zA-Z] ]]
+ echo '# values: "enable", "disable"'
+ read -r line
+ [[ ipv6=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=ipv6=enable
+ [[ ipv6=enable =~ ^#[a-zA-Z] ]]
++ echo ipv6=enable
++ cut -d= -f1
+ param=ipv6
+ [[ -v ipv6 ]]
+ [[ enable == *\ * ]]
+ echo ipv6=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # repo and branch to clone from =~ ^(#)?[a-zA-Z] ]]
+ echo '# repo and branch to clone from'
+ read -r line
+ [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^(#)?[a-zA-Z] ]]
+ parsed=repositoryurl=https://github.com/openhab/openhabian.git
+ [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^#[a-zA-Z] ]]
++ echo repositoryurl=https://github.com/openhab/openhabian.git
++ cut -d= -f1
+ param=repositoryurl
+ [[ -v repositoryurl ]]
+ [[ https://github.com/openhab/openhabian == *\ * ]]
+ echo repositoryurl=https://github.com/openhab/openhabian
+ read -r line
+ [[ clonebranch=main =~ ^(#)?[a-zA-Z] ]]
+ parsed=clonebranch=main
+ [[ clonebranch=main =~ ^#[a-zA-Z] ]]
++ echo clonebranch=main
++ cut -d= -f1
+ param=clonebranch
+ [[ -v clonebranch ]]
+ [[ main == *\ * ]]
+ echo clonebranch=main
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # initial openHAB configuration to import (URL or filename) =~ ^(#)?[a-zA-Z] ]]
+ echo '# initial openHAB configuration to import (URL or filename)'
+ read -r line
+ [[ # the file needs to be a zip archive created from openhab-cli backup =~ ^(#)?[a-zA-Z] ]]
+ echo '# the file needs to be a zip archive created from openhab-cli backup'
+ read -r line
+ [[ # initialconfig=/boot/initial.zip =~ ^(#)?[a-zA-Z] ]]
+ echo '# initialconfig=/boot/initial.zip'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # debug verbosity mode =~ ^(#)?[a-zA-Z] ]]
+ echo '# debug verbosity mode'
+ read -r line
+ [[ # off, on (verbose output in log) or maximum (show every command) =~ ^(#)?[a-zA-Z] ]]
+ echo '# off, on (verbose output in log) or maximum (show every command)'
+ read -r line
+ [[ debugmode=on =~ ^(#)?[a-zA-Z] ]]
+ parsed=debugmode=on
+ [[ debugmode=on =~ ^#[a-zA-Z] ]]
++ echo debugmode=on
++ cut -d= -f1
+ param=debugmode
+ [[ -v debugmode ]]
+ [[ maximum == *\ * ]]
+ echo debugmode=maximum
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # the framebuffer on RPi is enabled by default =~ ^(#)?[a-zA-Z] ]]
+ echo '# the framebuffer on RPi is enabled by default'
+ read -r line
+ [[ framebuffer=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=framebuffer=enable
+ [[ framebuffer=enable =~ ^#[a-zA-Z] ]]
++ echo framebuffer=enable
++ cut -d= -f1
+ param=framebuffer
+ [[ -v framebuffer ]]
+ [[ enable == *\ * ]]
+ echo framebuffer=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # apt timeout to wait for lock with multiple install actions going on =~ ^(#)?[a-zA-Z] ]]
+ echo '# apt timeout to wait for lock with multiple install actions going on'
+ read -r line
+ [[ apttimeout=60 =~ ^(#)?[a-zA-Z] ]]
+ parsed=apttimeout=60
+ [[ apttimeout=60 =~ ^#[a-zA-Z] ]]
++ echo apttimeout=60
++ cut -d= -f1
+ param=apttimeout
+ [[ -v apttimeout ]]
+ [[ 60 == *\ * ]]
+ echo apttimeout=60
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # fake hardware =~ ^(#)?[a-zA-Z] ]]
+ echo '# fake hardware'
+ read -r line
+ [[ # force treating your box as if it was a ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# force treating your box as if it was a ...'
+ read -r line
+ [[ # pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w, pi0w2, x86 =~ ^(#)?[a-zA-Z] ]]
+ echo '# pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w, pi0w2, x86'
+ read -r line
+ [[ # hw= =~ ^(#)?[a-zA-Z] ]]
+ echo '# hw='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Hardware architecture =~ ^(#)?[a-zA-Z] ]]
+ echo '# Hardware architecture'
+ read -r line
+ [[ # x86_64, amd64, armv6l, armv7l, aarch64, arm64 =~ ^(#)?[a-zA-Z] ]]
+ echo '# x86_64, amd64, armv6l, armv7l, aarch64, arm64'
+ read -r line
+ [[ # hwarch= =~ ^(#)?[a-zA-Z] ]]
+ echo '# hwarch='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # OS distribution/release =~ ^(#)?[a-zA-Z] ]]
+ echo '# OS distribution/release'
+ read -r line
+ [[ # Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bullseye, bionic, focal =~ ^(#)?[a-zA-Z] ]]
+ echo '# Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bullseye, bionic, focal'
+ read -r line
+ [[ # osrelease= =~ ^(#)?[a-zA-Z] ]]
+ echo '# osrelease='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Java version to install =~ ^(#)?[a-zA-Z] ]]
+ echo '# Java version to install'
+ read -r line
+ [[ # Valid arguments: 11, 17 =~ ^(#)?[a-zA-Z] ]]
+ echo '# Valid arguments: 11, 17'
+ read -r line
+ [[ java_opt=17 =~ ^(#)?[a-zA-Z] ]]
+ parsed=java_opt=17
+ [[ java_opt=17 =~ ^#[a-zA-Z] ]]
++ echo java_opt=17
++ cut -d= -f1
+ param=java_opt
+ [[ -v java_opt ]]
+ [[ 17 == *\ * ]]
+ echo java_opt=17
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # install zram per default, set to "disable" to skip installation =~ ^(#)?[a-zA-Z] ]]
+ echo '# install zram per default, set to "disable" to skip installation'
+ read -r line
+ [[ zraminstall=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=zraminstall=enable
+ [[ zraminstall=enable =~ ^#[a-zA-Z] ]]
++ echo zraminstall=enable
++ cut -d= -f1
+ param=zraminstall
+ [[ -v zraminstall ]]
+ [[ enable == *\ * ]]
+ echo zraminstall=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # start comitup hotspot if internet is not reachable =~ ^(#)?[a-zA-Z] ]]
+ echo '# start comitup hotspot if internet is not reachable'
+ read -r line
+ [[ hotspot=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=hotspot=enable
+ [[ hotspot=enable =~ ^#[a-zA-Z] ]]
++ echo hotspot=enable
++ cut -d= -f1
+ param=hotspot
+ [[ -v hotspot ]]
+ [[ enable == *\ * ]]
+ echo hotspot=enable
+ read -r line
+ [[ hotspotpw=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=hotspotpw=openhabian
+ [[ hotspotpw=openhabian =~ ^#[a-zA-Z] ]]
++ echo hotspotpw=openhabian
++ cut -d= -f1
+ param=hotspotpw
+ [[ -v hotspotpw ]]
+ [[ openhabian == *\ * ]]
+ echo hotspotpw=openhabian
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # external SD card device to backup and mirror the internal SD card to =~ ^(#)?[a-zA-Z] ]]
+ echo '# external SD card device to backup and mirror the internal SD card to'
+ read -r line
+ [[ # backupdrive=/dev/sda =~ ^(#)?[a-zA-Z] ]]
+ echo '# backupdrive=/dev/sda'
+ read -r line
+ [[ storageconfig=openhab-dir =~ ^(#)?[a-zA-Z] ]]
+ parsed=storageconfig=openhab-dir
+ [[ storageconfig=openhab-dir =~ ^#[a-zA-Z] ]]
++ echo storageconfig=openhab-dir
++ cut -d= -f1
+ param=storageconfig
+ [[ -v storageconfig ]]
+ [[ openhab-dir == *\ * ]]
+ echo storageconfig=openhab-dir
+ read -r line
+ [[ storagedir=/storage =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagedir=/storage
+ [[ storagedir=/storage =~ ^#[a-zA-Z] ]]
++ echo storagedir=/storage
++ cut -d= -f1
+ param=storagedir
+ [[ -v storagedir ]]
+ [[ /storage == *\ * ]]
+ echo storagedir=/storage
+ read -r line
+ [[ storagetapes=15 =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagetapes=15
+ [[ storagetapes=15 =~ ^#[a-zA-Z] ]]
++ echo storagetapes=15
++ cut -d= -f1
+ param=storagetapes
+ [[ -v storagetapes ]]
+ [[ 15 == *\ * ]]
+ echo storagetapes=15
+ read -r line
+ [[ storagecapacity=1024 =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagecapacity=1024
+ [[ storagecapacity=1024 =~ ^#[a-zA-Z] ]]
++ echo storagecapacity=1024
++ cut -d= -f1
+ param=storagecapacity
+ [[ -v storagecapacity ]]
+ [[ 1024 == *\ * ]]
+ echo storagecapacity=1024
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # mail relay settings =~ ^(#)?[a-zA-Z] ]]
+ echo '# mail relay settings'
+ read -r line
+ [[ # adminmail=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]]
+ echo '# adminmail=john.doe@foo.bar'
+ read -r line
+ [[ # relayuser=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]]
+ echo '# relayuser=john.doe@foo.bar'
+ read -r line
+ [[ # relaypass=secret =~ ^(#)?[a-zA-Z] ]]
+ echo '# relaypass=secret'
+ read -r line
+ [[ # smarthost=smtp.gmail.com =~ ^(#)?[a-zA-Z] ]]
+ echo '# smarthost=smtp.gmail.com'
+ read -r line
+ [[ # smartport=587 =~ ^(#)?[a-zA-Z] ]]
+ echo '# smartport=587'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Network UPS Tools =~ ^(#)?[a-zA-Z] ]]
+ echo '# Network UPS Tools'
+ read -r line
+ [[ # nutmode=netserver =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutmode=netserver'
+ read -r line
+ [[ # Settings for netserver: =~ ^(#)?[a-zA-Z] ]]
+ echo '# Settings for netserver:'
+ read -r line
+ [[ # nutupsdriver=usbhid-ups =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupsdriver=usbhid-ups'
+ read -r line
+ [[ # nutupsdescr="" =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupsdescr=""'
+ read -r line
+ [[ # Settings for netclient: =~ ^(#)?[a-zA-Z] ]]
+ echo '# Settings for netclient:'
+ read -r line
+ [[ # nutupsname=ups =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupsname=ups'
+ read -r line
+ [[ # nutupshost=xxx.xxx.xxx.xx =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupshost=xxx.xxx.xxx.xx'
+ read -r line
+ [[ # nutupsuser=monuser =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupsuser=monuser'
+ read -r line
+ [[ # nutupspw=secret =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupspw=secret'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Tailscale VPN =~ ^(#)?[a-zA-Z] ]]
+ echo '# Tailscale VPN'
+ read -r line
+ [[ # preauthkey=tskey-xxxxxxxxxxxxxxxxx =~ ^(#)?[a-zA-Z] ]]
+ echo '# preauthkey=tskey-xxxxxxxxxxxxxxxxx'
+ read -r line
+ [[ # tstags=tag:client =~ ^(#)?[a-zA-Z] ]]
+ echo '# tstags=tag:client'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Custom log files =~ ^(#)?[a-zA-Z] ]]
+ echo '# Custom log files'
+ read -r line
+ [[ # custom_log_files=("/var/log/foo.log" "/var/log/bar.log") =~ ^(#)?[a-zA-Z] ]]
+ echo '# custom_log_files=("/var/log/foo.log" "/var/log/bar.log")'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # vim: filetype=sh =~ ^(#)?[a-zA-Z] ]]
+ echo '# vim: filetype=sh'
+ read -r line
+ [[ -f /etc/init.d/openhabian-config ]]
+ config_ipv6
+ local aptConf=/etc/apt/apt.conf.d/S90force-ipv4
+ local sysctlConf=/etc/sysctl.d/99-sysctl.conf
+ [[ enable == \d\i\s\a\b\l\e ]]
+ [[ enable == \e\n\a\b\l\e ]]
+ grep -qs '^[[:space:]]*# Disable all IPv6 functionality' /etc/sysctl.d/99-sysctl.conf
+ [[ -n '' ]]
+ apt_update
+ export PID_APT=21390
+ PID_APT=21390
+ nohup apt-get update
+ whiptail_check
++ command -v whiptail
+ [[ -x /usr/bin/whiptail ]]
+ load_create_config
+ local 'questionText=\nWelcome to openHABian!\n\nPlease provide the name of your Linux user i.e. the account you normally log in with.\n\nTypical user names are '\''pi'\'' or '\''ubuntu'\''.'
+ local input
+ [[ -f /etc/openhabian.conf ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-02_23:12:28_CEST [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... '
2023-06-02_23:12:28_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group openhabian
+ [[ ! -n openhabian:x:1000:openhabian,frontail ]]
+ id -u openhabian
+ source /etc/openhabian.conf
++ hostname=openhabian
++ username=openhabian
++ userpw=openhabian
++ adminkeyurl=
++ timezone=Europe/Berlin
++ locales='en_US.UTF-8 de_DE.UTF-8'
++ system_default_locale=en_US.UTF-8
++ wifi_ssid=
++ wifi_password=
++ wifi_country=
++ ipv6=enable
++ repositoryurl=https://github.com/openhab/openhabian
++ clonebranch=main
++ debugmode=maximum
++ framebuffer=enable
++ apttimeout=60
++ java_opt=17
++ zraminstall=enable
++ hotspot=enable
++ hotspotpw=openhabian
++ storageconfig=openhab-dir
++ storagedir=/storage
++ storagetapes=15
++ storagecapacity=1024
+ echo OK
OK
+ openhabian_console_check
+ [[ -z 1 ]]
++ tput cols
+ [[ 144 -ge 120 ]]
+ return 0
+ openhabian_update_check
+ [[ -z 1 ]]
+ local branch
+ local introText
+ local unsupportedOSText
+ branch=main
+ introText='Additions, improvements or fixes were added to the openHABian configuration tool. Would you like to update now and benefit from them? The update will not automatically apply changes to your system.\n\nUpdating is recommended.'
+ unsupportedOSText='You are running an old Linux release that is no longer officially supported.\nWe recommend upgrading to the most current stable release of your distribution (or current Long Term Support version for distributions that offer LTS).\nDo you really want to continue using openHABian on this system?'
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
++ get_git_revision
++ local branch
++ local commitDate
++ local shorthash
+++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
++ branch=main
+++ git -C /opt/openhabian log --pretty=format:%aI -n 1
++ commitDate=2023-05-25T01:23:54-05:00
+++ git -C /opt/openhabian log --pretty=format:%h -n 1
++ shorthash=606c74a
++ echo '[main]{2023-05-25T01:23:54-05:00}(606c74a)'
+ echo '2023-06-02_23:12:28_CEST [openHABian] openHABian configuration tool version: [main]{2023-05-25T01:23:54-05:00}(606c74a)'
2023-06-02_23:12:28_CEST [openHABian] openHABian configuration tool version: [main]{2023-05-25T01:23:54-05:00}(606c74a)
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-02_23:12:29_CEST [openHABian] Checking for changes in origin branch main... '
2023-06-02_23:12:29_CEST [openHABian] Checking for changes in origin branch main... + is_stretch
+ [[ '' == \s\t\r\e\t\c\h ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ stretch ]]
+ return 1
+ is_xenial
+ [[ '' == \x\e\n\i\a\l ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ xenial ]]
+ return 1
+ git -C /opt/openhabian config user.email openhabian@openHABian
+ git -C /opt/openhabian config user.name openhabian
+ git -C /opt/openhabian fetch --quiet origin
++ git -C /opt/openhabian rev-parse main
++ git -C /opt/openhabian rev-parse '@{u}'
+ [[ 606c74a53a4b2e65fd852c697387cb124a0cc102 == 606c74a53a4b2e65fd852c697387cb124a0cc102 ]]
+ echo OK
OK
+ openhabian_announcements
+ [[ -z 1 ]]
+ local altReadNews
+ local newsFile
+ local readNews
+ altReadNews=/tmp/NEWS.md
+ newsFile=/opt/openhabian/NEWS.md
+ readNews=/opt/openhabian/docs/NEWS.md
+ cmp --silent /opt/openhabian/NEWS.md /opt/openhabian/docs/NEWS.md
+ cmp --silent /opt/openhabian/NEWS.md /tmp/NEWS.md
++ cat /opt/openhabian/NEWS.md
+ whiptail --title 'openHABian announcements' --yes-button 'Stop displaying' --no-button 'Keep displaying' --defaultno --scrolltext --yesno 'Hit tab to unselect buttons and scroll through the text using UP/DOWN or
PGUP/PGDN. All announcements are stored in `/opt/openhabian/docs/CHANGELOG.md`
for you to lookup.

## IMPORTANT: Java 17 is now the default ## March 22, 2023
As upcoming openHAB 4 will require Java 17 to run, it'\''s time to move so from
now on we install Java 17 by default.
NOTE: openHAB 3.X is said to work with but isn'\''t thoroughly tested on Java 17
so you might run into issues when you install 3.X.
This is also a request to all of you to gather and share experiences.
Please switch to (via menu) the *main* branch of openHABian or install it
right away as using the default branch (openHAB3) will keep installing Java 11
for the time being. Let us know your feedback via forum.
You can also change java versions via menu or on install via openhabian.conf.

## Install log now on port 81 ## February 23, 2023
As there have been conflicts with the hotspot function, the install time web
log was now moved to port 81. The standard port 80 is reserved for the hotspot.

## Raspberry Imager ## August 17, 2022
Now openHABian can be selected directly within Raspberry Imager to write the
image to an SD card.' 27 84
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-02_23:12:33_CEST [openHABian] Switching to branch main... '
2023-06-02_23:12:33_CEST [openHABian] Switching to branch main... + git -C /opt/openhabian checkout --quiet main
+ echo OK
OK
+ jsscripting_npm_check openhab
+ '[' openhab == '' ']'
+ '[' '!' -d /etc/openhab/automation/js/node_modules/openhab ']'
+ return 0
+ jsscripting_npm_check openhab_rules_tools
+ '[' openhab_rules_tools == '' ']'
+ '[' '!' -d /etc/openhab/automation/js/node_modules/openhab_rules_tools ']'
+ return 0
+ bashrc_copy
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-02_23:12:33_CEST [openHABian] Adding slightly tuned bash configuration files to system... '
2023-06-02_23:12:33_CEST [openHABian] Adding slightly tuned bash configuration files to system... + cp /opt/openhabian/includes/generic/bash.bashrc /etc/bash.bashrc
+ cp /opt/openhabian/includes/generic/bashrc-root /root/.bashrc
+ cp /opt/openhabian/includes/generic/bash_profile /home/openhabian/.bash_profile
+ cp /opt/openhabian/includes/generic/bash_aliases /home/openhabian/.bash_aliases
+ chown openhabian:openhabian /home/openhabian/.bash_aliases /home/openhabian/.bash_history /home/openhabian/.bash_logout /home/openhabian/.bash_profile
+ echo OK
OK
+ show_main_menu
+ local choice
+ local version
+++ get_git_revision
+++ local branch
+++ local commitDate
+++ local shorthash
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=main
++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
+++ commitDate=2023-05-25T01:23:54-05:00
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=606c74a
+++ echo '[main]{2023-05-25T01:23:54-05:00}(606c74a)'
++ whiptail --title 'openHABian Configuration Tool — [main]{2023-05-25T01:23:54-05:00}(606c74a)' --menu 'Setup Options' 24 118 16 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian project and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02 | Upgrade System' 'Update all installed software packages (incl. openHAB) to their latest version' '03 | Install openHAB' 'Install or upgrade to openHAB 3' '04 | Import config' 'Import an openHAB 3 configuration from file or URL' '' '' '10 | Apply Improvements' 'Apply the latest improvements to the basic openHABian setup ►' '20 | Optional Components' 'Choose from a set of optional software components ►' '30 | System Settings' 'A range of system and hardware related configuration steps ►' '40 | openHAB Related' 'Switch the installed openHAB version or apply tweaks ►' '50 | Backup/Restore' 'Manage backups and restore your system ►'
+ choice='30 | System Settings'
+ RET=0
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 255 ']'
+ [[ 30 | System Settings == '' ]]
+ [[ 30 | System Settings == \0\0* ]]
+ [[ 30 | System Settings == \0\1* ]]
+ [[ 30 | System Settings == \0\2* ]]
+ [[ 30 | System Settings == \0\3* ]]
+ [[ 30 | System Settings == \0\4* ]]
+ [[ 30 | System Settings == \1\0* ]]
+ [[ 30 | System Settings == \2\0* ]]
+ [[ 30 | System Settings == \3\0* ]]
+++ get_git_revision
+++ local branch
+++ local commitDate
+++ local shorthash
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=main
++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
+++ commitDate=2023-05-25T01:23:54-05:00
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=606c74a
+++ echo '[main]{2023-05-25T01:23:54-05:00}(606c74a)'
+++ hostname
+++ env
+++ grep '^[[:space:]]*LANG='
+++ sed 's|LANG=||g'
+++ printf '%(%H:%M)T\n' -1
++ whiptail --title 'openHABian Configuration Tool — [main]{2023-05-25T01:23:54-05:00}(606c74a)' --menu 'System Settings' 24 118 16 --cancel-button Back --ok-button Execute '31 | Change hostname' 'Change the name of this system, currently '\''openhabian'\''' '32 | Set system locale' 'Change system language, currently '\''en_US.UTF-8'\''' '33 | Set system timezone' 'Change your timezone, execute if it'\''s not '\''23:12'\'' now' '34 | Change passwords' 'Change passwords for Samba, openHAB Console or the system user' '35 | Serial port' 'Prepare serial ports for peripherals like RaZberry, ZigBee adapters etc' '36 | Disable framebuffer' 'Disable framebuffer on RPi to minimize memory usage' '   | Enable framebuffer' 'Enable framebuffer (standard setting)' '37 | WiFi setup' 'Configure wireless network connection' '   | Disable WiFi' 'Disable wireless network connection' '38 | Use zram' 'Use compressed RAM/disk sync for active directories to avoid SD card corruption' '   | Update zram' 'Update a currently installed zram instance' '   | Uninstall zram' 'Don'\''t use compressed memory (back to standard Raspberry Pi OS filesystem layout)' '39 | Move root to USB' 'Move the system root from the SD card to a USB device (SSD or stick)' '3A | Setup Exim Mail Relay' 'Install Exim4 to relay mails via public email provider' '3B | Setup Tailscale VPN' 'Establish or join a WireGuard based VPN using the Tailscale service' '   | Remove Tailscale VPN' 'Remove the Tailscale VPN service' '   | Install WireGuard' 'Setup WireGuard to enable secure remote access to this openHABian system' '   | Remove WireGuard' 'Remove WireGuard VPN from this system' '3C | Setup UPS (nut)' 'Setup a Uninterruptable Power Supply for this system using Network UPS Tools'
+ choice2=
+ '[' 255 -eq 1 ']'
+ '[' 1 -eq 255 ']'
+ wait_for_apt_to_finish_update
+ local 'spin=-\|/'
+ local i
+ [[ -z 21390 ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-02_23:12:43_CEST [openHABian] Updating Linux package information... '
2023-06-02_23:12:43_CEST [openHABian] Updating Linux package information... + kill -0 21390
+ echo OK
OK
+ case "$choice2" in
+ return 0
+ true
+ show_main_menu
+ local choice
+ local version
+++ get_git_revision
+++ local branch
+++ local commitDate
+++ local shorthash
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=main
++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
+++ commitDate=2023-05-25T01:23:54-05:00
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=606c74a
+++ echo '[main]{2023-05-25T01:23:54-05:00}(606c74a)'
++ whiptail --title 'openHABian Configuration Tool — [main]{2023-05-25T01:23:54-05:00}(606c74a)' --menu 'Setup Options' 24 118 16 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian project and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02 | Upgrade System' 'Update all installed software packages (incl. openHAB) to their latest version' '03 | Install openHAB' 'Install or upgrade to openHAB 3' '04 | Import config' 'Import an openHAB 3 configuration from file or URL' '' '' '10 | Apply Improvements' 'Apply the latest improvements to the basic openHABian setup ►' '20 | Optional Components' 'Choose from a set of optional software components ►' '30 | System Settings' 'A range of system and hardware related configuration steps ►' '40 | openHAB Related' 'Switch the installed openHAB version or apply tweaks ►' '50 | Backup/Restore' 'Manage backups and restore your system ►'
+ choice='20 | Optional Components'
+ RET=0
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 255 ']'
+ [[ 20 | Optional Components == '' ]]
+ [[ 20 | Optional Components == \0\0* ]]
+ [[ 20 | Optional Components == \0\1* ]]
+ [[ 20 | Optional Components == \0\2* ]]
+ [[ 20 | Optional Components == \0\3* ]]
+ [[ 20 | Optional Components == \0\4* ]]
+ [[ 20 | Optional Components == \1\0* ]]
+ [[ 20 | Optional Components == \2\0* ]]
+++ get_git_revision
+++ local branch
+++ local commitDate
+++ local shorthash
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=main
++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
+++ commitDate=2023-05-25T01:23:54-05:00
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=606c74a
+++ echo '[main]{2023-05-25T01:23:54-05:00}(606c74a)'
++ whiptail --title 'openHABian Configuration Tool — [main]{2023-05-25T01:23:54-05:00}(606c74a)' --menu 'Optional Components' 24 118 16 --cancel-button Back --ok-button Execute '21 | Log Viewer' 'openHAB Log Viewer webapp (frontail)' '   | Add log to viewer' 'Add a custom log to openHAB Log Viewer (frontail)' '   | Remove log from viewer' 'Remove a custom log from openHAB Log Viewer (frontail)' '22 | miflora-mqtt-daemon' 'Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon' '23 | Mosquitto' 'MQTT broker Eclipse Mosquitto' '24 | InfluxDB+Grafana' 'A powerful persistence and graphing solution' '25 | Node-RED' 'Flow-based programming for the Internet of Things' '26 | Homegear' 'Homematic specific, the CCU2 emulation software Homegear' '27 | knxd' 'KNX specific, the KNX router/gateway daemon knxd' '28 | 1wire' '1wire specific, owserver and related packages' '29 | deCONZ' 'deCONZ / Phoscon companion app for Conbee/Raspbee controller' '2A | Zigbee2MQTT' 'Install or Update Zigbee2MQTT' '   | Remove Zigbee2MQTT' 'Remove Zigbee2MQTT from this system' '2B | FIND 3' 'Framework for Internal Navigation and Discovery' '   | Monitor Mode' 'Patch firmware to enable monitor mode (ALPHA/DANGEROUS)' '2C | Install HABApp' 'Python 3 integration and rule engine for openHAB' '   | Remove HABApp' 'Remove HABApp from this system' '2D | Install EVCC' 'Deploy Electric Vehicle Charge Controller' '   | Remove EVCC' 'Uninstall EVCC' '   | Setup EVCC' 'Setup EVCC from command line (German only)'
+ choice2='29 | deCONZ'
+ '[' 0 -eq 1 ']'
+ '[' 1 -eq 255 ']'
+ wait_for_apt_to_finish_update
+ local 'spin=-\|/'
+ local i
+ [[ -z 21390 ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-02_23:12:50_CEST [openHABian] Updating Linux package information... '
2023-06-02_23:12:50_CEST [openHABian] Updating Linux package information... + kill -0 21390
+ echo OK
OK
+ case "$choice2" in
+ deconz_setup
+ local port=8081
+ local keyName=deconz
+ local appData=/var/lib/openhab/persistence/deCONZ
+ local 'introText=This will install deCONZ as a web service, the companion app to support Dresden Elektronik Conbee and Raspbee Zigbee controllers.\nUse the web interface on port 8081 to pair your sensors.\nNote the port is changed to 8081 as the default 80 wouldn'\''t be right with openHAB itself running on 8080.'
+ local 'successText=The deCONZ API plugin and the Phoscon companion web app were successfully installed on your system.\nUse the web interface on port 8081 to pair your sensors with Conbee or Raspbee Zigbee controllers.\nNote the port has been changed from its default 80 to 8081.'
+ local repo=/etc/apt/sources.list.d/deconz.list
+ whiptail --title 'deCONZ installation' --yes-button Continue --no-button Cancel --yesno 'This will install deCONZ as a web service, the companion app to support Dresden Elektronik Conbee and Raspbee Zigbee controllers.\nUse the web interface on port 8081 to pair your sensors.\nNote the port is changed to 8081 as the default 80 wouldn'\''t be right with openHAB itself running on 8080.' 11 80
+ add_keys http://phoscon.de/apt/deconz.pub.key deconz
+ local repoKey=/usr/share/keyrings/deconz.gpg
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-02_23:12:52_CEST [openHABian] Adding required keys to apt... '
2023-06-02_23:12:52_CEST [openHABian] Adding required keys to apt... + curl -fsSL http://phoscon.de/apt/deconz.pub.key
+ gpg --dearmor
+ echo OK
OK
++ lsb_release -si
+ myOS=Raspbian
++ lsb_release -sc
+ myRelease=bullseye
+ [[ bullseye == \n\/\a ]]
+ is_x86_64
+ [[ '' == \x\8\6\_\6\4 ]]
+ [[ '' == \a\m\d\6\4 ]]
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ echo 'deb [signed-by=/usr/share/keyrings/deconz.gpg] http://phoscon.de/apt/deconz bullseye main'
+ cond_redirect mkdir /var/lib/openhab/persistence/deCONZ
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir /var/lib/openhab/persistence/deCONZ \033[39;49;00m'

$ mkdir /var/lib/openhab/persistence/deCONZ
+ mkdir /var/lib/openhab/persistence/deCONZ
mkdir: cannot create directory ‘/var/lib/openhab/persistence/deCONZ’: File exists
+ return 1
+ fix_permissions /var/lib/openhab/persistence/deCONZ openhabian:openhabian 664 775
+ [[ -e /var/lib/openhab/persistence/deCONZ ]]
+ chown openhabian:openhabian /var/lib/openhab/persistence/deCONZ
+ [[ -n 664 ]]
+ [[ -f /var/lib/openhab/persistence/deCONZ ]]
+ [[ -n 775 ]]
+ [[ -d /var/lib/openhab/persistence/deCONZ ]]
+ find /var/lib/openhab/persistence/deCONZ -type d -print0
+ xargs -0 chmod 775
+ return 0
+ ln -sf /var/lib/openhab/persistence/deCONZ /home/openhabian/.local
+ echo 'FAILED (deCONZ database on zram)'
FAILED (deCONZ database on zram)
+ return 1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n  "20 | Optional Components"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/main/docs/openhabian-DEBUG.md how to proceed.' 14 80
+ return 0
+ true
+ show_main_menu
+ local choice
+ local version
+++ get_git_revision
+++ local branch
+++ local commitDate
+++ local shorthash
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=main
++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
+++ commitDate=2023-05-25T01:23:54-05:00
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=606c74a
+++ echo '[main]{2023-05-25T01:23:54-05:00}(606c74a)'
++ whiptail --title 'openHABian Configuration Tool — [main]{2023-05-25T01:23:54-05:00}(606c74a)' --menu 'Setup Options' 24 118 16 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian project and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02 | Upgrade System' 'Update all installed software packages (incl. openHAB) to their latest version' '03 | Install openHAB' 'Install or upgrade to openHAB 3' '04 | Import config' 'Import an openHAB 3 configuration from file or URL' '' '' '10 | Apply Improvements' 'Apply the latest improvements to the basic openHABian setup ►' '20 | Optional Components' 'Choose from a set of optional software components ►' '30 | System Settings' 'A range of system and hardware related configuration steps ►' '40 | openHAB Related' 'Switch the installed openHAB version or apply tweaks ►' '50 | Backup/Restore' 'Manage backups and restore your system ►'
+ choice=
+ RET=1
+ '[' 1 -eq 1 ']'
+ return 255
+ system_check_default_password
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ local algo
+ local defaultPassword
+ local defaultUser
+ local generatedPassword
+ local introText
+ local originalPassword
+ local salt
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ id -u pi
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ defaultUser=openhabian
+ defaultPassword=openhabian
++ grep -w openhabian /etc/shadow
++ cut -d: -f2
+ originalPassword='$y$j9T$GkskMDRXXKEFMdaNlzT0Z1$Xx/mGdsLw5t46BdrX1JP0zfuRoQ8CeCMUYm97jBQjWB'
++ echo '$y$j9T$GkskMDRXXKEFMdaNlzT0Z1$Xx/mGdsLw5t46BdrX1JP0zfuRoQ8CeCMUYm97jBQjWB'
++ cut '-d$' -f2
+ algo=y
+ introText='The default password was detected on your system! That is a serious security concern. Bad guys or malicious programs in your subnet are able to gain root access!\n\nPlease set a strong password by typing the command '\''passwd openhabian'\''!'
++ echo '$y$j9T$GkskMDRXXKEFMdaNlzT0Z1$Xx/mGdsLw5t46BdrX1JP0zfuRoQ8CeCMUYm97jBQjWB'
++ cut '-d$' -f3
+ salt=j9T
+ export algo defaultPassword salt
++ perl -le 'print crypt("$ENV{defaultPassword}","\$$ENV{algo}\$$ENV{salt}\$")'
+ generatedPassword='$y$j9T$$1DJdHt2WNxWqFR3sUxwYKh.KdyI9MF4X/A9710MJGjA'
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-02_23:13:02_CEST [openHABian] Checking for default openHABian username:password combination... '
2023-06-02_23:13:02_CEST [openHABian] Checking for default openHABian username:password combination... ++ id -u openhabian
+ [[ -n 1000 ]]
+ [[ $y$j9T$$1DJdHt2WNxWqFR3sUxwYKh.KdyI9MF4X/A9710MJGjA == \$\y\$\j\9\T\$\G\k\s\k\M\D\R\X\X\K\E\F\M\d\a\N\l\z\T\0\Z\1\$\X\x\/\m\G\d\s\L\w\5\t\4\6\B\d\r\X\1\J\P\0\z\f\u\R\o\Q\8\C\e\C\M\U\Y\m\9\7\j\B\Q\j\W\B ]]
+ echo OK
OK
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -e '2023-06-02_23:13:02_CEST [openHABian] We hope you got what you came for! See you again soon ;)'
2023-06-02_23:13:02_CEST [openHABian] We hope you got what you came for! See you again soon ;)
+ cd /home/openhabian
openhabian@openhabian:~ $

+ ln -sf /var/lib/openhab/persistence/deCONZ /home/openhabian/.local
+ echo 'FAILED (deCONZ database on zram)'
FAILED (deCONZ database on zram)
+ return 1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n  "20 | Optional Components"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/main/docs/openhabian-DEBUG.md how to proceed.' 14 80

The command that should create the link /home/openhabian/.local/deCONZ fails.
I assume it fails because the link already exists ? It also could be that the directory .local does not exist ( but I doubt ).
Could you check, if the link already exists ? In case it already exists remove it and try to install deCONZ again.

Wolfgang, thank you for your ultrafast response.

Unfortunately, I am a Linux noob, so I just list the contents of the directories:

openhabian@openhabian:~ $ cd /home/openhabian/
openhabian@openhabian:~ $ ls -l -a
total 3360
drwxr-xr-x 13 openhabian openhabian    4096 Jun  3 15:35 .
drwxr-xr-x  3 root       root          4096 Dec 10  2021 ..
-rw-r--r--  1 openhabian openhabian     614 Jun  3 15:42 .bash_aliases
-rw-------  1 openhabian openhabian   41272 Jun  3 15:35 .bash_history
-rw-r--r--  1 openhabian openhabian     220 Oct 30  2021 .bash_logout
-rw-r--r--  1 openhabian openhabian    2172 Jun  3 15:42 .bash_profile
-rw-r--r--  1 openhabian openhabian    3523 Oct 30  2021 .bashrc
drwxr-xr-x  5 openhabian openhabian    4096 Apr 20 14:38 .cache
drwx------  5 openhabian openhabian    4096 Apr 28  2022 .config
-rw-r--r--  1 openhabian openhabian 2509192 Nov  2  2022 Dateiname.zip
-rw-r--r--  1 openhabian openhabian     492 Dec 28  2021 deconz-vnc.service
drwxr-xr-x  3 openhabian openhabian    4096 Dec 10  2021 etc
-rw-r--r--  1 openhabian openhabian    7641 Jun  3 15:36 .firemotd-cache
drwxr-xr-x  3 openhabian openhabian    4096 Dec 10  2021 home
-rw-r--r--  1 openhabian openhabian     871 Jun  2 22:35 .influx_history
drwxr-xr-x  5 openhabian openhabian    4096 Jun  2 23:12 .local
-rw-r--r--  1 openhabian openhabian     807 Oct 30  2021 .profile
-rw-------  1 openhabian openhabian      36 Jul  1  2022 .python_history
-rw-r--r--  1 openhabian openhabian      89 May 31 14:00 README.txt
-rw-r--r--  1 openhabian openhabian  779108 Apr 10 16:54 rrd2influxdb.jar
drwx------  2 openhabian openhabian    4096 Dec 28  2021 .ssh
drwxr-xr-x  8 openhabian openhabian    4096 Jan 24 22:53 Sync
drwxr-xr-x  4 openhabian openhabian    4096 May 28 18:24 SyncAndroid
drwxr-xr-x  2 openhabian openhabian    4096 Dec 23  2021 tmp
drwxr-xr-x  4 openhabian openhabian    4096 Dec 10  2021 .vim
drwxr-xr-x  2 openhabian openhabian    4096 Jul  8  2022 .vnc
-rw-------  1 openhabian openhab        216 Jun  3 15:35 .Xauthority

openhabian@openhabian:~/.local $ ls -l -a
total 24
drwxr-xr-x  5 openhabian openhabian 4096 Jun  2 23:12 .
drwxr-xr-x 13 openhabian openhabian 4096 Jun  3 15:35 ..
drwxr-xr-x  2 openhabian openhabian 4096 Jul  1  2022 bin
lrwxrwxrwx  1 openhabian openhabian   35 Jun  2 23:12 deCONZ -> /var/lib/openhab/persistence/deCONZ
drwxr-xr-x  3 openhabian openhabian 4096 Jul  1  2022 lib
drwxr-xr-x  4 openhabian openhabian 4096 May 31 13:19 share
-rw-r--r--  1 openhabian openhabian    7 Jul  1  2022 .version
openhabian@openhabian:~/.local $
openhabian@openhabian:~/.local/deCONZ $ ls -l -a /var/lib/openhab/persistence
total 32
drwxrwxr-x  1 openhab openhabian 4096 Jun  3 00:34 .
drwxrwxr-x 20 openhab openhab    4096 May 31 14:25 ..
drwxrwxr-x  2 openhab openhab    4096 May 31 14:23 db4o
drwxrwxr-x  2 root    root       4096 May 30 21:07 deCONZ
drwxrwxr-x  2 openhab openhab    4096 May 31 14:23 mapdb
drwxrwxr-x  1 openhab openhab    4096 Jun  3 00:33 rrd4j
openhabian@openhabian:~/.local/deCONZ $

I wonder why /var/lib/openhab/persistence/deCONZ has owner root?

That is correct.

What I wrote is

So the source ( /var/lib/openhab/persistence/deCONZ ) is a directory. That is ok.
And the target (to be created in /home/openhabian/.local ) is also already there.
I think the command fails because the link was already created.
Try to remove the link ( rm /home/openhabian/.local/deCONZ ) and run the command again.
Besides that the ownership of the source directory needs to be openhab:openhab instead of root:root.

sorry, I edited my posting while you were answering. I now removed the link but before trying to use openhabian-config to reinstall deconz I should fix the ownership from root to openhab. But how?

You can use fix permissions in openhabian-config.
sudo chown openhab:openhab /var/lib/openhab/persistence/deCONZ will do the same

Thank you, but the failure isn’t fixed

openhabian@openhabian:~/.local $ sudo openhabian-config
2023-06-03_16:31:42_CEST [openHABian] Checking for root privileges... OK
+ export UNATTENDED SILENT DEBUGMAX INTERACTIVE
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/auth.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/backup.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/config.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/ext-storage.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/find.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/habapp.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/helpers.bash
++ ESC='\033['
++ COL_DEF='\033[39;49;00m'
++ COL_RED='\033[31;01m'
++ COL_GREEN='\033[32;01m'
++ COL_YELLOW='\033[33;01m'
++ COL_BLUE='\033[34;01m'
++ COL_MAGENTA='\033[35;01m'
++ COL_CYAN='\033[36;01m'
++ COL_LGRAY='\033[37;01m'
++ COL_DGRAY='\033[90;01m'
++ export COL_DEF COL_RED COL_GREEN COL_YELLOW COL_BLUE COL_MAGENTA COL_CYAN COL_LGRAY COL_DGRAY
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/influxdb+grafana.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/java-jre.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/menu.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/nodejs-apps.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/nut.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/openhab.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/openhabian.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/packages.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/system.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/vpn.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/wifi.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/zram.bash
++ pwd
+ OLDWD=/home/openhabian/.local
+ cd /opt
+ update_openhabian_conf
+ local configFile=/etc/openhabian.conf
+ local referenceConfig=/opt/openhabian/build-image/openhabian.conf
+ cp /etc/openhabian.conf /etc/openhabian.conf.BAK
+ read -r line
+ [[ # Origin: openhabian.conf =~ ^(#)?[a-zA-Z] ]]
+ echo '# Origin: openhabian.conf'
+ read -r line
+ [[ # =~ ^(#)?[a-zA-Z] ]]
+ echo '#'
+ read -r line
+ [[ # Modify your openHABian settings =~ ^(#)?[a-zA-Z] ]]
+ echo '# Modify your openHABian settings'
+ read -r line
+ [[ # Handle with care, only touch if you need to! =~ ^(#)?[a-zA-Z] ]]
+ echo '# Handle with care, only touch if you need to!'
+ read -r line
+ [[ # This file will only be used on unattended initial install. =~ ^(#)?[a-zA-Z] ]]
+ echo '# This file will only be used on unattended initial install.'
+ read -r line
+ [[ # If you want to change anything after unattended install completed, use menu in openhabian-config. =~ ^(#)?[a                                                       -zA-Z] ]]
+ echo '# If you want to change anything after unattended install completed, use menu in openhabian-config.'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # ATTENTION: to disable an option a line MUST be of the format '# option=value' =~ ^(#)?[a-zA-Z] ]]
+ echo '# ATTENTION: to disable an option a line MUST be of the format '\''# option=value'\'''
+ read -r line
+ [[ # KEEP THE SPACE IT IS IMPORTANT !! =~ ^(#)?[a-zA-Z] ]]
+ echo '# KEEP THE SPACE IT IS IMPORTANT !!'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Hostname to set this one to =~ ^(#)?[a-zA-Z] ]]
+ echo '# Hostname to set this one to'
+ read -r line
+ [[ hostname=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=hostname=openhabian
+ [[ hostname=openhabian =~ ^#[a-zA-Z] ]]
++ echo hostname=openhabian
++ cut -d= -f1
+ param=hostname
+ [[ -v hostname ]]
+ [[ openhabian == *\ * ]]
+ echo hostname=openhabian
+ read -r line
+ [[ # if it exists, the default user (with its working environment) will be renamed to this username given here ..                                                       . =~ ^(#)?[a-zA-Z] ]]
+ echo '# if it exists, the default user (with its working environment) will be renamed to this username given here                                                        ...'
+ read -r line
+ [[ username=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=username=openhabian
+ [[ username=openhabian =~ ^#[a-zA-Z] ]]
++ echo username=openhabian
++ cut -d= -f1
+ param=username
+ [[ -v username ]]
+ [[ openhabian == *\ * ]]
+ echo username=openhabian
+ read -r line
+ [[ # ... and given this password. The password will be removed from this file after completion for security reaso                                                       ns. =~ ^(#)?[a-zA-Z] ]]
+ echo '# ... and given this password. The password will be removed from this file after completion for security re                                                       asons.'
+ read -r line
+ [[ userpw=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=userpw=openhabian
+ [[ userpw=openhabian =~ ^#[a-zA-Z] ]]
++ echo userpw=openhabian
++ cut -d= -f1
+ param=userpw
+ [[ -v userpw ]]
+ [[ openhabian == *\ * ]]
+ echo userpw=openhabian
+ read -r line
+ [[ # set this to download a SSH key and authorize the owner to login as the admin user =~ ^(#)?[a-zA-Z] ]]
+ echo '# set this to download a SSH key and authorize the owner to login as the admin user'
+ read -r line
+ [[ adminkeyurl="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='adminkeyurl=""'
+ [[ adminkeyurl="" =~ ^#[a-zA-Z] ]]
++ echo 'adminkeyurl=""'
++ cut -d= -f1
+ param=adminkeyurl
+ [[ -v adminkeyurl ]]
+ [[ '' == *\ * ]]
+ echo adminkeyurl=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Language and timezone. See Debian documentation for valid values. =~ ^(#)?[a-zA-Z] ]]
+ echo '# Language and timezone. See Debian documentation for valid values.'
+ read -r line
+ [[ timezone=Europe/Berlin =~ ^(#)?[a-zA-Z] ]]
+ parsed=timezone=Europe/Berlin
+ [[ timezone=Europe/Berlin =~ ^#[a-zA-Z] ]]
++ echo timezone=Europe/Berlin
++ cut -d= -f1
+ param=timezone
+ [[ -v timezone ]]
+ [[ Europe/Berlin == *\ * ]]
+ echo timezone=Europe/Berlin
+ read -r line
+ [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^(#)?[a-zA-Z] ]]
+ parsed='locales="en_US.UTF-8 de_DE.UTF-8"'
+ [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^#[a-zA-Z] ]]
++ echo 'locales="en_US.UTF-8 de_DE.UTF-8"'
++ cut -d= -f1
+ param=locales
+ [[ -v locales ]]
+ [[ en_US.UTF-8 de_DE.UTF-8 == *\ * ]]
+ echo 'locales="en_US.UTF-8 de_DE.UTF-8"'
+ read -r line
+ [[ system_default_locale="en_US.UTF-8" =~ ^(#)?[a-zA-Z] ]]
+ parsed='system_default_locale="en_US.UTF-8"'
+ [[ system_default_locale="en_US.UTF-8" =~ ^#[a-zA-Z] ]]
++ echo 'system_default_locale="en_US.UTF-8"'
++ cut -d= -f1
+ param=system_default_locale
+ [[ -v system_default_locale ]]
+ [[ en_US.UTF-8 == *\ * ]]
+ echo system_default_locale=en_US.UTF-8
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # WiFi settings. An ethernet connection is recommended. =~ ^(#)?[a-zA-Z] ]]
+ echo '# WiFi settings. An ethernet connection is recommended.'
+ read -r line
+ [[ # If you have a RPi4, RPi3, RPi0W or a supported external WiFi dongle, the WiFi =~ ^(#)?[a-zA-Z] ]]
+ echo '# If you have a RPi4, RPi3, RPi0W or a supported external WiFi dongle, the WiFi'
+ read -r line
+ [[ # interface can be setup and used for the initial installation. =~ ^(#)?[a-zA-Z] ]]
+ echo '# interface can be setup and used for the initial installation.'
+ read -r line
+ [[ # Fill in your SSID and password below, leave empty or put comment in front to =~ ^(#)?[a-zA-Z] ]]
+ echo '# Fill in your SSID and password below, leave empty or put comment in front to'
+ read -r line
+ [[ # have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works. =~ ^(#)?[a-zA-Z] ]]
+ echo '# have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works.'
+ read -r line
+ [[ # ATTENTION: you need to escape these special characters: $, `, ", \, (newline) =~ ^(#)?[a-zA-Z] ]]
+ echo '# ATTENTION: you need to escape these special characters: $, `, ", \, (newline)'
+ read -r line
+ [[ # 'Escaping' means to put an additional \ in front of that character =~ ^(#)?[a-zA-Z] ]]
+ echo '# '\''Escaping'\'' means to put an additional \ in front of that character'
+ read -r line
+ [[ wifi_ssid="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_ssid=""'
+ [[ wifi_ssid="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_ssid=""'
++ cut -d= -f1
+ param=wifi_ssid
+ [[ -v wifi_ssid ]]
+ [[ '' == *\ * ]]
+ echo wifi_ssid=
+ read -r line
+ [[ wifi_password="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_password=""'
+ [[ wifi_password="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_password=""'
++ cut -d= -f1
+ param=wifi_password
+ [[ -v wifi_password ]]
+ [[ '' == *\ * ]]
+ echo wifi_password=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Wi-Fi setting. Select a two-letter country code suitable for your location =~ ^(#)?[a-zA-Z] ]]
+ echo '# Wi-Fi setting. Select a two-letter country code suitable for your location'
+ read -r line
+ [[ # E.g. US (default), DE, AU, NZ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# E.g. US (default), DE, AU, NZ...'
+ read -r line
+ [[ # You may infringe on local legislature otherwise =~ ^(#)?[a-zA-Z] ]]
+ echo '# You may infringe on local legislature otherwise'
+ read -r line
+ [[ # See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab =~ ^(#)?[a-zA-Z] ]]
+ echo '# See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab'
+ read -r line
+ [[ wifi_country="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_country=""'
+ [[ wifi_country="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_country=""'
++ cut -d= -f1
+ param=wifi_country
+ [[ -v wifi_country ]]
+ [[ '' == *\ * ]]
+ echo wifi_country=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Eventually disable all IPv6 e.g. on installation problems =~ ^(#)?[a-zA-Z] ]]
+ echo '# Eventually disable all IPv6 e.g. on installation problems'
+ read -r line
+ [[ # values: "enable", "disable" =~ ^(#)?[a-zA-Z] ]]
+ echo '# values: "enable", "disable"'
+ read -r line
+ [[ ipv6=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=ipv6=enable
+ [[ ipv6=enable =~ ^#[a-zA-Z] ]]
++ echo ipv6=enable
++ cut -d= -f1
+ param=ipv6
+ [[ -v ipv6 ]]
+ [[ enable == *\ * ]]
+ echo ipv6=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # repo and branch to clone from =~ ^(#)?[a-zA-Z] ]]
+ echo '# repo and branch to clone from'
+ read -r line
+ [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^(#)?[a-zA-Z] ]]
+ parsed=repositoryurl=https://github.com/openhab/openhabian.git
+ [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^#[a-zA-Z] ]]
++ echo repositoryurl=https://github.com/openhab/openhabian.git
++ cut -d= -f1
+ param=repositoryurl
+ [[ -v repositoryurl ]]
+ [[ https://github.com/openhab/openhabian == *\ * ]]
+ echo repositoryurl=https://github.com/openhab/openhabian
+ read -r line
+ [[ clonebranch=main =~ ^(#)?[a-zA-Z] ]]
+ parsed=clonebranch=main
+ [[ clonebranch=main =~ ^#[a-zA-Z] ]]
++ echo clonebranch=main
++ cut -d= -f1
+ param=clonebranch
+ [[ -v clonebranch ]]
+ [[ main == *\ * ]]
+ echo clonebranch=main
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # initial openHAB configuration to import (URL or filename) =~ ^(#)?[a-zA-Z] ]]
+ echo '# initial openHAB configuration to import (URL or filename)'
+ read -r line
+ [[ # the file needs to be a zip archive created from openhab-cli backup =~ ^(#)?[a-zA-Z] ]]
+ echo '# the file needs to be a zip archive created from openhab-cli backup'
+ read -r line
+ [[ # initialconfig=/boot/initial.zip =~ ^(#)?[a-zA-Z] ]]
+ echo '# initialconfig=/boot/initial.zip'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # debug verbosity mode =~ ^(#)?[a-zA-Z] ]]
+ echo '# debug verbosity mode'
+ read -r line
+ [[ # off, on (verbose output in log) or maximum (show every command) =~ ^(#)?[a-zA-Z] ]]
+ echo '# off, on (verbose output in log) or maximum (show every command)'
+ read -r line
+ [[ debugmode=on =~ ^(#)?[a-zA-Z] ]]
+ parsed=debugmode=on
+ [[ debugmode=on =~ ^#[a-zA-Z] ]]
++ echo debugmode=on
++ cut -d= -f1
+ param=debugmode
+ [[ -v debugmode ]]
+ [[ maximum == *\ * ]]
+ echo debugmode=maximum
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # the framebuffer on RPi is enabled by default =~ ^(#)?[a-zA-Z] ]]
+ echo '# the framebuffer on RPi is enabled by default'
+ read -r line
+ [[ framebuffer=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=framebuffer=enable
+ [[ framebuffer=enable =~ ^#[a-zA-Z] ]]
++ echo framebuffer=enable
++ cut -d= -f1
+ param=framebuffer
+ [[ -v framebuffer ]]
+ [[ enable == *\ * ]]
+ echo framebuffer=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # apt timeout to wait for lock with multiple install actions going on =~ ^(#)?[a-zA-Z] ]]
+ echo '# apt timeout to wait for lock with multiple install actions going on'
+ read -r line
+ [[ apttimeout=60 =~ ^(#)?[a-zA-Z] ]]
+ parsed=apttimeout=60
+ [[ apttimeout=60 =~ ^#[a-zA-Z] ]]
++ echo apttimeout=60
++ cut -d= -f1
+ param=apttimeout
+ [[ -v apttimeout ]]
+ [[ 60 == *\ * ]]
+ echo apttimeout=60
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # fake hardware =~ ^(#)?[a-zA-Z] ]]
+ echo '# fake hardware'
+ read -r line
+ [[ # force treating your box as if it was a ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# force treating your box as if it was a ...'
+ read -r line
+ [[ # pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w, pi0w2, x86 =~ ^(#)?[a-zA-Z] ]]
+ echo '# pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w, pi0w2, x86'
+ read -r line
+ [[ # hw= =~ ^(#)?[a-zA-Z] ]]
+ echo '# hw='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Hardware architecture =~ ^(#)?[a-zA-Z] ]]
+ echo '# Hardware architecture'
+ read -r line
+ [[ # x86_64, amd64, armv6l, armv7l, aarch64, arm64 =~ ^(#)?[a-zA-Z] ]]
+ echo '# x86_64, amd64, armv6l, armv7l, aarch64, arm64'
+ read -r line
+ [[ # hwarch= =~ ^(#)?[a-zA-Z] ]]
+ echo '# hwarch='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # OS distribution/release =~ ^(#)?[a-zA-Z] ]]
+ echo '# OS distribution/release'
+ read -r line
+ [[ # Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bullseye, bionic, focal =~ ^(#)?[a-zA-Z                                                       ] ]]
+ echo '# Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bullseye, bionic, focal'
+ read -r line
+ [[ # osrelease= =~ ^(#)?[a-zA-Z] ]]
+ echo '# osrelease='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Java version to install =~ ^(#)?[a-zA-Z] ]]
+ echo '# Java version to install'
+ read -r line
+ [[ # Valid arguments: 11, 17 =~ ^(#)?[a-zA-Z] ]]
+ echo '# Valid arguments: 11, 17'
+ read -r line
+ [[ java_opt=17 =~ ^(#)?[a-zA-Z] ]]
+ parsed=java_opt=17
+ [[ java_opt=17 =~ ^#[a-zA-Z] ]]
++ echo java_opt=17
++ cut -d= -f1
+ param=java_opt
+ [[ -v java_opt ]]
+ [[ 17 == *\ * ]]
+ echo java_opt=17
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # install zram per default, set to "disable" to skip installation =~ ^(#)?[a-zA-Z] ]]
+ echo '# install zram per default, set to "disable" to skip installation'
+ read -r line
+ [[ zraminstall=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=zraminstall=enable
+ [[ zraminstall=enable =~ ^#[a-zA-Z] ]]
++ echo zraminstall=enable
++ cut -d= -f1
+ param=zraminstall
+ [[ -v zraminstall ]]
+ [[ enable == *\ * ]]
+ echo zraminstall=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # start comitup hotspot if internet is not reachable =~ ^(#)?[a-zA-Z] ]]
+ echo '# start comitup hotspot if internet is not reachable'
+ read -r line
+ [[ hotspot=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=hotspot=enable
+ [[ hotspot=enable =~ ^#[a-zA-Z] ]]
++ echo hotspot=enable
++ cut -d= -f1
+ param=hotspot
+ [[ -v hotspot ]]
+ [[ enable == *\ * ]]
+ echo hotspot=enable
+ read -r line
+ [[ hotspotpw=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=hotspotpw=openhabian
+ [[ hotspotpw=openhabian =~ ^#[a-zA-Z] ]]
++ echo hotspotpw=openhabian
++ cut -d= -f1
+ param=hotspotpw
+ [[ -v hotspotpw ]]
+ [[ openhabian == *\ * ]]
+ echo hotspotpw=openhabian
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # external SD card device to backup and mirror the internal SD card to =~ ^(#)?[a-zA-Z] ]]
+ echo '# external SD card device to backup and mirror the internal SD card to'
+ read -r line
+ [[ # backupdrive=/dev/sda =~ ^(#)?[a-zA-Z] ]]
+ echo '# backupdrive=/dev/sda'
+ read -r line
+ [[ storageconfig=openhab-dir =~ ^(#)?[a-zA-Z] ]]
+ parsed=storageconfig=openhab-dir
+ [[ storageconfig=openhab-dir =~ ^#[a-zA-Z] ]]
++ echo storageconfig=openhab-dir
++ cut -d= -f1
+ param=storageconfig
+ [[ -v storageconfig ]]
+ [[ openhab-dir == *\ * ]]
+ echo storageconfig=openhab-dir
+ read -r line
+ [[ storagedir=/storage =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagedir=/storage
+ [[ storagedir=/storage =~ ^#[a-zA-Z] ]]
++ echo storagedir=/storage
++ cut -d= -f1
+ param=storagedir
+ [[ -v storagedir ]]
+ [[ /storage == *\ * ]]
+ echo storagedir=/storage
+ read -r line
+ [[ storagetapes=15 =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagetapes=15
+ [[ storagetapes=15 =~ ^#[a-zA-Z] ]]
++ echo storagetapes=15
++ cut -d= -f1
+ param=storagetapes
+ [[ -v storagetapes ]]
+ [[ 15 == *\ * ]]
+ echo storagetapes=15
+ read -r line
+ [[ storagecapacity=1024 =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagecapacity=1024
+ [[ storagecapacity=1024 =~ ^#[a-zA-Z] ]]
++ echo storagecapacity=1024
++ cut -d= -f1
+ param=storagecapacity
+ [[ -v storagecapacity ]]
+ [[ 1024 == *\ * ]]
+ echo storagecapacity=1024
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # mail relay settings =~ ^(#)?[a-zA-Z] ]]
+ echo '# mail relay settings'
+ read -r line
+ [[ # adminmail=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]]
+ echo '# adminmail=john.doe@foo.bar'
+ read -r line
+ [[ # relayuser=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]]
+ echo '# relayuser=john.doe@foo.bar'
+ read -r line
+ [[ # relaypass=secret =~ ^(#)?[a-zA-Z] ]]
+ echo '# relaypass=secret'
+ read -r line
+ [[ # smarthost=smtp.gmail.com =~ ^(#)?[a-zA-Z] ]]
+ echo '# smarthost=smtp.gmail.com'
+ read -r line
+ [[ # smartport=587 =~ ^(#)?[a-zA-Z] ]]
+ echo '# smartport=587'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Network UPS Tools =~ ^(#)?[a-zA-Z] ]]
+ echo '# Network UPS Tools'
+ read -r line
+ [[ # nutmode=netserver =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutmode=netserver'
+ read -r line
+ [[ # Settings for netserver: =~ ^(#)?[a-zA-Z] ]]
+ echo '# Settings for netserver:'
+ read -r line
+ [[ # nutupsdriver=usbhid-ups =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupsdriver=usbhid-ups'
+ read -r line
+ [[ # nutupsdescr="" =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupsdescr=""'
+ read -r line
+ [[ # Settings for netclient: =~ ^(#)?[a-zA-Z] ]]
+ echo '# Settings for netclient:'
+ read -r line
+ [[ # nutupsname=ups =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupsname=ups'
+ read -r line
+ [[ # nutupshost=xxx.xxx.xxx.xx =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupshost=xxx.xxx.xxx.xx'
+ read -r line
+ [[ # nutupsuser=monuser =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupsuser=monuser'
+ read -r line
+ [[ # nutupspw=secret =~ ^(#)?[a-zA-Z] ]]
+ echo '# nutupspw=secret'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Tailscale VPN =~ ^(#)?[a-zA-Z] ]]
+ echo '# Tailscale VPN'
+ read -r line
+ [[ # preauthkey=tskey-xxxxxxxxxxxxxxxxx =~ ^(#)?[a-zA-Z] ]]
+ echo '# preauthkey=tskey-xxxxxxxxxxxxxxxxx'
+ read -r line
+ [[ # tstags=tag:client =~ ^(#)?[a-zA-Z] ]]
+ echo '# tstags=tag:client'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Custom log files =~ ^(#)?[a-zA-Z] ]]
+ echo '# Custom log files'
+ read -r line
+ [[ # custom_log_files=("/var/log/foo.log" "/var/log/bar.log") =~ ^(#)?[a-zA-Z] ]]
+ echo '# custom_log_files=("/var/log/foo.log" "/var/log/bar.log")'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # vim: filetype=sh =~ ^(#)?[a-zA-Z] ]]
+ echo '# vim: filetype=sh'
+ read -r line
+ [[ -f /etc/init.d/openhabian-config ]]
+ config_ipv6
+ local aptConf=/etc/apt/apt.conf.d/S90force-ipv4
+ local sysctlConf=/etc/sysctl.d/99-sysctl.conf
+ [[ enable == \d\i\s\a\b\l\e ]]
+ [[ enable == \e\n\a\b\l\e ]]
+ grep -qs '^[[:space:]]*# Disable all IPv6 functionality' /etc/sysctl.d/99-sysctl.conf
+ [[ -n '' ]]
+ apt_update
+ export PID_APT=6803
+ PID_APT=6803
+ nohup apt-get update
+ whiptail_check
++ command -v whiptail
+ [[ -x /usr/bin/whiptail ]]
+ load_create_config
+ local 'questionText=\nWelcome to openHABian!\n\nPlease provide the name of your Linux user i.e. the account you n                                                       ormally log in with.\n\nTypical user names are '\''pi'\'' or '\''ubuntu'\''.'
+ local input
+ [[ -f /etc/openhabian.conf ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-03_16:31:42_CEST [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... '
2023-06-03_16:31:42_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group openhabi                                                       an
+ [[ ! -n openhabian:x:1000:openhabian,frontail ]]
+ id -u openhabian
+ source /etc/openhabian.conf
++ hostname=openhabian
++ username=openhabian
++ userpw=openhabian
++ adminkeyurl=
++ timezone=Europe/Berlin
++ locales='en_US.UTF-8 de_DE.UTF-8'
++ system_default_locale=en_US.UTF-8
++ wifi_ssid=
++ wifi_password=
++ wifi_country=
++ ipv6=enable
++ repositoryurl=https://github.com/openhab/openhabian
++ clonebranch=main
++ debugmode=maximum
++ framebuffer=enable
++ apttimeout=60
++ java_opt=17
++ zraminstall=enable
++ hotspot=enable
++ hotspotpw=openhabian
++ storageconfig=openhab-dir
++ storagedir=/storage
++ storagetapes=15
++ storagecapacity=1024
+ echo OK
OK
+ openhabian_console_check
+ [[ -z 1 ]]
++ tput cols
+ [[ 115 -ge 120 ]]
+ local warningText
+ warningText='We detected that you use a console which is less than 120 columns wide. This tool is designed for a                                                        minimum of 120 columns and therefore some menus may not be presented correctly. Please increase the width of your c                                                       onsole and rerun this tool.\n\nEither resize the window or consult the preferences of your console application.'
+ whiptail --title 'Compatibility warning' --msgbox 'We detected that you use a console which is less than 120 colu                                                       mns wide. This tool is designed for a minimum of 120 columns and therefore some menus may not be presented correctl                                                       y. Please increase the width of your console and rerun this tool.\n\nEither resize the window or consult the prefer                                                       ences of your console application.' 13 80
+ openhabian_update_check
+ [[ -z 1 ]]
+ local branch
+ local introText
+ local unsupportedOSText
+ branch=main
+ introText='Additions, improvements or fixes were added to the openHABian configuration tool. Would you like to up                                                       date now and benefit from them? The update will not automatically apply changes to your system.\n\nUpdating is reco                                                       mmended.'
+ unsupportedOSText='You are running an old Linux release that is no longer officially supported.\nWe recommend upg                                                       rading to the most current stable release of your distribution (or current Long Term Support version for distributi                                                       ons that offer LTS).\nDo you really want to continue using openHABian on this system?'
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
++ get_git_revision
++ local branch
++ local commitDate
++ local shorthash
+++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
++ branch=main
+++ git -C /opt/openhabian log --pretty=format:%aI -n 1
++ commitDate=2023-05-25T01:23:54-05:00
+++ git -C /opt/openhabian log --pretty=format:%h -n 1
++ shorthash=606c74a
++ echo '[main]{2023-05-25T01:23:54-05:00}(606c74a)'
+ echo '2023-06-03_16:31:44_CEST [openHABian] openHABian configuration tool version: [main]{2023-05-25T01:23:54-05:                                                       00}(606c74a)'
2023-06-03_16:31:44_CEST [openHABian] openHABian configuration tool version: [main]{2023-05-25T01:23:54-05:00}(606c                                                       74a)
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-03_16:31:44_CEST [openHABian] Checking for changes in origin branch main... '
2023-06-03_16:31:44_CEST [openHABian] Checking for changes in origin branch main... + is_stretch
+ [[ '' == \s\t\r\e\t\c\h ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ stretch ]]
+ return 1
+ is_xenial
+ [[ '' == \x\e\n\i\a\l ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ xenial ]]
+ return 1
+ git -C /opt/openhabian config user.email openhabian@openHABian
+ git -C /opt/openhabian config user.name openhabian
+ git -C /opt/openhabian fetch --quiet origin
++ git -C /opt/openhabian rev-parse main
++ git -C /opt/openhabian rev-parse '@{u}'
+ [[ 606c74a53a4b2e65fd852c697387cb124a0cc102 == 606c74a53a4b2e65fd852c697387cb124a0cc102 ]]
+ echo OK
OK
+ openhabian_announcements
+ [[ -z 1 ]]
+ local altReadNews
+ local newsFile
+ local readNews
+ altReadNews=/tmp/NEWS.md
+ newsFile=/opt/openhabian/NEWS.md
+ readNews=/opt/openhabian/docs/NEWS.md
+ cmp --silent /opt/openhabian/NEWS.md /opt/openhabian/docs/NEWS.md
+ cmp --silent /opt/openhabian/NEWS.md /tmp/NEWS.md
++ cat /opt/openhabian/NEWS.md
+ whiptail --title 'openHABian announcements' --yes-button 'Stop displaying' --no-button 'Keep displaying' --defaul                                                       tno --scrolltext --yesno 'Hit tab to unselect buttons and scroll through the text using UP/DOWN or
PGUP/PGDN. All announcements are stored in `/opt/openhabian/docs/CHANGELOG.md`
for you to lookup.

## IMPORTANT: Java 17 is now the default ## March 22, 2023
As upcoming openHAB 4 will require Java 17 to run, it'\''s time to move so from
now on we install Java 17 by default.
NOTE: openHAB 3.X is said to work with but isn'\''t thoroughly tested on Java 17
so you might run into issues when you install 3.X.
This is also a request to all of you to gather and share experiences.
Please switch to (via menu) the *main* branch of openHABian or install it
right away as using the default branch (openHAB3) will keep installing Java 11
for the time being. Let us know your feedback via forum.
You can also change java versions via menu or on install via openhabian.conf.

## Install log now on port 81 ## February 23, 2023
As there have been conflicts with the hotspot function, the install time web
log was now moved to port 81. The standard port 80 is reserved for the hotspot.

## Raspberry Imager ## August 17, 2022
Now openHABian can be selected directly within Raspberry Imager to write the
image to an SD card.' 27 84
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-03_16:31:46_CEST [openHABian] Switching to branch main... '
2023-06-03_16:31:46_CEST [openHABian] Switching to branch main... + git -C /opt/openhabian checkout --quiet main
+ echo OK
OK
+ jsscripting_npm_check openhab
+ '[' openhab == '' ']'
+ '[' '!' -d /etc/openhab/automation/js/node_modules/openhab ']'
+ return 0
+ jsscripting_npm_check openhab_rules_tools
+ '[' openhab_rules_tools == '' ']'
+ '[' '!' -d /etc/openhab/automation/js/node_modules/openhab_rules_tools ']'
+ return 0
+ bashrc_copy
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-03_16:31:46_CEST [openHABian] Adding slightly tuned bash configuration files to system... '
2023-06-03_16:31:46_CEST [openHABian] Adding slightly tuned bash configuration files to system... + cp /opt/openhab                                                       ian/includes/generic/bash.bashrc /etc/bash.bashrc
+ cp /opt/openhabian/includes/generic/bashrc-root /root/.bashrc
+ cp /opt/openhabian/includes/generic/bash_profile /home/openhabian/.bash_profile
+ cp /opt/openhabian/includes/generic/bash_aliases /home/openhabian/.bash_aliases
+ chown openhabian:openhabian /home/openhabian/.bash_aliases /home/openhabian/.bash_history /home/openhabian/.bash_                                                       logout /home/openhabian/.bash_profile
+ echo OK
OK
+ show_main_menu
+ local choice
+ local version
+++ get_git_revision
+++ local branch
+++ local commitDate
+++ local shorthash
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=main
++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
+++ commitDate=2023-05-25T01:23:54-05:00
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=606c74a
+++ echo '[main]{2023-05-25T01:23:54-05:00}(606c74a)'
++ whiptail --title 'openHABian Configuration Tool — [main]{2023-05-25T01:23:54-05:00}(606c74a)' --menu 'Setup Opti                                                       ons' 24 118 16 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian p                                                       roject and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02                                                        | Upgrade System' 'Update all installed software packages (incl. openHAB) to their latest version' '03 | Install op                                                       enHAB' 'Install or upgrade to openHAB 3' '04 | Import config' 'Import an openHAB 3 configuration from file or URL'                                                        '' '' '10 | Apply Improvements' 'Apply the latest improvements to the basic openHABian setup ►' '20 | Optional Comp                                                       onents' 'Choose from a set of optional software components ►' '30 | System Settings' 'A range of system and hardwar                                                       e related configuration steps ►' '40 | openHAB Related' 'Switch the installed openHAB version or apply tweaks ►' '5                                                       0 | Backup/Restore' 'Manage backups and restore your system ►'
+ choice='20 | Optional Components'
+ RET=0
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 255 ']'
+ [[ 20 | Optional Components == '' ]]
+ [[ 20 | Optional Components == \0\0* ]]
+ [[ 20 | Optional Components == \0\1* ]]
+ [[ 20 | Optional Components == \0\2* ]]
+ [[ 20 | Optional Components == \0\3* ]]
+ [[ 20 | Optional Components == \0\4* ]]
+ [[ 20 | Optional Components == \1\0* ]]
+ [[ 20 | Optional Components == \2\0* ]]
+++ get_git_revision
+++ local branch
+++ local commitDate
+++ local shorthash
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=main
++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
+++ commitDate=2023-05-25T01:23:54-05:00
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=606c74a
+++ echo '[main]{2023-05-25T01:23:54-05:00}(606c74a)'
++ whiptail --title 'openHABian Configuration Tool — [main]{2023-05-25T01:23:54-05:00}(606c74a)' --menu 'Optional C                                                       omponents' 24 118 16 --cancel-button Back --ok-button Execute '21 | Log Viewer' 'openHAB Log Viewer webapp (frontai                                                       l)' '   | Add log to viewer' 'Add a custom log to openHAB Log Viewer (frontail)' '   | Remove log from viewer' 'Rem                                                       ove a custom log from openHAB Log Viewer (frontail)' '22 | miflora-mqtt-daemon' 'Xiaomi Mi Flora Plant Sensor MQTT                                                        Client/Daemon' '23 | Mosquitto' 'MQTT broker Eclipse Mosquitto' '24 | InfluxDB+Grafana' 'A powerful persistence and                                                        graphing solution' '25 | Node-RED' 'Flow-based programming for the Internet of Things' '26 | Homegear' 'Homematic                                                        specific, the CCU2 emulation software Homegear' '27 | knxd' 'KNX specific, the KNX router/gateway daemon knxd' '28                                                        | 1wire' '1wire specific, owserver and related packages' '29 | deCONZ' 'deCONZ / Phoscon companion app for Conbee/R                                                       aspbee controller' '2A | Zigbee2MQTT' 'Install or Update Zigbee2MQTT' '   | Remove Zigbee2MQTT' 'Remove Zigbee2MQTT                                                        from this system' '2B | FIND 3' 'Framework for Internal Navigation and Discovery' '   | Monitor Mode' 'Patch firmw                                                       are to enable monitor mode (ALPHA/DANGEROUS)' '2C | Install HABApp' 'Python 3 integration and rule engine for openH                                                       AB' '   | Remove HABApp' 'Remove HABApp from this system' '2D | Install EVCC' 'Deploy Electric Vehicle Charge Contr                                                       oller' '   | Remove EVCC' 'Uninstall EVCC' '   | Setup EVCC' 'Setup EVCC from command line (German only)'
+ choice2='29 | deCONZ'
+ '[' 0 -eq 1 ']'
+ '[' 1 -eq 255 ']'
+ wait_for_apt_to_finish_update
+ local 'spin=-\|/'
+ local i
+ [[ -z 6803 ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-03_16:31:53_CEST [openHABian] Updating Linux package information... '
2023-06-03_16:31:53_CEST [openHABian] Updating Linux package information... + kill -0 6803
+ echo OK
OK
+ case "$choice2" in
+ deconz_setup
+ local port=8081
+ local keyName=deconz
+ local appData=/var/lib/openhab/persistence/deCONZ
+ local 'introText=This will install deCONZ as a web service, the companion app to support Dresden Elektronik Conbe                                                       e and Raspbee Zigbee controllers.\nUse the web interface on port 8081 to pair your sensors.\nNote the port is chang                                                       ed to 8081 as the default 80 wouldn'\''t be right with openHAB itself running on 8080.'
+ local 'successText=The deCONZ API plugin and the Phoscon companion web app were successfully installed on your sy                                                       stem.\nUse the web interface on port 8081 to pair your sensors with Conbee or Raspbee Zigbee controllers.\nNote the                                                        port has been changed from its default 80 to 8081.'
+ local repo=/etc/apt/sources.list.d/deconz.list
+ whiptail --title 'deCONZ installation' --yes-button Continue --no-button Cancel --yesno 'This will install deCONZ                                                        as a web service, the companion app to support Dresden Elektronik Conbee and Raspbee Zigbee controllers.\nUse the                                                        web interface on port 8081 to pair your sensors.\nNote the port is changed to 8081 as the default 80 wouldn'\''t be                                                        right with openHAB itself running on 8080.' 11 80
+ add_keys http://phoscon.de/apt/deconz.pub.key deconz
+ local repoKey=/usr/share/keyrings/deconz.gpg
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-03_16:31:56_CEST [openHABian] Adding required keys to apt... '
2023-06-03_16:31:56_CEST [openHABian] Adding required keys to apt... + curl -fsSL http://phoscon.de/apt/deconz.pub.                                                       key
+ gpg --dearmor
+ echo OK
OK
++ lsb_release -si
+ myOS=Raspbian
++ lsb_release -sc
+ myRelease=bullseye
+ [[ bullseye == \n\/\a ]]
+ is_x86_64
+ [[ '' == \x\8\6\_\6\4 ]]
+ [[ '' == \a\m\d\6\4 ]]
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ echo 'deb [signed-by=/usr/share/keyrings/deconz.gpg] http://phoscon.de/apt/deconz bullseye main'
+ cond_redirect mkdir /var/lib/openhab/persistence/deCONZ
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir /var/lib/openhab/persistence/deCONZ \033[39;49;00m'

$ mkdir /var/lib/openhab/persistence/deCONZ
+ mkdir /var/lib/openhab/persistence/deCONZ
mkdir: cannot create directory ‘/var/lib/openhab/persistence/deCONZ’: File exists
+ return 1
+ fix_permissions /var/lib/openhab/persistence/deCONZ openhabian:openhabian 664 775
+ [[ -e /var/lib/openhab/persistence/deCONZ ]]
+ chown openhabian:openhabian /var/lib/openhab/persistence/deCONZ
+ [[ -n 664 ]]
+ [[ -f /var/lib/openhab/persistence/deCONZ ]]
+ [[ -n 775 ]]
+ [[ -d /var/lib/openhab/persistence/deCONZ ]]
+ find /var/lib/openhab/persistence/deCONZ -type d -print0
+ xargs -0 chmod 775
+ return 0
+ ln -sf /var/lib/openhab/persistence/deCONZ /home/openhabian/.local
+ echo 'FAILED (deCONZ database on zram)'
FAILED (deCONZ database on zram)
+ return 1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n  "20 | Optional Components"\n\nP                                                       lease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/                                                       openhab/openhabian/blob/main/docs/openhabian-DEBUG.md how to proceed.' 14 80
+ return 0
+ true
+ show_main_menu
+ local choice
+ local version
+++ get_git_revision
+++ local branch
+++ local commitDate
+++ local shorthash
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=main
++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
+++ commitDate=2023-05-25T01:23:54-05:00
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=606c74a
+++ echo '[main]{2023-05-25T01:23:54-05:00}(606c74a)'
++ whiptail --title 'openHABian Configuration Tool — [main]{2023-05-25T01:23:54-05:00}(606c74a)' --menu 'Setup Opti                                                       ons' 24 118 16 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian p                                                       roject and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02                                                        | Upgrade System' 'Update all installed software packages (incl. openHAB) to their latest version' '03 | Install op                                                       enHAB' 'Install or upgrade to openHAB 3' '04 | Import config' 'Import an openHAB 3 configuration from file or URL'                                                        '' '' '10 | Apply Improvements' 'Apply the latest improvements to the basic openHABian setup ►' '20 | Optional Comp                                                       onents' 'Choose from a set of optional software components ►' '30 | System Settings' 'A range of system and hardwar                                                       e related configuration steps ►' '40 | openHAB Related' 'Switch the installed openHAB version or apply tweaks ►' '5                                                       0 | Backup/Restore' 'Manage backups and restore your system ►'
+ choice=
+ RET=1
+ '[' 1 -eq 1 ']'
+ return 255
+ system_check_default_password
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ local algo
+ local defaultPassword
+ local defaultUser
+ local generatedPassword
+ local introText
+ local originalPassword
+ local salt
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ id -u pi
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ defaultUser=openhabian
+ defaultPassword=openhabian
++ grep -w openhabian /etc/shadow
++ cut -d: -f2
+ originalPassword='$y$j9T$GkskMDRXXKEFMdaNlzT0Z1$Xx/mGdsLw5t46BdrX1JP0zfuRoQ8CeCMUYm97jBQjWB'
++ echo '$y$j9T$GkskMDRXXKEFMdaNlzT0Z1$Xx/mGdsLw5t46BdrX1JP0zfuRoQ8CeCMUYm97jBQjWB'
++ cut '-d$' -f2
+ algo=y
+ introText='The default password was detected on your system! That is a serious security concern. Bad guys or mali                                                       cious programs in your subnet are able to gain root access!\n\nPlease set a strong password by typing the command '                                                       \''passwd openhabian'\''!'
++ echo '$y$j9T$GkskMDRXXKEFMdaNlzT0Z1$Xx/mGdsLw5t46BdrX1JP0zfuRoQ8CeCMUYm97jBQjWB'
++ cut '-d$' -f3
+ salt=j9T
+ export algo defaultPassword salt
++ perl -le 'print crypt("$ENV{defaultPassword}","\$$ENV{algo}\$$ENV{salt}\$")'
+ generatedPassword='$y$j9T$$1DJdHt2WNxWqFR3sUxwYKh.KdyI9MF4X/A9710MJGjA'
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-03_16:32:07_CEST [openHABian] Checking for default openHABian username:password combination... '
2023-06-03_16:32:07_CEST [openHABian] Checking for default openHABian username:password combination... ++ id -u ope                                                       nhabian
+ [[ -n 1000 ]]
+ [[ $y$j9T$$1DJdHt2WNxWqFR3sUxwYKh.KdyI9MF4X/A9710MJGjA == \$\y\$\j\9\T\$\G\k\s\k\M\D\R\X\X\K\E\F\M\d\a\N\l\z\T\0\                                                       Z\1\$\X\x\/\m\G\d\s\L\w\5\t\4\6\B\d\r\X\1\J\P\0\z\f\u\R\o\Q\8\C\e\C\M\U\Y\m\9\7\j\B\Q\j\W\B ]]
+ echo OK
OK
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -e '2023-06-03_16:32:07_CEST [openHABian] We hope you got what you came for! See you again soon ;)'
2023-06-03_16:32:07_CEST [openHABian] We hope you got what you came for! See you again soon ;)
+ cd /home/openhabian/.local
openhabian@openhabian:~/.local $

/var/lib/openhab/persistence/deCONZ has ownership openhabian:openhabian. But I used exactly your command to set openhab:openhab. Hmm.

openhabian@openhabian:~/.local $ ls -l /var/lib/openhab/persistence
total 24
drwxrwxr-x 2 openhab    openhab    4096 May 31 14:23 db4o
drwxrwxr-x 1 openhabian openhabian 4096 May 30 21:07 deCONZ
drwxrwxr-x 2 openhab    openhab    4096 May 31 14:23 mapdb
drwxrwxr-x 1 openhab    openhab    4096 Jun  3 00:33 rrd4j
openhabian@openhabian:~/.local $

I had a look into the script and thought about it again. Permission openhabian:openhabian is correct as the service deconz will run with/under these permissions.
And also in case the link already exists shouldn’t be a problem.
So at the moment I am out of ideas why this error happens.
Looks like you need to install the software manually.

Wolfgang, I appeciate your help. It could be a problem of zram as deconz and influxdb have problems since some days.
etc/ztab:

....
dir     zstd            150M            350M            /var/lib/openhab/persistence    /persistence.bind
# fix by mystormi, do not put influxdb on zram
# https://community.openhab.org/t/influxdb-doesnt-work-after-reboot-problem-with-rights/126501/18?u=openschwall
# dir   zstd            150M            350M            /var/lib/influxdb               /influxdb.bind

# log   alg             mem_limit       disk_size       target_dir              bind_dir                oldlog_dir
log     zstd            200M            450M            /var/log                /log.bind
.....

I already commented out the part affecting influxdb due to suggestions given in link. Perhaps I will also disable zram for /var/lib/openhab/persistence.

Wolfgang, I deleted the directory /var/lib/openhab/persistence/deCONZ and the link /home/openhabian/.local/deCONZ. Now, I can reinstall deCONZ using openhabian-config. Thank you again for your support!

2 Likes