openHABian v1.7.4 installation fails, what is wrong with that release?

Hello,

after an update (sudo-apt get update/upgrade) crashed my old openhabian (not booting anymore)
I copied the whole SD card to a backup and thought I´d start from scratch. SD card formatted, openhabian image written, Raspberry started, browser opened and watching:

2022-04-04_12:06:13_UTC [openHABian] Starting the openHABian initial setup.
2022-04-04_12:06:13_UTC [openHABian] Storing configuration... OK
2022-07-18_14:49:17_UTC [openHABian] Starting webserver with installation log... OK
2022-07-18_14:49:23_UTC [openHABian] Changing default username and password... OK
2022-07-18_14:49:34_UTC [openHABian] Setting up Ethernet connection... OK
2022-07-18_14:49:34_UTC [openHABian] Ensuring network connectivity... OK
2022-07-18_14:49:34_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2022-07-18_14:49:46_UTC [openHABian] Updating repositories and upgrading installed packages... OK
2022-07-18_14:50:17_UTC [openHABian] Installing git package... FAILED
2022-07-18_14:50:18_UTC [openHABian] Updating myself from https://github.com/openhab/openhabian, openHAB3 branch... OK
2022-07-18_14:50:18_UTC [openHABian] Starting execution of 'openhabian-config unattended'... OK
2022-07-18_14:50:18_UTC [openHABian] Checking for root privileges... OK
2022-07-18_14:50:19_UTC [openHABian] Updating Linux package information... \ e[2D| e[2D/ e[2D- e[2D\ e[2D| e[2D/ e[2D- e[2D\ e[2D| e[2DOK
2022-07-18_14:50:24_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2022-07-18_14:50:24_UTC [openHABian] Adjusting swap size to 7677 MB... OK (reboot required)
2022-07-18_14:50:24_UTC [openHABian] Setting timezone based on openhabian.conf... OK (Europe/Berlin)
2022-07-18_16:50:24_CEST [openHABian] Enabling time synchronization using NTP... OK
2022-07-18_16:50:24_CEST [openHABian] Setting locale based on openhabian.conf... FAILED (reconfigure locales)
2022-07-18_16:50:41_CEST [openHABian] Setting hostname of the base system based on openhabian.conf... OK
2022-07-18_16:50:41_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2022-07-18_16:50:41_CEST [openHABian] Enabling Audio output... OK
2022-07-18_16:50:41_CEST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... FAILED (remove raspi-config)
2022-07-18_16:50:43_CEST [openHABian] Installing additional needed packages... FAILED
2022-07-18_16:50:44_CEST [openHABian] Adding slightly tuned bash configuration files to system... OK
2022-07-18_16:50:44_CEST [openHABian] Adding slightly tuned vim configuration file to system... OK
2022-07-18_16:50:44_CEST [openHABian] tailscale VPN installation... SKIPPED (no preauthkey defined)
2022-07-18_16:50:44_CEST [openHABian] Applying miscellaneous system settings... OK
2022-07-18_16:50:44_CEST [openHABian] Installing FireMotD required packages (bc, sysstat, jq, moreutils)... FAILED
2022-07-18_16:50:45_CEST [openHABian] Fetching OpenJDK 11... FAILED
2022-07-18_16:50:47_CEST [openHABian] Installing OpenJDK 11... FAILED
2022-07-18_16:50:48_CEST [openHABian] Beginning install of latest openhab release (stable)... OK
2022-07-18_16:50:48_CEST [openHABian] Adding required keys to apt... OK
2022-07-18_16:50:48_CEST [openHABian] Installing selected openHAB3 version... FAILED
2022-07-18_16:50:55_CEST [openHABian] Getting initial openHAB configuration... SKIPPED (backup not found at /boot/initial.zip)
2022-07-18_16:50:55_CEST [openHABian] Activating the openHAB console on all interfaces... FAILED (sshHost)
2022-07-18_16:50:55_CEST [openHABian] Adding openHAB syntax to vim editor... OK
2022-07-18_16:50:56_CEST [openHABian] Adding openHAB syntax to nano editor... OK
2022-07-18_16:50:56_CEST [openHABian] Adding openHAB scheme to multitail... FAILED (remove default configuration)
2022-07-18_16:50:56_CEST [openHABian] Preparing openHAB folder mounts under '/srv/openhab-*'... OK
2022-07-18_16:51:01_CEST [openHABian] Installing Samba... FAILED
2022-07-18_16:51:02_CEST [openHABian] Installing Frontail prerequsites (NodeJS)... FAILED
Failed to open terminal.e[1;24re[4le)0e[me[37me[40me[1;24re[He[Je[1;1He[35me[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[Ke[1;1He[8;1He[34m┌──────────────────────────┤ e[31mFrontail not installede[34m ├──────────────────────────┐e[9;1H│e[33m                                                                              e[34m│e[10;1H│e[33m e[36me[42mFrontail is not installed!                                                  e[33me[40m e[34m│e[11;1H│e[33m e[36me[42m                                                                            e[33me[40m e[34m│e[12;1H│e[33m e[36me[42mCanceling operation!                                                        e[33me[40m e[34m│e[13;1H│e[33m                                                                              e[34m│e[14;1H│e[33m                                    e[37me[41m<Ok>e[33me[40m                                      e[34m│e[15;1H│e[33m                                                                              e[34m│e[16;1H└──────────────────────────────────────────────────────────────────────────────┘e[17;2He[32me[Ke[14;39He[?25he[?0ce[24;1He[37me[me[39;49m
e[K
2022-07-18_16:51:09_CEST [openHABian] Installing zram... OK
2022-07-18_16:51:12_CEST [openHABian] Beginning Mail Transfer Agent setup... SKIPPED (no configuration provided)
2022-07-18_16:51:12_CEST [openHABian] Applying file permissions recommendations... FAILED (please execute after openHAB is installed)
2022-07-18_16:51:12_CEST [openHABian] Setting up automated SD mirroring and backup... SKIPPED (no configuration provided)
2022-07-18_16:51:12_CEST [openHABian] Cleaning up... FAILED
2022-07-18_16:51:18_CEST [openHABian] Execution of 'openhabian-config unattended' completed.
2022-07-18_16:51:18_CEST [openHABian] First time setup successfully finished. Rebooting your system!
2022-07-18_16:51:18_CEST [openHABian] After rebooting the openHAB dashboard will be available at: http://openhabian:8080
2022-07-18_16:51:18_CEST [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.

Many failed issues which then cause the pi not to reconnect once done. Checking by SSH trying to restore a backup it says openHAB is not installed. :frowning:

What is the reason for this? I even tried a different SD card, same result.

Could you try to follow the troubleshooting guide ? This should give more output and an indication what happened.

Hi Wolfgang, sadly that guide doesn´t give a workaround for this.
I retried with the debug on maximum but it actually doesn´t help more than the default “log”.
The problems start with the installation of git and of course this leads to problems depending on that.
I can manually fix it with this:

sudo apt --fix-broken install

and install git after that, and all other packages that couldn´t be installed can be installed afterwards but that doesn´t make a working openHAB out of it since I probably miss a lot of commands in between. As suggested in the troubleshooting guide I should post the log on github I assume.

No it doesn’t suggest that. GitHub is not for user support, that you have to figure out yourself, or eventually with the help of forum users.

Stock 1.7.4 installs fine so it’s not (well or very unlikely) a bug but a user or external issue here.
I think the git pkg is the first time openHABian accesses the Internet so I’d guess your issue is somehow related to your local networking setup.

@mstormi Well, I´d consider this a bug even if it might be a hardware / network problem or whatsoever (which is not the bug) the setup routine should stop at that point or at least return a failed install. Currently it is like operation successfull, patient dead.

Anyway, how I am supposed to locate a network problem, when the log states OK with all its testing routines before?

+ echo -n '2022-07-19_07:35:00_UTC [openHABian] Setting up Ethernet connection... '
2022-07-19_07:35:00_UTC [openHABian] Setting up Ethernet connection... + grep -qs up /sys/class/net/eth0/operstate
+ echo OK
OK
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ tryUntil 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\''' 5 1
+ local cmd
+ local attempts
+ local interval
+ cmd='ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
+ attempts=5
+ interval=1
+ [[ 5 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
+ out=0
+ [[ 0 -eq 0 ]]
+ break
+ [[ -z 1 ]]
+ return 5
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:35:00_UTC [openHABian] Ensuring network connectivity... '
2022-07-19_07:35:00_UTC [openHABian] Ensuring network connectivity... + running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ tryUntil 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\''' 5 1
+ local cmd
+ local attempts
+ local interval
+ cmd='ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
+ attempts=5
+ interval=1
+ [[ 5 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
+ out=0
+ [[ 0 -eq 0 ]]
+ break
+ [[ -z 1 ]]
+ return 5
+ echo OK
OK

once the whole setup is through I can install the packages starting with this fix:

sudo apt --fix-broken install

What would cause the install to be broken if nothing else but the installation has been run?
Besides that, how would I be able to do apt-get installs after the “installation” if there wouldn´t be a network connection?

No. It should continue, which it does.
Install depends on many external dependencies. If anything over there’s wrong, that’s beyond our control hence not bugs either.

Ignored prerequisites, some hiccup with upstream packages, anything’s possible.
You don’t provide the log data it takes to find out.

It doesn´t even install openHAB and returns successfull. I don´t get the point of that but if you say so.

The log is too huge to post it here, so I need to split it up:



2022-07-19_07:34:43_UTC [openHABian] Starting the openHABian initial setup.
2022-07-19_07:34:43_UTC [openHABian] Storing configuration... OK
2022-07-19_07:34:43_UTC [openHABian] Enable maximum debugging output
+ rfkill unblock wifi
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:34:43_UTC [openHABian] Starting webserver with installation log... '
2022-07-19_07:34:43_UTC [openHABian] Starting webserver with installation log... ++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash start
+ sleep 5
++ ps -ef
++ pgrep python3
+ isWebRunning=778
+ [[ -n 778 ]]
+ echo OK
OK
+ defaultUserAndGroup=openhabian
+ userName=openhabian
+ groupName=openhabian
+ is_raspbian
+ [[ '' == \r\a\s\p\b\i\a\n ]]
++ 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" =~ Raspbian ]]
+ return 0
+ defaultUserAndGroup=pi
+ rm -f /etc/sudoers.d/010_pi-nopasswd
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:34:51_UTC [openHABian] Changing default username and password... '
2022-07-19_07:34:51_UTC [openHABian] Changing default username and password... + [[ -v openhabian ]]
+ id pi
+ id openhabian
+ usermod -l openhabian pi
+ usermod -m -d /home/openhabian openhabian
+ groupmod -n openhabian pi
+ echo openhabian:openhabian
+ chpasswd
+ echo OK
OK
+ echo 'watch cat /boot/first-boot.log'
+ [[ -z '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:35:00_UTC [openHABian] Setting up Ethernet connection... '
2022-07-19_07:35:00_UTC [openHABian] Setting up Ethernet connection... + grep -qs up /sys/class/net/eth0/operstate
+ echo OK
OK
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ tryUntil 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\''' 5 1
+ local cmd
+ local attempts
+ local interval
+ cmd='ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
+ attempts=5
+ interval=1
+ [[ 5 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
+ out=0
+ [[ 0 -eq 0 ]]
+ break
+ [[ -z 1 ]]
+ return 5
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:35:00_UTC [openHABian] Ensuring network connectivity... '
2022-07-19_07:35:00_UTC [openHABian] Ensuring network connectivity... + running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ tryUntil 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\''' 5 1
+ local cmd
+ local attempts
+ local interval
+ cmd='ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
+ attempts=5
+ interval=1
+ [[ 5 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
+ out=0
+ [[ 0 -eq 0 ]]
+ break
+ [[ -z 1 ]]
+ return 5
+ echo OK
OK
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:35:00_UTC [openHABian] Waiting for dpkg/apt to get ready... '
2022-07-19_07:35:00_UTC [openHABian] Waiting for dpkg/apt to get ready... + wait_for_apt_to_be_ready
+ local attempts
+ local interval
+ local pid
+ attempts=10
+ interval=1
+ [[ 10 -le 0 ]]
+ pid=1015
+ apt-get update
+++ tail --pid=1015 -f /dev/null
++ eval ''
+ [[ '' -eq 0 ]]
+ return 0
+ echo OK
OK
++ dpkg -s raspberrypi-kernel
++ grep 'Version:[[:space:]]'
+ firmwareBefore='Version: 1:1.20220331-1'
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:35:11_UTC [openHABian] Updating repositories and upgrading installed packages... '
2022-07-19_07:35:11_UTC [openHABian] Updating repositories and upgrading installed packages... + apt-get install --fix-broken --yes
+++ apt-get --yes upgrade
++ eval ''
+ [[ '' -eq 100 ]]
++ dpkg -s raspberrypi-kernel
++ grep 'Version:[[:space:]]'
+ [[ Version: 1:1.20220331-1 != \V\e\r\s\i\o\n\:\ \1\:\1\.\2\0\2\2\0\3\3\1\-\1 ]]
+ echo OK
OK
++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash reinsure_running
++ command -v git
+ [[ -x '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:35:42_UTC [openHABian] Installing git package... '
2022-07-19_07:35:42_UTC [openHABian] Installing git package... + apt-get install --yes git
+ echo FAILED
FAILED
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:35:44_UTC [openHABian] Updating myself from https://github.com/openhab/openhabian, openHAB3 branch... '
2022-07-19_07:35:44_UTC [openHABian] Updating myself from https://github.com/openhab/openhabian, openHAB3 branch... +++ openhabian_update openHAB3
++ eval ''
+ [[ '' -eq 0 ]]
+ echo OK
OK
+ ln -sfn /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2022-07-19_07:35:44_UTC [openHABian] Starting execution of '\''openhabian-config unattended'\''... OK'
2022-07-19_07:35:44_UTC [openHABian] Starting execution of 'openhabian-config unattended'... OK
+ openhabian-config unattended
2022-07-19_07:35:44_UTC [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/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=/
+ 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=openHAB3 =~ ^(#)?[a-zA-Z] ]]
+ parsed=clonebranch=openHAB3
+ [[ clonebranch=openHAB3 =~ ^#[a-zA-Z] ]]
++ echo clonebranch=openHAB3
++ cut -d= -f1
+ param=clonebranch
+ [[ -v clonebranch ]]
+ [[ openHAB3 == *\ * ]]
+ echo clonebranch=openHAB3
+ 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=off =~ ^(#)?[a-zA-Z] ]]
+ parsed=debugmode=off
+ [[ debugmode=off =~ ^#[a-zA-Z] ]]
++ echo debugmode=off
++ 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
+ [[ # 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
+ [[ java_opt=11 =~ ^(#)?[a-zA-Z] ]]
+ parsed=java_opt=11
+ [[ java_opt=11 =~ ^#[a-zA-Z] ]]
++ echo java_opt=11
++ cut -d= -f1
+ param=java_opt
+ [[ -v java_opt ]]
+ [[ 11 == *\ * ]]
+ echo java_opt=11
+ 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
+ [[ # 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 ]]
+ cond_redirect wget -nv -O /etc/init.d/openhabian-config https://github.com/RPi-Distro/raspi-config/raw/master/debian/raspi-config.init
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ wget -nv -O /etc/init.d/openhabian-config https://github.com/RPi-Distro/raspi-config/raw/master/debian/raspi-config.init \033[39;49;00m'

e[90;01m$ wget -nv -O /etc/init.d/openhabian-config https://github.com/RPi-Distro/raspi-config/raw/master/debian/raspi-config.init e[39;49;00m
+ wget -nv -O /etc/init.d/openhabian-config https://github.com/RPi-Distro/raspi-config/raw/master/debian/raspi-config.init
2022-07-19 07:35:44 URL:https://raw.githubusercontent.com/RPi-Distro/raspi-config/master/debian/raspi-config.init [1210/1210] -> "/etc/init.d/openhabian-config" [1]
+ return 0
+ sed -i -e s/raspi-config/openhabian-config/ /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 1 ]]
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ wait_for_apt_to_finish_update
+ local 'spin=-\|/'
+ local i
+ [[ -z '' ]]
+ apt_update
+ export PID_APT=1876
+ PID_APT=1876
+ nohup apt-get update
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:35:44_UTC [openHABian] Updating Linux package information... '
2022-07-19_07:35:44_UTC [openHABian] Updating Linux package information... + kill -0 1876
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 1876
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 1876
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 1876
+ i=0
+ echo -ne '- \033[2D'
- e[2D+ sleep 0.5
+ kill -0 1876
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 1876
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 1876
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 1876
+ i=0
+ echo -ne '- \033[2D'
- e[2D+ sleep 0.5
+ kill -0 1876
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 1876
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 1876
+ echo OK
OK
+ 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 '2022-07-19_07:35:49_UTC [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... '
2022-07-19_07:35:49_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group openhabian
+ [[ ! -n openhabian:x:1000: ]]
+ 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=openHAB3
++ debugmode=maximum
++ framebuffer=enable
++ java_opt=11
++ zraminstall=enable
++ hotspot=enable
++ hotspotpw=openhabian
++ storageconfig=openhab-dir
++ storagedir=/storage
++ storagetapes=15
++ storagecapacity=1024
+ echo OK
OK
+ change_swapsize
+ 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 free
+ local minFree
+ local swap
+ local totalMemory
++ awk '/MemTotal/ {print $2}' /proc/meminfo
+ totalMemory=3931052
+ [[ -z 3931052 ]]
+ swap=7862104
+ minFree=15724208
++ df -hk /
++ awk '/dev/ { print $4 }'
+ free=56391816
+ [[ 56391816 -ge 15724208 ]]
+ size=7862104
+ (( size/=1024 ))
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:35:50_UTC [openHABian] Adjusting swap size to 7677 MB... '
2022-07-19_07:35:50_UTC [openHABian] Adjusting swap size to 7677 MB... + cond_redirect dphys-swapfile swapoff
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dphys-swapfile swapoff \033[39;49;00m'

e[90;01m$ dphys-swapfile swapoff e[39;49;00m
+ dphys-swapfile swapoff
+ return 0
+ cond_redirect sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=7677|g' /etc/dphys-swapfile
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=7677|g /etc/dphys-swapfile \033[39;49;00m'

e[90;01m$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=7677|g /etc/dphys-swapfile e[39;49;00m
+ sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=7677|g' /etc/dphys-swapfile
+ return 0
+ cond_redirect dphys-swapfile swapon
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dphys-swapfile swapon \033[39;49;00m'

e[90;01m$ dphys-swapfile swapon e[39;49;00m
+ dphys-swapfile swapon
+ return 0
+ echo 'OK (reboot required)'
OK (reboot required)
+ timezone_setting
+ [[ -n '' ]]
+ [[ -n Europe/Berlin ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_07:35:50_UTC [openHABian] Setting timezone based on openhabian.conf... '
2022-07-19_07:35:50_UTC [openHABian] Setting timezone based on openhabian.conf... + running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ running_on_github
+ [[ -n '' ]]
+ return 1
+ cond_redirect timedatectl set-timezone Europe/Berlin
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ timedatectl set-timezone Europe/Berlin \033[39;49;00m'

e[90;01m$ timedatectl set-timezone Europe/Berlin e[39;49;00m
+ timedatectl set-timezone Europe/Berlin
+ return 0
++ cat /etc/timezone
+ echo 'OK (Europe/Berlin)'
OK (Europe/Berlin)
+ setup_ntp enable
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ is_raspios
+ [[ '' == \r\a\s\p\i\o\s ]]
+ is_raspbian
+ [[ '' == \r\a\s\p\b\i\a\n ]]
++ 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" =~ Raspbian ]]
+ return 0
+ return 0
+ [[ enable == \e\n\a\b\l\e ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:35:50_CEST [openHABian] Enabling time synchronization using NTP... '
2022-07-19_09:35:50_CEST [openHABian] Enabling time synchronization using NTP... + cond_redirect cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/ \033[39;49;00m'

e[90;01m$ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/ e[39;49;00m
+ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/
+ return 0
+ cond_redirect timedatectl set-ntp true
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ timedatectl set-ntp true \033[39;49;00m'

e[90;01m$ timedatectl set-ntp true e[39;49;00m
+ timedatectl set-ntp true
+ return 0
+ echo OK
OK
+ locale_setting
+ local syslocale
+ dpkg -s locales
+ [[ -n '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:35:50_CEST [openHABian] Setting locale based on openhabian.conf... '
2022-07-19_09:35:50_CEST [openHABian] Setting locale based on openhabian.conf... + is_ubuntu
+ [[ '' == \u\b\u\n\t\u ]]
++ 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" =~ Ubuntu ]]
+ return 1
+ for loc in $locales
+ sed -i '/^#[[:space:]]en_US.UTF-8/s/^#[[:space:]]//' /etc/locale.gen
+ for loc in $locales
+ sed -i '/^#[[:space:]]de_DE.UTF-8/s/^#[[:space:]]//' /etc/locale.gen
+ cond_redirect locale-gen
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ locale-gen \033[39;49;00m'

e[90;01m$ locale-gen e[39;49;00m
+ locale-gen
Generating locales (this might take a while)...
  de_DE.UTF-8... done
  en_GB.UTF-8... done
  en_US.UTF-8... done
Generation complete.
+ return 0
+ cond_redirect dpkg-reconfigure --frontend=noninteractive locales
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dpkg-reconfigure --frontend=noninteractive locales \033[39;49;00m'

e[90;01m$ dpkg-reconfigure --frontend=noninteractive locales e[39;49;00m
+ dpkg-reconfigure --frontend=noninteractive locales
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
+ return 1
+ echo 'FAILED (reconfigure locales)'
FAILED (reconfigure locales)
+ return 1
+ hostname_change
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ local newHostname
+ [[ -n '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:07_CEST [openHABian] Setting hostname of the base system based on openhabian.conf... '
2022-07-19_09:36:07_CEST [openHABian] Setting hostname of the base system based on openhabian.conf... + newHostname=openhabian
+ cond_redirect hostnamectl set-hostname openhabian
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ hostnamectl set-hostname openhabian \033[39;49;00m'

e[90;01m$ hostnamectl set-hostname openhabian e[39;49;00m
+ hostnamectl set-hostname openhabian
+ return 0
+ sed -i 's|127.0.1.1.*$|127.0.1.1 openhabian|g' /etc/hosts
+ echo OK
OK
+ [[ -n '' ]]
+ memory_split
+ 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
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:07_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system... '
2022-07-19_09:36:07_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system... + grep -qs '^[[:space:]]*gpu_mem' /boot/config.txt
+ echo gpu_mem=16
+ echo OK
OK
+ sed -i '/^dtoverlay=vc4-f\?kms-v3d/d' /boot/config.txt
+ enable_rpi_audio
+ 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
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:07_CEST [openHABian] Enabling Audio output... '
2022-07-19_09:36:07_CEST [openHABian] Enabling Audio output... + grep -qs '^[[:space:]]*dtparam=audio' /boot/config.txt
+ cond_redirect sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt \033[39;49;00m'

e[90;01m$ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt e[39;49;00m
+ sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt
+ return 0
+ cond_redirect adduser openhabian audio
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ adduser openhabian audio \033[39;49;00m'

e[90;01m$ adduser openhabian audio e[39;49;00m
+ adduser openhabian audio
The user `openhabian' is already a member of `audio'.
+ return 0
+ echo OK
OK
+ basic_packages
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:07_CEST [openHABian] Installing basic can'\''t-be-wrong packages (screen, vim, ...)... '
2022-07-19_09:36:07_CEST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... ++ command -v raspi-config
+ [[ -x /usr/bin/raspi-config ]]
+ cp /etc/init.d/raspi-config /etc/init.d/openhabian-config
+ sed -i -e s/raspi-config/openhabian-config/ /etc/init.d/openhabian-config
+ cond_redirect apt-get purge --yes raspi-config
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get purge --yes raspi-config \033[39;49;00m'

e[90;01m$ apt-get purge --yes raspi-config e[39;49;00m
+ apt-get purge --yes raspi-config
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 userconf-pi : Depends: raspi-config but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
+ return 100
+ echo 'FAILED (remove raspi-config)'
FAILED (remove raspi-config)
+ return 1
+ needed_packages
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:09_CEST [openHABian] Installing additional needed packages... '
2022-07-19_09:36:09_CEST [openHABian] Installing additional needed packages... + cond_redirect apt-get install --yes apt-transport-https bc sysstat jq moreutils avahi-daemon python3 python3-pip python3-wheel python3-setuptools avahi-autoipd fontconfig
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --yes apt-transport-https bc sysstat jq moreutils avahi-daemon python3 python3-pip python3-wheel python3-setuptools avahi-autoipd fontconfig \033[39;49;00m'

e[90;01m$ apt-get install --yes apt-transport-https bc sysstat jq moreutils avahi-daemon python3 python3-pip python3-wheel python3-setuptools avahi-autoipd fontconfig e[39;49;00m
+ apt-get install --yes apt-transport-https bc sysstat jq moreutils avahi-daemon python3 python3-pip python3-wheel python3-setuptools avahi-autoipd fontconfig
Reading package lists...
Building dependency tree...
Reading state information...
avahi-daemon is already the newest version (0.8-5).
python3 is already the newest version (3.9.2-3).
python3 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 jq : Depends: libjq1 (= 1.6-2.1) but it is not going to be installed
 libc6-dbg : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 moreutils : Depends: libipc-run-perl but it is not going to be installed
             Depends: libtime-duration-perl but it is not going to be installed
             Depends: libtimedate-perl but it is not going to be installed
 python3-pip : Depends: python3-distutils but it is not going to be installed
               Depends: python-pip-whl (= 20.3.4-4+rpt1+deb11u1) but it is not going to be installed
               Recommends: python3-dev (>= 3.2) but it is not going to be installed
 python3-setuptools : Depends: python3-distutils but it is not going to be installed
 sysstat : Depends: libsensors5 (>= 1:3.5.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
+ return 100
+ echo FAILED
FAILED
+ return 1
+ bashrc_copy
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:10_CEST [openHABian] Adding slightly tuned bash configuration files to system... '
2022-07-19_09:36:10_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_logout /home/openhabian/.bash_profile
+ echo OK
OK

+ vimrc_copy
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:10_CEST [openHABian] Adding slightly tuned vim configuration file to system... '
2022-07-19_09:36:10_CEST [openHABian] Adding slightly tuned vim configuration file to system... + cp /opt/openhabian/includes/vimrc /etc/vim/vimrc
+ echo OK
OK
+ install_tailscale install
+ local 'installText=We will install the tailscale VPN client on your system. Use it to securely interconnect multiple openHAB(ian) instances.\nSee https://tailscale.com/blog/how-tailscale-works/ for a comprehensive explanation how it creates a secure VPN. For personal use, you can get a free solo service from tailscale.com.'
+ local 'removeText=We will remove the tailscale VPN client from your system.\n\nDouble-check ~/.ssh/authorized_keys and eventually remove the admin key.'
+ local serviceTargetDir=/lib/systemd/system
+ local sudoersFile=011_openhab-tailscale
+ local sudoersPath=/etc/sudoers.d
+ local keyName=tailscale
+ [[ -n 1 ]]
+ [[ ! -v preauthkey ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2022-07-19_09:36:10_CEST [openHABian] tailscale VPN installation... SKIPPED (no preauthkey defined)'
2022-07-19_09:36:10_CEST [openHABian] tailscale VPN installation... SKIPPED (no preauthkey defined)
+ return 1
+ misc_system_settings
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:10_CEST [openHABian] Applying miscellaneous system settings... '
2022-07-19_09:36:10_CEST [openHABian] Applying miscellaneous system settings... + cond_echo 'Creating a README note for end user'\''s home folder'
+ [[ -z '' ]]
+ echo -e '\033[33;01mCreating a README note for end user'\''s home folder\033[39;49;00m'
e[33;01mCreating a README note for end user's home foldere[39;49;00m
+ echo -e 'This is your linux user'\''s "home" folder.\nPlace personal files, programs or scripts here.'
+ cond_echo 'Creating SSH key files'
+ [[ -z '' ]]
+ echo -e '\033[33;01mCreating SSH key files\033[39;49;00m'
e[33;01mCreating SSH key filese[39;49;00m
+ cond_redirect mkdir -p /home/openhabian/.ssh
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir -p /home/openhabian/.ssh \033[39;49;00m'

e[90;01m$ mkdir -p /home/openhabian/.ssh e[39;49;00m
+ mkdir -p /home/openhabian/.ssh
+ return 0
+ cond_redirect chmod 700 /home/openhabian/.ssh
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ chmod 700 /home/openhabian/.ssh \033[39;49;00m'

e[90;01m$ chmod 700 /home/openhabian/.ssh e[39;49;00m
+ chmod 700 /home/openhabian/.ssh
+ return 0
+ cond_redirect touch /home/openhabian/.ssh/authorized_keys
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ touch /home/openhabian/.ssh/authorized_keys \033[39;49;00m'

e[90;01m$ touch /home/openhabian/.ssh/authorized_keys e[39;49;00m
+ touch /home/openhabian/.ssh/authorized_keys
+ return 0
+ cond_redirect chmod 600 /home/openhabian/.ssh/authorized_keys
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ chmod 600 /home/openhabian/.ssh/authorized_keys \033[39;49;00m'

e[90;01m$ chmod 600 /home/openhabian/.ssh/authorized_keys e[39;49;00m
+ chmod 600 /home/openhabian/.ssh/authorized_keys
+ return 0
+ cond_redirect chown -R openhabian:openhabian /home/openhabian/.ssh
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ chown -R openhabian:openhabian /home/openhabian/.ssh \033[39;49;00m'

e[90;01m$ chown -R openhabian:openhabian /home/openhabian/.ssh e[39;49;00m
+ chown -R openhabian:openhabian /home/openhabian/.ssh
+ return 0
+ is_raspbian
+ [[ '' == \r\a\s\p\b\i\a\n ]]
++ 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" =~ Raspbian ]]
+ return 0
+ sed -i /SystemMax/d /etc/systemd/journald.conf
+ echo -e 'SystemMaxUse=50M\nSystemMaxFileSize=10M\nSystemMaxFiles=5'
+ cond_echo 'Creating persistent systemd journal folder location: /var/log/journal'
+ [[ -z '' ]]
+ echo -e '\033[33;01mCreating persistent systemd journal folder location: /var/log/journal\033[39;49;00m'
e[33;01mCreating persistent systemd journal folder location: /var/log/journale[39;49;00m
+ cond_redirect mkdir -p /var/log/journal
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir -p /var/log/journal \033[39;49;00m'

e[90;01m$ mkdir -p /var/log/journal e[39;49;00m
+ mkdir -p /var/log/journal
+ return 0
+ cond_redirect systemd-tmpfiles --create --prefix /var/log/journal
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemd-tmpfiles --create --prefix /var/log/journal \033[39;49;00m'

e[90;01m$ systemd-tmpfiles --create --prefix /var/log/journal e[39;49;00m
+ systemd-tmpfiles --create --prefix /var/log/journal
+ return 0
+ cond_echo 'Keeping at most 30 days of systemd journal entries'
+ [[ -z '' ]]
+ echo -e '\033[33;01mKeeping at most 30 days of systemd journal entries\033[39;49;00m'
e[33;01mKeeping at most 30 days of systemd journal entriese[39;49;00m
+ cond_redirect journalctl --vacuum-time=30d
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ journalctl --vacuum-time=30d \033[39;49;00m'

e[90;01m$ journalctl --vacuum-time=30d e[39;49;00m
+ journalctl --vacuum-time=30d
Deleted archived journal /var/log/journal/d65570221b8548fbb9da81007d2a5499/system@f8bdaebb0447462f86103d9e499b1080-0000000000000001-0005dbd2f37d46b0.journal (8.0M).
Vacuuming done, freed 8.0M of archived journals from /var/log/journal/d65570221b8548fbb9da81007d2a5499.
Vacuuming done, freed 0B of archived journals from /run/log/journal.
Vacuuming done, freed 0B of archived journals from /var/log/journal.
+ return 0
+ grep -qs '^[[:space:]]*dtparam=i2c_arm=on' /boot/config.txt
+ echo dtparam=i2c_arm=on
+ cond_redirect install -m 755 /opt/openhabian/includes/INA219.py /usr/local/bin/waveshare_ups
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ install -m 755 /opt/openhabian/includes/INA219.py /usr/local/bin/waveshare_ups \033[39;49;00m'

e[90;01m$ install -m 755 /opt/openhabian/includes/INA219.py /usr/local/bin/waveshare_ups e[39;49;00m
+ install -m 755 /opt/openhabian/includes/INA219.py /usr/local/bin/waveshare_ups
+ return 0
+ cond_echo 'Setting a distinguishable apt User-Agent'
+ [[ -z '' ]]
+ echo -e '\033[33;01mSetting a distinguishable apt User-Agent\033[39;49;00m'
e[33;01mSetting a distinguishable apt User-Agente[39;49;00m
+ echo 'Acquire { http::User-Agent "Debian APT-HTTP/1.3 openHABian"; };'
+ echo OK
OK
+ add_admin_ssh_key
+ [[ -z '' ]]
+ return 0
+ firemotd_setup
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ running_on_github
+ [[ -n '' ]]
+ return 1
+ local firemotdDir=/opt/FireMotD
+ dpkg -s bc sysstat jq moreutils make
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:10_CEST [openHABian] Installing FireMotD required packages (bc, sysstat, jq, moreutils)... '
2022-07-19_09:36:10_CEST [openHABian] Installing FireMotD required packages (bc, sysstat, jq, moreutils)... + cond_redirect apt-get install --yes bc sysstat jq moreutils make
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --yes bc sysstat jq moreutils make \033[39;49;00m'

e[90;01m$ apt-get install --yes bc sysstat jq moreutils make e[39;49;00m
+ apt-get install --yes bc sysstat jq moreutils make
Reading package lists...
Building dependency tree...
Reading state information...
make is already the newest version (4.3-4.1).
make set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 jq : Depends: libjq1 (= 1.6-2.1) but it is not going to be installed
 libc6-dbg : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 moreutils : Depends: libipc-run-perl but it is not going to be installed
             Depends: libtime-duration-perl but it is not going to be installed
             Depends: libtimedate-perl but it is not going to be installed
 sysstat : Depends: libsensors5 (>= 1:3.5.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
+ return 100
+ echo FAILED
FAILED
+ return 1
+ java_install 11
+ openhab_is_running
+ openhab_is_installed
+ openhab2_is_installed
++ dpkg -s openhab2
++ grep Status
++ cut '-d ' -f2
+ [[ '' == \i\n\s\t\a\l\l ]]
+ return 1
+ openhab3_is_installed
++ dpkg -s openhab
++ grep Status
++ cut '-d ' -f2
+ [[ '' == \i\n\s\t\a\l\l ]]
+ return 1
+ return 1
+ return 1
+ [[ -d /opt/jdk ]]
+ openjdk_install_apt 11
+ dpkg -s openjdk-11-jre-headless
+ openjdk_fetch_apt 11
+ apt-cache show openjdk-11-jre-headless
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:11_CEST [openHABian] Fetching OpenJDK 11... '
2022-07-19_09:36:11_CEST [openHABian] Fetching OpenJDK 11... + cond_redirect apt-get install --download-only --yes openjdk-11-jre-headless
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --download-only --yes openjdk-11-jre-headless \033[39;49;00m'

e[90;01m$ apt-get install --download-only --yes openjdk-11-jre-headless e[39;49;00m
+ apt-get install --download-only --yes openjdk-11-jre-headless
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 openjdk-11-jre-headless : Depends: ca-certificates-java (>= 20190405~) but it is not going to be installed
                           Depends: java-common (>= 0.28) but it is not going to be installed
                           Depends: libcups2 but it is not going to be installed
                           Depends: liblcms2-2 (>= 2.2+git20110628) but it is not going to be installed
                           Depends: libharfbuzz0b (>= 1.2.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
+ return 100
+ echo FAILED
FAILED
+ return 1
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:13_CEST [openHABian] Installing OpenJDK 11... '
2022-07-19_09:36:13_CEST [openHABian] Installing OpenJDK 11... + cond_redirect java_alternatives_reset
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ java_alternatives_reset \033[39;49;00m'

e[90;01m$ java_alternatives_reset e[39;49;00m
+ java_alternatives_reset
+ local jdkBin
++ find '/opt/jdk/*/bin' ... -print -quit
find: ‘/opt/jdk/*/bin’: No such file or directory
find: ‘...’: No such file or directory
+ jdkBin=
+ cond_redirect find '' -maxdepth 1 -perm -111 -type f -exec bash -c 'update-alternatives --quiet --remove-all $(basename {})' ';'
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ find  -maxdepth 1 -perm -111 -type f -exec bash -c update-alternatives --quiet --remove-all $(basename {}) ; \033[39;49;00m'

e[90;01m$ find  -maxdepth 1 -perm -111 -type f -exec bash -c update-alternatives --quiet --remove-all $(basename {}) ; e[39;49;00m
+ find '' -maxdepth 1 -perm -111 -type f -exec bash -c 'update-alternatives --quiet --remove-all $(basename {})' ';'
find: ‘’: No such file or directory
+ return 1
+ return 1
+ cond_redirect apt-get install --yes openjdk-11-jre-headless
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --yes openjdk-11-jre-headless \033[39;49;00m'

e[90;01m$ apt-get install --yes openjdk-11-jre-headless e[39;49;00m
+ apt-get install --yes openjdk-11-jre-headless
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 openjdk-11-jre-headless : Depends: ca-certificates-java (>= 20190405~) but it is not going to be installed
                           Depends: java-common (>= 0.28) but it is not going to be installed
                           Depends: libcups2 but it is not going to be installed
                           Depends: liblcms2-2 (>= 2.2+git20110628) but it is not going to be installed
                           Depends: libharfbuzz0b (>= 1.2.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
+ return 100
+ echo FAILED
FAILED
+ return 1
+ openhab_is_installed
+ openhab2_is_installed
++ dpkg -s openhab2
++ grep Status
++ cut '-d ' -f2
+ [[ '' == \i\n\s\t\a\l\l ]]
+ return 1
+ openhab3_is_installed
++ dpkg -s openhab
++ grep Status
++ cut '-d ' -f2
+ [[ '' == \i\n\s\t\a\l\l ]]
+ return 1
+ return 1
+ openhab_setup openHAB3 stable
+ local introText
+ local keyName=openhab
+ local openhabVersion
+ local repo
+ local successText
+ [[ openHAB3 == \o\p\e\n\H\A\B\2 ]]
+ [[ openHAB3 == \s\t\a\b\l\e ]]
+ ohPkgName=openhab
+ [[ stable == \u\n\s\t\a\b\l\e ]]
+ [[ stable == \s\t\a\b\l\e ]]
+ introText='You are about to install or change to the latest stable openhab release.\n\nPlease be aware that downgrading from a newer unstable snapshot build is not officially supported. Please consult with the documentation or community forum and be sure to take a full openHAB configuration backup first!'
+ successText='The stable release of openhab is now installed on your system.\n\nPlease test the correct behavior of your setup. You might need to adapt your configuration, if available. If you made changes to the files in '\''/var/lib/openhab'\'' they were replaced, but you can restore them from backup files next to the originals.\n\nCheck the "openHAB Release Notes" and the official announcements to learn about additons, fixes and changes.'
+ repo='deb [signed-by=/usr/share/keyrings/openhab.gpg] https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main'
+ [[ stable == \u\n\s\t\a\b\l\e ]]
+ [[ stable == \s\t\a\b\l\e ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:14_CEST [openHABian] Beginning install of latest openhab release (stable)... '
2022-07-19_09:36:14_CEST [openHABian] Beginning install of latest openhab release (stable)... + [[ -n '' ]]
+ echo OK
OK
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ [[ -z '' ]]
+ add_keys https://openhab.jfrog.io/artifactory/api/gpg/key/public openhab
+ local repoKey=/usr/share/keyrings/openhab.gpg
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:14_CEST [openHABian] Adding required keys to apt... '
2022-07-19_09:36:14_CEST [openHABian] Adding required keys to apt... + curl -fsSL https://openhab.jfrog.io/artifactory/api/gpg/key/public
+ gpg --dearmor
+ echo OK
OK
+ rm -f /etc/apt/sources.list.d/openhab.list
+ echo 'deb [signed-by=/usr/share/keyrings/openhab.gpg] https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main'
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:14_CEST [openHABian] Installing selected openHAB3 version... '
2022-07-19_09:36:14_CEST [openHABian] Installing selected openHAB3 version... + cond_redirect apt-get update
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get update \033[39;49;00m'

e[90;01m$ apt-get update e[39;49;00m
+ apt-get update
Hit:1 http://davesteele.github.io/comitup/repo comitup InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:4 https://deb.nodesource.com/node_14.x bullseye InRelease
Hit:5 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Reading package lists...
+ return 0
++ apt-cache madison openhab
++ head -n 1
++ xargs
++ cut '-d|' -f2
+ openhabVersion=3.3.0-1
+ cond_redirect apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.3.0-1 openhab-addons=3.3.0-1
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.3.0-1 openhab-addons=3.3.0-1 \033[39;49;00m'

e[90;01m$ apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.3.0-1 openhab-addons=3.3.0-1 e[39;49;00m
+ apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.3.0-1 openhab-addons=3.3.0-1
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
+ return 100
+ echo FAILED
FAILED
+ return 1
+ import_openhab_config
+ local initialConfig=/boot/initial.zip
+ local restoreFile=/boot/initial.zip
+ [[ -n '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:21_CEST [openHABian] Getting initial openHAB configuration... '
2022-07-19_09:36:21_CEST [openHABian] Getting initial openHAB configuration... + [[ /boot/initial.zip =~ http:* ]]
+ [[ -n 1 ]]
+ [[ -f /boot/initial.zip ]]
+ echo 'SKIPPED (backup not found at /boot/initial.zip)'
SKIPPED (backup not found at /boot/initial.zip)
+ return 0
+ openhab_shell_interfaces
+ local introText
+ local sshPass
+ local sshPass1=habopen
+ local sshPass2
+ local successText
+ introText='\nThe openHAB remote console is a powerful tool for every openHAB user. For details see https://www.openhab.org/docs/administration/console.html\n\nThis menu option will make the console available on all interfaces of your system. Please provide a secure password for this connection. Blank input will get you the default password "habopen".'
+ successText='The openHAB remote console was successfully activated on all interfaces and openHAB has been restarted. You can reach the console using\n\nssh openhab@openhabian -p 8101\n\nBe aware that the first connection attempt may take a few minutes or may result in a timeout due to key generation.\nThe default password is "habopen".'
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:21_CEST [openHABian] Activating the openHAB console on all interfaces... '
2022-07-19_09:36:21_CEST [openHABian] Activating the openHAB console on all interfaces... + [[ -n '' ]]
+ sshPass=habopen
+ cond_redirect sed -i -e 's|^#.*sshHost = 0.0.0.0.*$|org.apache.karaf.shell:sshHost = 0.0.0.0|g' /etc/openhab/services/runtime.cfg
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i -e s|^#.*sshHost = 0.0.0.0.*$|org.apache.karaf.shell:sshHost = 0.0.0.0|g /etc/openhab/services/runtime.cfg \033[39;49;00m'

e[90;01m$ sed -i -e s|^#.*sshHost = 0.0.0.0.*$|org.apache.karaf.shell:sshHost = 0.0.0.0|g /etc/openhab/services/runtime.cfg e[39;49;00m
+ sed -i -e 's|^#.*sshHost = 0.0.0.0.*$|org.apache.karaf.shell:sshHost = 0.0.0.0|g' /etc/openhab/services/runtime.cfg
sed: can't read /etc/openhab/services/runtime.cfg: No such file or directory
+ return 2
+ echo 'FAILED (sshHost)'
FAILED (sshHost)
+ return 1
+ vim_openhab_syntax
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:21_CEST [openHABian] Adding openHAB syntax to vim editor... '
2022-07-19_09:36:21_CEST [openHABian] Adding openHAB syntax to vim editor... + cond_redirect mkdir -p /home/openhabian/.vim/ftdetect /home/openhabian/.vim/syntax
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir -p /home/openhabian/.vim/ftdetect /home/openhabian/.vim/syntax \033[39;49;00m'

e[90;01m$ mkdir -p /home/openhabian/.vim/ftdetect /home/openhabian/.vim/syntax e[39;49;00m
+ mkdir -p /home/openhabian/.vim/ftdetect /home/openhabian/.vim/syntax
+ return 0
+ cond_redirect wget -O /home/openhabian/.vim/syntax/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/syntax/openhab.vim
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ wget -O /home/openhabian/.vim/syntax/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/syntax/openhab.vim \033[39;49;00m'

e[90;01m$ wget -O /home/openhabian/.vim/syntax/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/syntax/openhab.vim e[39;49;00m
+ wget -O /home/openhabian/.vim/syntax/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/syntax/openhab.vim
--2022-07-19 09:36:21--  https://github.com/cyberkov/openhab-vim/raw/master/syntax/openhab.vim
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/cyberkov/openhab-vim/master/syntax/openhab.vim [following]
--2022-07-19 09:36:21--  https://raw.githubusercontent.com/cyberkov/openhab-vim/master/syntax/openhab.vim
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6065 (5.9K) [text/plain]
Saving to: ‘/home/openhabian/.vim/syntax/openhab.vim’

     0K .....                                                 100% 7.69M=0.001s

2022-07-19 09:36:21 (7.69 MB/s) - ‘/home/openhabian/.vim/syntax/openhab.vim’ saved [6065/6065]

+ return 0
+ cond_redirect wget -O /home/openhabian/.vim/ftdetect/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/ftdetect/openhab.vim
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ wget -O /home/openhabian/.vim/ftdetect/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/ftdetect/openhab.vim \033[39;49;00m'

e[90;01m$ wget -O /home/openhabian/.vim/ftdetect/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/ftdetect/openhab.vim e[39;49;00m
+ wget -O /home/openhabian/.vim/ftdetect/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/ftdetect/openhab.vim
--2022-07-19 09:36:21--  https://github.com/cyberkov/openhab-vim/raw/master/ftdetect/openhab.vim
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/cyberkov/openhab-vim/master/ftdetect/openhab.vim [following]
--2022-07-19 09:36:22--  https://raw.githubusercontent.com/cyberkov/openhab-vim/master/ftdetect/openhab.vim
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 661 [text/plain]
Saving to: ‘/home/openhabian/.vim/ftdetect/openhab.vim’

     0K                                                       100% 5.16M=0s

2022-07-19 09:36:22 (5.16 MB/s) - ‘/home/openhabian/.vim/ftdetect/openhab.vim’ saved [661/661]

+ return 0
+ chown -R openhabian:openhabian /home/openhabian/.vim
+ echo OK
OK
+ nano_openhab_syntax
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:22_CEST [openHABian] Adding openHAB syntax to nano editor... '
2022-07-19_09:36:22_CEST [openHABian] Adding openHAB syntax to nano editor... + cond_redirect wget -O /usr/share/nano/openhab.nanorc https://github.com/airix1/openhabnano/raw/master/openhab.nanorc
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ wget -O /usr/share/nano/openhab.nanorc https://github.com/airix1/openhabnano/raw/master/openhab.nanorc \033[39;49;00m'

e[90;01m$ wget -O /usr/share/nano/openhab.nanorc https://github.com/airix1/openhabnano/raw/master/openhab.nanorc e[39;49;00m
+ wget -O /usr/share/nano/openhab.nanorc https://github.com/airix1/openhabnano/raw/master/openhab.nanorc
--2022-07-19 09:36:22--  https://github.com/airix1/openhabnano/raw/master/openhab.nanorc
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/airix1/openhabnano/master/openhab.nanorc [following]
--2022-07-19 09:36:22--  https://raw.githubusercontent.com/airix1/openhabnano/master/openhab.nanorc
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2890 (2.8K) [text/plain]
Saving to: ‘/usr/share/nano/openhab.nanorc’

     0K ..                                                    100% 6.35M=0s

2022-07-19 09:36:23 (6.35 MB/s) - ‘/usr/share/nano/openhab.nanorc’ saved [2890/2890]

+ return 0
+ echo -e '\n## openHAB syntax\ninclude "/usr/share/nano/openhab.nanorc"'
+ echo OK
OK
+ multitail_openhab_scheme
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:23_CEST [openHABian] Adding openHAB scheme to multitail... '
2022-07-19_09:36:23_CEST [openHABian] Adding openHAB scheme to multitail... + cp /opt/openhabian/includes/multitail.openhab.conf /etc/multitail.openhab.conf
+ cond_redirect sed -i -e '/^.*multitail.*openhab.*$/d' /etc/multitail.conf
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i -e /^.*multitail.*openhab.*$/d /etc/multitail.conf \033[39;49;00m'

e[90;01m$ sed -i -e /^.*multitail.*openhab.*$/d /etc/multitail.conf e[39;49;00m
+ sed -i -e '/^.*multitail.*openhab.*$/d' /etc/multitail.conf
sed: can't read /etc/multitail.conf: No such file or directory
+ return 2
+ echo 'FAILED (remove default configuration)'
FAILED (remove default configuration)
+ return 1
+ srv_bind_mounts
+ [[ -f /etc/ztab ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:23_CEST [openHABian] Preparing openHAB folder mounts under '\''/srv/openhab-*'\''... '
2022-07-19_09:36:23_CEST [openHABian] Preparing openHAB folder mounts under '/srv/openhab-*'... + cond_redirect umount -q /srv/openhab-sys /srv/openhab-conf /srv/openhab-userdata /srv/openhab-addons
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ umount -q /srv/openhab-sys /srv/openhab-conf /srv/openhab-userdata /srv/openhab-addons \033[39;49;00m'

e[90;01m$ umount -q /srv/openhab-sys /srv/openhab-conf /srv/openhab-userdata /srv/openhab-addons e[39;49;00m
+ umount -q /srv/openhab-sys /srv/openhab-conf /srv/openhab-userdata /srv/openhab-addons
umount: /srv/openhab-sys: no mount point specified.
umount: /srv/openhab-conf: no mount point specified.
umount: /srv/openhab-userdata: no mount point specified.
umount: /srv/openhab-addons: no mount point specified.
+ return 128
+ cond_redirect rm -f '/etc/systemd/system/srv*.mount'
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ rm -f /etc/systemd/system/srv*.mount \033[39;49;00m'

e[90;01m$ rm -f /etc/systemd/system/srv*.mount e[39;49;00m
+ rm -f '/etc/systemd/system/srv*.mount'
+ return 0
+ cond_redirect mkdir -p /srv/openhab-sys /srv/openhab-conf /srv/openhab-userdata /srv/openhab-addons
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir -p /srv/openhab-sys /srv/openhab-conf /srv/openhab-userdata /srv/openhab-addons \033[39;49;00m'

e[90;01m$ mkdir -p /srv/openhab-sys /srv/openhab-conf /srv/openhab-userdata /srv/openhab-addons e[39;49;00m
+ mkdir -p /srv/openhab-sys /srv/openhab-conf /srv/openhab-userdata /srv/openhab-addons
+ return 0
+ cond_redirect cp /opt/openhabian/includes/srv_readme.txt /srv/README.txt
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ cp /opt/openhabian/includes/srv_readme.txt /srv/README.txt \033[39;49;00m'

e[90;01m$ cp /opt/openhabian/includes/srv_readme.txt /srv/README.txt e[39;49;00m
+ cp /opt/openhabian/includes/srv_readme.txt /srv/README.txt
+ return 0
+ cond_redirect chmod ugo+w /srv /srv/README.txt
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ chmod ugo+w /srv /srv/README.txt \033[39;49;00m'

e[90;01m$ chmod ugo+w /srv /srv/README.txt e[39;49;00m
+ chmod ugo+w /srv /srv/README.txt
+ return 0
+ cond_redirect create_mount /usr/share/openhab sys
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ create_mount /usr/share/openhab sys \033[39;49;00m'

e[90;01m$ create_mount /usr/share/openhab sys e[39;49;00m
+ create_mount /usr/share/openhab sys
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ local destination
+ local mountPoint
+ local source
+ destination=sys
++ systemd-escape --path /srv/openhab-sys --suffix mount
+ mountPoint='srv-openhab\x2dsys.mount'
+ source=/usr/share/openhab
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:23_CEST [openHABian] Creating mount /usr/share/openhab in '\''/srv/openhab-sys'\''... '
2022-07-19_09:36:23_CEST [openHABian] Creating mount /usr/share/openhab in '/srv/openhab-sys'... + sed -e 's|%SRC|/usr/share/openhab|g; s|%DEST|sys|g' /opt/openhabian/includes/srv_mount_template
+ cond_redirect systemctl -q daemon-reload
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl -q daemon-reload \033[39;49;00m'

e[90;01m$ systemctl -q daemon-reload e[39;49;00m
+ systemctl -q daemon-reload
+ return 0
+ cond_redirect systemctl enable --now 'srv-openhab\x2dsys.mount'
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl enable --now srv-openhab\x2dsys.mount \033[39;49;00m'

e[90;01m$ systemctl enable --now srv-openhab-sys.mount e[39;49;00m
+ systemctl enable --now 'srv-openhab\x2dsys.mount'
Created symlink /etc/systemd/system/multi-user.target.wants/srv-openhab\x2dsys.mount → /etc/systemd/system/srv-openhab\x2dsys.mount.
+ return 0
+ echo OK
OK
+ return 0
+ cond_redirect create_mount /etc/openhab conf
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ create_mount /etc/openhab conf \033[39;49;00m'

e[90;01m$ create_mount /etc/openhab conf e[39;49;00m
+ create_mount /etc/openhab conf
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ local destination
+ local mountPoint
+ local source
+ destination=conf
++ systemd-escape --path /srv/openhab-conf --suffix mount
+ mountPoint='srv-openhab\x2dconf.mount'
+ source=/etc/openhab
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:24_CEST [openHABian] Creating mount /etc/openhab in '\''/srv/openhab-conf'\''... '
2022-07-19_09:36:24_CEST [openHABian] Creating mount /etc/openhab in '/srv/openhab-conf'... + sed -e 's|%SRC|/etc/openhab|g; s|%DEST|conf|g' /opt/openhabian/includes/srv_mount_template
+ cond_redirect systemctl -q daemon-reload
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl -q daemon-reload \033[39;49;00m'

e[90;01m$ systemctl -q daemon-reload e[39;49;00m
+ systemctl -q daemon-reload
+ return 0
+ cond_redirect systemctl enable --now 'srv-openhab\x2dconf.mount'
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl enable --now srv-openhab\x2dconf.mount \033[39;49;00m'

e[90;01m$ systemctl enable --now srv-openhab-conf.mount e[39;49;00m
+ systemctl enable --now 'srv-openhab\x2dconf.mount'
Created symlink /etc/systemd/system/multi-user.target.wants/srv-openhab\x2dconf.mount → /etc/systemd/system/srv-openhab\x2dconf.mount.
+ return 0
+ echo OK
OK
+ return 0
+ cond_redirect create_mount /var/lib/openhab userdata
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ create_mount /var/lib/openhab userdata \033[39;49;00m'

e[90;01m$ create_mount /var/lib/openhab userdata e[39;49;00m
+ create_mount /var/lib/openhab userdata
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ local destination
+ local mountPoint
+ local source
+ destination=userdata
++ systemd-escape --path /srv/openhab-userdata --suffix mount
+ mountPoint='srv-openhab\x2duserdata.mount'
+ source=/var/lib/openhab
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:25_CEST [openHABian] Creating mount /var/lib/openhab in '\''/srv/openhab-userdata'\''... '
2022-07-19_09:36:25_CEST [openHABian] Creating mount /var/lib/openhab in '/srv/openhab-userdata'... + sed -e 's|%SRC|/var/lib/openhab|g; s|%DEST|userdata|g' /opt/openhabian/includes/srv_mount_template
+ cond_redirect systemctl -q daemon-reload
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl -q daemon-reload \033[39;49;00m'

e[90;01m$ systemctl -q daemon-reload e[39;49;00m
+ systemctl -q daemon-reload
+ return 0
+ cond_redirect systemctl enable --now 'srv-openhab\x2duserdata.mount'
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl enable --now srv-openhab\x2duserdata.mount \033[39;49;00m'

e[90;01m$ systemctl enable --now srv-openhab-userdata.mount e[39;49;00m
+ systemctl enable --now 'srv-openhab\x2duserdata.mount'
Created symlink /etc/systemd/system/multi-user.target.wants/srv-openhab\x2duserdata.mount → /etc/systemd/system/srv-openhab\x2duserdata.mount.
+ return 0
+ echo OK
OK
+ return 0
+ cond_redirect create_mount /usr/share/openhab/addons addons
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ create_mount /usr/share/openhab/addons addons \033[39;49;00m'

e[90;01m$ create_mount /usr/share/openhab/addons addons e[39;49;00m
+ create_mount /usr/share/openhab/addons addons
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ local destination
+ local mountPoint
+ local source
+ destination=addons
++ systemd-escape --path /srv/openhab-addons --suffix mount
+ mountPoint='srv-openhab\x2daddons.mount'
+ source=/usr/share/openhab/addons
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:26_CEST [openHABian] Creating mount /usr/share/openhab/addons in '\''/srv/openhab-addons'\''... '
2022-07-19_09:36:26_CEST [openHABian] Creating mount /usr/share/openhab/addons in '/srv/openhab-addons'... + sed -e 's|%SRC|/usr/share/openhab/addons|g; s|%DEST|addons|g' /opt/openhabian/includes/srv_mount_template
+ cond_redirect systemctl -q daemon-reload
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl -q daemon-reload \033[39;49;00m'

e[90;01m$ systemctl -q daemon-reload e[39;49;00m
+ systemctl -q daemon-reload
+ return 0
+ cond_redirect systemctl enable --now 'srv-openhab\x2daddons.mount'
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl enable --now srv-openhab\x2daddons.mount \033[39;49;00m'

e[90;01m$ systemctl enable --now srv-openhab-addons.mount e[39;49;00m
+ systemctl enable --now 'srv-openhab\x2daddons.mount'
Created symlink /etc/systemd/system/multi-user.target.wants/srv-openhab\x2daddons.mount → /etc/systemd/system/srv-openhab\x2daddons.mount.
+ return 0
+ echo OK
OK
+ return 0
+ echo OK
OK
+ [[ -f /etc/ztab ]]
+ samba_setup
+ local serviceFile=/lib/systemd/system/smbd.service
+ samba_is_installed
+ dpkg -s samba
+ return 1
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:27_CEST [openHABian] Installing Samba... '
2022-07-19_09:36:27_CEST [openHABian] Installing Samba... + cond_redirect apt-get install --yes samba
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --yes samba \033[39;49;00m'

e[90;01m$ apt-get install --yes samba e[39;49;00m
+ apt-get install --yes samba
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 samba : Depends: python3-dnspython but it is not going to be installed
         Depends: python3-samba but it is not going to be installed
         Depends: samba-common (= 2:4.13.13+dfsg-1~deb11u4) but it is not going to be installed
         Depends: samba-common-bin (= 2:4.13.13+dfsg-1~deb11u4) but it is not going to be installed
         Depends: tdb-tools but it is not going to be installed
         Depends: libldb2 (>= 2:2.2.3~) but it is not going to be installed
         Depends: libtdb1 (>= 1.4.3~) but it is not going to be installed
         Depends: libwbclient0 (= 2:4.13.13+dfsg-1~deb11u4) but 2:4.13.13+dfsg-1~deb11u3 is to be installed
         Depends: samba-libs (= 2:4.13.13+dfsg-1~deb11u4) but it is not going to be installed
         Recommends: attr but it is not going to be installed
         Recommends: python3-markdown but it is not going to be installed
         Recommends: samba-dsdb-modules but it is not going to be installed
         Recommends: samba-vfs-modules but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
+ return 100
+ echo FAILED
FAILED
+ return 1
+ clean_config_userpw
+ cond_redirect sed -i -e 's|^userpw=.*$|\#userpw=xxxxxx|g' /etc/openhabian.conf
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i -e s|^userpw=.*$|\#userpw=xxxxxx|g /etc/openhabian.conf \033[39;49;00m'

e[90;01m$ sed -i -e s|^userpw=.*$|\#userpw=xxxxxx|g /etc/openhabian.conf e[39;49;00m
+ sed -i -e 's|^userpw=.*$|\#userpw=xxxxxx|g' /etc/openhabian.conf
+ return 0
+ frontail_setup
+ local frontailBase
+ local frontailUser=frontail
+ node_is_installed
++ command -v npm
+ [[ -x '' ]]
+ return 1
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:29_CEST [openHABian] Installing Frontail prerequsites (NodeJS)... '
2022-07-19_09:36:29_CEST [openHABian] Installing Frontail prerequsites (NodeJS)... + cond_redirect nodejs_setup
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ nodejs_setup \033[39;49;00m'

e[90;01m$ nodejs_setup e[39;49;00m
+ nodejs_setup
+ node_is_installed
++ command -v npm
+ [[ -x '' ]]
+ return 1
+ local keyName=nodejs
+ local link=https://unofficial-builds.nodejs.org/download/release/v14.18.2/node-v14.18.2-linux-armv6l.tar.xz
+ local myDistro
+ local temp
++ lsb_release -sc
+ myDistro=bullseye
+ [[ bullseye == \n\/\a ]]
++ mktemp /tmp/openhabian.XXXXX
+ temp=/tmp/openhabian.K8BBn
+ [[ -z '' ]]
+ is_armv6l
+ [[ '' == \a\r\m\v\6\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ [[ -z '' ]]
+ add_keys https://deb.nodesource.com/gpgkey/nodesource.gpg.key nodejs
+ local repoKey=/usr/share/keyrings/nodejs.gpg
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:29_CEST [openHABian] Adding required keys to apt... '
2022-07-19_09:36:29_CEST [openHABian] Adding required keys to apt... + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key
+ gpg --dearmor
+ echo OK
OK
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:29_CEST [openHABian] Adding NodeSource repository to apt... '
2022-07-19_09:36:29_CEST [openHABian] Adding NodeSource repository to apt... + echo 'deb [signed-by=/usr/share/keyrings/nodejs.gpg] https://deb.nodesource.com/node_14.x bullseye main'
+ echo 'deb-src [signed-by=/usr/share/keyrings/nodejs.gpg] https://deb.nodesource.com/node_14.x bullseye main'
+ [[ -n '' ]]
+ cond_redirect apt-get update
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get update \033[39;49;00m'

e[90;01m$ apt-get update e[39;49;00m
+ apt-get update
Hit:1 http://davesteele.github.io/comitup/repo comitup InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:4 https://deb.nodesource.com/node_14.x bullseye InRelease
Hit:5 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Reading package lists...
+ return 0
+ echo OK
OK
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:34_CEST [openHABian] Installing NodeJS... '
2022-07-19_09:36:34_CEST [openHABian] Installing NodeJS... + [[ -n '' ]]
+ cond_redirect apt-get install --yes nodejs
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --yes nodejs \033[39;49;00m'

e[90;01m$ apt-get install --yes nodejs e[39;49;00m
+ apt-get install --yes nodejs
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
 libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
+ return 100
+ echo FAILED
FAILED
+ return 1
+ return 1
+ echo FAILED
FAILED
+ return 1
+ custom_frontail_log add ''
+ local frontailService=/etc/systemd/system/frontail.service
+ local addLog
+ local removeLog
+ local array
+ [[ -f /etc/systemd/system/frontail.service ]]
+ whiptail --title 'Frontail not installed' --msgbox 'Frontail is not installed!\n\nCanceling operation!' 9 80
Failed to open terminal.e[1;24re[4le)0e[me[37me[40me[1;24re[He[Je[1;1He[35me[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[K
e[Ke[1;1He[8;1He[34m┌──────────────────────────┤ e[31mFrontail not installede[34m ├──────────────────────────┐e[9;1H│e[33m                                                                              e[34m│e[10;1H│e[33m e[36me[42mFrontail is not installed!                                                  e[33me[40m e[34m│e[11;1H│e[33m e[36me[42m                                                                            e[33me[40m e[34m│e[12;1H│e[33m e[36me[42mCanceling operation!                                                        e[33me[40m e[34m│e[13;1H│e[33m                                                                              e[34m│e[14;1H│e[33m                                    e[37me[41m<Ok>e[33me[40m                                      e[34m│e[15;1H│e[33m                                                                              e[34m│e[16;1H└──────────────────────────────────────────────────────────────────────────────┘e[17;2He[32me[Ke[14;39He[?25he[?0ce[24;1He[37me[me[39;49m
e[K
+ return 0
+ zram_setup
+ [[ -n 1 ]]
+ [[ enable == \d\i\s\a\b\l\e ]]
+ is_arm
+ is_armv6l
+ [[ '' == \a\r\m\v\6\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ is_armv7l
+ [[ '' == \a\r\m\v\7\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 0
+ return 0
+ has_lowmem
+ local totalMemory
++ awk '/MemTotal/ {print $2}' /proc/meminfo
+ totalMemory=3931052
+ [[ -z 3931052 ]]
+ [[ 3931052 -lt 900000 ]]
+ return 1
+ is_pione
+ [[ '' == \p\i\1 ]]
+ grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmone
+ [[ '' == \c\m\1 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizero
+ [[ '' == \p\i\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizerow
+ [[ '' == \p\i\0\w ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizerow2
+ [[ '' == \p\i\0\w\2 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]12[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:35_CEST [openHABian] Installing zram... '
2022-07-19_09:36:35_CEST [openHABian] Installing zram... + cond_redirect init_zram_mounts install
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ init_zram_mounts install \033[39;49;00m'

e[90;01m$ init_zram_mounts install e[39;49;00m
+ init_zram_mounts install
+ is_arm
+ is_armv6l
+ [[ '' == \a\r\m\v\6\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ is_armv7l
+ [[ '' == \a\r\m\v\7\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 0
+ return 0
+ local 'introText=You are about to activate the zram feature.\nBe aware you do this at your own risk of data loss.\nPlease check out the "zram status" thread at https://community.openhab.org/t/zram-status/80996 before proceeding.'
+ local 'lowMemText=Your system has less than 1 GB of RAM. It is definitely NOT recommended to run zram (AND openHAB) on your box. If you proceed now you will do so at your own risk!'
+ local zramInstallLocation=/opt/zram
+ [[ install == \i\n\s\t\a\l\l ]]
+ [[ -f /etc/ztab ]]
+ [[ -n '' ]]
+ dpkg -s make
+ install_zram_code /opt/zram
+ local zramGit=https://github.com/ecdye/zram-config
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:35_CEST [openHABian] Installing zram code... '
2022-07-19_09:36:35_CEST [openHABian] Installing zram code... + cond_redirect mkdir -p /opt/zram
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir -p /opt/zram \033[39;49;00m'

e[90;01m$ mkdir -p /opt/zram e[39;49;00m
+ mkdir -p /opt/zram
+ return 0
+ [[ -d /opt/zram/zram-config ]]
+ cond_redirect update_git_repo /opt/zram/zram-config openHAB
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ update_git_repo /opt/zram/zram-config openHAB \033[39;49;00m'

e[90;01m$ update_git_repo /opt/zram/zram-config openHAB e[39;49;00m
+ update_git_repo /opt/zram/zram-config openHAB
+ local branch
+ local path
+ branch=openHAB
+ path=/opt/zram/zram-config
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
++ basename /opt/zram/zram-config
+ echo -n '2022-07-19_09:36:35_CEST [openHABian] Updating zram-config, openHAB branch from git... '
2022-07-19_09:36:35_CEST [openHABian] Updating zram-config, openHAB branch from git... + cond_redirect git -C /opt/zram/zram-config fetch origin
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ git -C /opt/zram/zram-config fetch origin \033[39;49;00m'

e[90;01m$ git -C /opt/zram/zram-config fetch origin e[39;49;00m
+ git -C /opt/zram/zram-config fetch origin
/opt/openhabian/functions/helpers.bash: line 31: git: command not found
+ return 127
+ echo 'FAILED (fetch origin)'
FAILED (fetch origin)
+ return 1
+ return 1
+ echo 'FAILED (update zram)'
FAILED (update zram)
+ return 1
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:35_CEST [openHABian] Setting up OverlayFS... '
2022-07-19_09:36:35_CEST [openHABian] Setting up OverlayFS... + cond_redirect make --always-make --directory=/opt/zram/zram-config/overlayfs-tools
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ make --always-make --directory=/opt/zram/zram-config/overlayfs-tools \033[39;49;00m'

e[90;01m$ make --always-make --directory=/opt/zram/zram-config/overlayfs-tools e[39;49;00m
+ make --always-make --directory=/opt/zram/zram-config/overlayfs-tools
make: Entering directory '/opt/zram/zram-config/overlayfs-tools'
gcc -Wall -std=c99 -c main.c
gcc -Wall -std=c99 -c logic.c
gcc -Wall -std=c99 -c sh.c
gcc main.o logic.o sh.o -o overlay -lm
make: Leaving directory '/opt/zram/zram-config/overlayfs-tools'
+ return 0
+ cond_redirect mkdir -p /usr/local/lib/zram-config/
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir -p /usr/local/lib/zram-config/ \033[39;49;00m'

e[90;01m$ mkdir -p /usr/local/lib/zram-config/ e[39;49;00m
+ mkdir -p /usr/local/lib/zram-config/
+ return 0
+ cond_redirect install -m 755 /opt/zram/zram-config/overlayfs-tools/overlay /usr/local/lib/zram-config/overlay
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ install -m 755 /opt/zram/zram-config/overlayfs-tools/overlay /usr/local/lib/zram-config/overlay \033[39;49;00m'

e[90;01m$ install -m 755 /opt/zram/zram-config/overlayfs-tools/overlay /usr/local/lib/zram-config/overlay e[39;49;00m
+ install -m 755 /opt/zram/zram-config/overlayfs-tools/overlay /usr/local/lib/zram-config/overlay
+ return 0
+ echo OK
OK



++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:37_CEST [openHABian] Setting up zram... '
2022-07-19_09:36:37_CEST [openHABian] Setting up zram... + cond_redirect install -m 755 /opt/zram/zram-config/zram-config /usr/local/sbin
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ install -m 755 /opt/zram/zram-config/zram-config /usr/local/sbin \033[39;49;00m'

e[90;01m$ install -m 755 /opt/zram/zram-config/zram-config /usr/local/sbin e[39;49;00m
+ install -m 755 /opt/zram/zram-config/zram-config /usr/local/sbin
+ return 0
+ has_highmem
+ local totalMemory
++ awk '/MemTotal/ {print $2}' /proc/meminfo
+ totalMemory=3931052
+ [[ -z 3931052 ]]
+ [[ 3931052 -gt 1500000 ]]
+ return 0
+ cond_redirect install -m 644 /opt/openhabian/includes/ztab-lm /etc/ztab
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ install -m 644 /opt/openhabian/includes/ztab-lm /etc/ztab \033[39;49;00m'

e[90;01m$ install -m 644 /opt/openhabian/includes/ztab-lm /etc/ztab e[39;49;00m
+ install -m 644 /opt/openhabian/includes/ztab-lm /etc/ztab
+ return 0
+ cond_redirect mkdir -p /usr/local/share/zram-config/log
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir -p /usr/local/share/zram-config/log \033[39;49;00m'

e[90;01m$ mkdir -p /usr/local/share/zram-config/log e[39;49;00m
+ mkdir -p /usr/local/share/zram-config/log
+ return 0
+ cond_redirect ln -s /usr/local/share/zram-config/log /var/log/zram-config
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ ln -s /usr/local/share/zram-config/log /var/log/zram-config \033[39;49;00m'

e[90;01m$ ln -s /usr/local/share/zram-config/log /var/log/zram-config e[39;49;00m
+ ln -s /usr/local/share/zram-config/log /var/log/zram-config
+ return 0
+ cond_redirect install -m 644 /opt/zram/zram-config/service/zram-config.logrotate /etc/logrotate.d/zram-config
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ install -m 644 /opt/zram/zram-config/service/zram-config.logrotate /etc/logrotate.d/zram-config \033[39;49;00m'

e[90;01m$ install -m 644 /opt/zram/zram-config/service/zram-config.logrotate /etc/logrotate.d/zram-config e[39;49;00m
+ install -m 644 /opt/zram/zram-config/service/zram-config.logrotate /etc/logrotate.d/zram-config
+ return 0
+ echo OK
OK
+ echo ReadWritePaths=/usr/local/share/zram-config/log
+ [[ -f /etc/systemd/system/find3server.service ]]
+ [[ -f /lib/systemd/system/influxdb.service ]]
+ openhab_is_installed
+ openhab2_is_installed
++ dpkg -s openhab2
++ grep Status
++ cut '-d ' -f2
+ [[ '' == \i\n\s\t\a\l\l ]]
+ return 1
+ openhab3_is_installed
++ dpkg -s openhab
++ grep Status
++ cut '-d ' -f2
+ [[ '' == \i\n\s\t\a\l\l ]]
+ return 1
+ return 1
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:37_CEST [openHABian] Removing openHAB persistence from zram... '
2022-07-19_09:36:37_CEST [openHABian] Removing openHAB persistence from zram... + cond_redirect sed -i '/^.*persistence.*$/d' /etc/ztab
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i /^.*persistence.*$/d /etc/ztab \033[39;49;00m'

e[90;01m$ sed -i /^.*persistence.*$/d /etc/ztab e[39;49;00m
+ sed -i '/^.*persistence.*$/d' /etc/ztab
+ return 0
+ echo OK
OK
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:37_CEST [openHABian] Setting up zram service... '
2022-07-19_09:36:37_CEST [openHABian] Setting up zram service... + cond_redirect install -m 644 /opt/zram/zram-config/service/SystemD/zram-config.service /etc/systemd/system/zram-config.service
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ install -m 644 /opt/zram/zram-config/service/SystemD/zram-config.service /etc/systemd/system/zram-config.service \033[39;49;00m'

e[90;01m$ install -m 644 /opt/zram/zram-config/service/SystemD/zram-config.service /etc/systemd/system/zram-config.service e[39;49;00m
+ install -m 644 /opt/zram/zram-config/service/SystemD/zram-config.service /etc/systemd/system/zram-config.service
+ return 0
+ cond_redirect systemctl -q daemon-reload
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl -q daemon-reload \033[39;49;00m'

e[90;01m$ systemctl -q daemon-reload e[39;49;00m
+ systemctl -q daemon-reload
+ return 0
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ running_on_github
+ [[ -n '' ]]
+ return 1
+ cond_redirect systemctl mask unattended-upgrades.service
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl mask unattended-upgrades.service \033[39;49;00m'

e[90;01m$ systemctl mask unattended-upgrades.service e[39;49;00m
+ systemctl mask unattended-upgrades.service
Unit unattended-upgrades.service does not exist, proceeding anyway.
Created symlink /etc/systemd/system/unattended-upgrades.service → /dev/null.
+ return 0
+ cond_redirect systemctl enable --now zram-config.service
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl enable --now zram-config.service \033[39;49;00m'

e[90;01m$ systemctl enable --now zram-config.service e[39;49;00m
+ systemctl enable --now zram-config.service
Created symlink /etc/systemd/system/multi-user.target.wants/zram-config.service → /etc/systemd/system/zram-config.service.
+ return 0
+ echo OK
OK
+ return 0
+ echo OK
OK


+ exim_setup
+ [[ -n 1 ]]
+ [[ -z '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2022-07-19_09:36:39_CEST [openHABian] Beginning Mail Transfer Agent setup... SKIPPED (no configuration provided)'
2022-07-19_09:36:39_CEST [openHABian] Beginning Mail Transfer Agent setup... SKIPPED (no configuration provided)
+ return 0
+ permissions_corrections
+ local gpioDir=/sys/devices/platform/soc
+ groups=('audio' 'bluetooth' 'dialout' 'gpio' 'tty')
+ local groups
+ openhabFolders=('/etc/openhab' '/var/lib/openhab' '/var/log/openhab' '/usr/share/openhab')
+ local openhabFolders
+ local openhabHome=/var/lib/openhab
+ local backupsFolder=/var/lib/openhab/backups
+ local retval=0
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:39_CEST [openHABian] Applying file permissions recommendations... '
2022-07-19_09:36:39_CEST [openHABian] Applying file permissions recommendations... + openhab_is_installed
+ openhab2_is_installed
++ dpkg -s openhab2
++ grep Status
++ cut '-d ' -f2
+ [[ '' == \i\n\s\t\a\l\l ]]
+ return 1
+ openhab3_is_installed
++ dpkg -s openhab
++ cut '-d ' -f2
++ grep Status
+ [[ '' == \i\n\s\t\a\l\l ]]
+ return 1
+ return 1
+ echo 'FAILED (please execute after openHAB is installed)'
FAILED (please execute after openHAB is installed)
+ return 1
+ setup_mirror_SD install
+ local src=/dev/mmcblk0
+ local srcSize
+ local dest
+ local destSize
+ local 'infoText1=DANGEROUS OPERATION, USE WITH PRECAUTION!\n\nThis will *copy* your system root from your SD card to a USB attached card writer device. Are you sure'
+ local 'infoText2=is an SD card writer device equipped with a dispensible SD card? Are you sure, this will destroy all data on that card and you want to proceed writing to this device?'
+ local minStorageSize=4000000000
+ local sdIncludesDir=/opt/openhabian/includes/SD
+ local serviceTargetDir=/etc/systemd/system
+ local 'sizeError=your destination SD card device does not have enough space'
+ local storageDir=/storage
+ local sDir=storage
+ local 'storageRemovalQuery=Do you also want to remove the storage mount for /storage?\nIf you do not but remove the physical device it is located on, you will have trouble every time you restart your system.\nRemember though it might also contain data you might want to keep such as your Amanda backup data. If /storage is not where your mount is, stop now and enter your mountpoint in /etc/openhabian.conf as the storagedir= parameter.'
+ local svcname
+ cond_redirect install -m 755 /opt/openhabian/includes/SD/set-partuuid /usr/local/sbin
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ install -m 755 /opt/openhabian/includes/SD/set-partuuid /usr/local/sbin \033[39;49;00m'

e[90;01m$ install -m 755 /opt/openhabian/includes/SD/set-partuuid /usr/local/sbin e[39;49;00m
+ install -m 755 /opt/openhabian/includes/SD/set-partuuid /usr/local/sbin
+ return 0
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:40_CEST [openHABian] Setting up automated SD mirroring and backup... '
2022-07-19_09:36:40_CEST [openHABian] Setting up automated SD mirroring and backup... + [[ -n 1 ]]
+ [[ -z '' ]]
+ echo 'SKIPPED (no configuration provided)'
SKIPPED (no configuration provided)
+ return 0
+ install_cleanup
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-07-19_09:36:40_CEST [openHABian] Cleaning up... '
2022-07-19_09:36:40_CEST [openHABian] Cleaning up... + cond_redirect systemctl -q daemon-reload
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl -q daemon-reload \033[39;49;00m'

e[90;01m$ systemctl -q daemon-reload e[39;49;00m
+ systemctl -q daemon-reload
+ return 0
+ cond_redirect apt-get clean
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get clean \033[39;49;00m'

e[90;01m$ apt-get clean e[39;49;00m
+ apt-get clean
+ return 0
+ cond_redirect apt-get autoremove --yes
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get autoremove --yes \033[39;49;00m'

e[90;01m$ apt-get autoremove --yes e[39;49;00m
+ apt-get autoremove --yes
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is installed
 libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u3) but 2.31-13+rpt2+rpi1+deb11u2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
+ return 100
+ echo FAILED
FAILED
+ return 1
+ cd /
+ rm -f /opt/openHABian-install-inprogress
+ touch /opt/openHABian-install-successful
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2022-07-19_09:36:45_CEST [openHABian] Execution of '\''openhabian-config unattended'\'' completed.'
2022-07-19_09:36:45_CEST [openHABian] Execution of 'openhabian-config unattended' completed.
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2022-07-19_09:36:45_CEST [openHABian] First time setup successfully finished. Rebooting your system!'
2022-07-19_09:36:45_CEST [openHABian] First time setup successfully finished. Rebooting your system!
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2022-07-19_09:36:45_CEST [openHABian] After rebooting the openHAB dashboard will be available at: http://openhabian:8080'
2022-07-19_09:36:45_CEST [openHABian] After rebooting the openHAB dashboard will be available at: http://openhabian:8080
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2022-07-19_09:36:45_CEST [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.'
2022-07-19_09:36:45_CEST [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.
+ sleep 12
++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash inst_done
+ sleep 12
++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash cleanup
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ reboot

sorry for the spam :frowning:

Well, if you carefully read the debug guide, it does:
You should be able to fix apt problems like you did then touch /opt/openHABian-install-failed and reboot, that should initiate an install run on top of the existing.

Oh well, that didn´t work out either. I gave up and installed openHAB manually now.