2021-10-30_11:29:58_UTC [openHABian] Starting the openHABian initial setup. 2021-10-30_11:29:58_UTC [openHABian] Storing configuration... OK 2021-10-30_11:30:00_UTC [openHABian] Enable maximum debugging output ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-10-30_11:30:00_UTC [openHABian] Starting webserver with installation log... ' 2021-10-30_11:30:00_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=633 + [[ -n 633 ]] + echo OK OK + defaultUserAndGroup=openhabian + userName=marino + groupName=marino + 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 ++ date +%F_%T_%Z + echo -n '2021-10-30_11:30:08_UTC [openHABian] Changing default username and password... ' 2021-10-30_11:30:08_UTC [openHABian] Changing default username and password... + [[ -v marino ]] + id pi + id marino + usermod -l marino pi + usermod -m -d /home/marino marino + groupmod -n marino pi + echo 'marino:user_pw' + chpasswd + echo OK OK + echo 'watch cat /boot/first-boot.log' + echo noipv4ll + [[ -z wifi_ssid ]] + grep -qs openHABian /etc/wpa_supplicant/wpa_supplicant.conf ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-10-30_11:30:08_UTC [openHABian] Setting up Wi-Fi connection... ' 2021-10-30_11:30:08_UTC [openHABian] Setting up Wi-Fi connection... + wifiCountry=DE + wifiSSID=wifi_ssid + wifiPassword=wifi_pw + grep -qs '^DE[[:space:]]' /usr/share/zoneinfo/zone.tab + wifiCountry=DE ++ wpa_passphrase wifi_ssid wifi_pw + wifiConfig='network={ ssid="wifi_ssid" #psk="wifi_pw" psk=wifi_psk }' + echo -e '# WiFi configuration generated by openHABian\ncountry=DE\nctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nupdate_config=1\n# Network configuration was created by wpa_passphrase to ensure correct handling of special characters\nnetwork={ ssid="wifi_ssid" #psk="wifi_pw" psk=wifi_psk \tkey_mgmt=WPA-PSK\n}' + sed -i 's|REGDOMAIN=.*$|REGDOMAIN=DE|g' /etc/default/crda ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-10-30_11:30:08_UTC [openHABian] Configuring network... ' 2021-10-30_11:30:08_UTC [openHABian] Configuring network... + grep -qs wlan0 /etc/network/interfaces + echo -e '\nallow-hotplug wlan0\niface wlan0 inet manual\nwpa-roam /etc/wpa_supplicant/wpa_supplicant.conf\niface default inet dhcp' + 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 + echo 'OK (rebooting)' OK (rebooting) + reboot 2021-10-30_11:30:23_UTC [openHABian] Starting the openHABian initial setup. 2021-10-30_11:30:23_UTC [openHABian] Storing configuration... OK 2021-10-30_11:30:23_UTC [openHABian] Enable maximum debugging output ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-10-30_11:30:23_UTC [openHABian] Starting webserver with installation log... ' 2021-10-30_11:30:23_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=669 + [[ -n 669 ]] + echo OK OK + defaultUserAndGroup=openhabian + userName=marino + groupName=marino + 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 ++ date +%F_%T_%Z + echo -n '2021-10-30_11:30:28_UTC [openHABian] Changing default username and password... ' 2021-10-30_11:30:28_UTC [openHABian] Changing default username and password... + [[ -v marino ]] + id pi + echo SKIPPED SKIPPED + echo 'watch cat /boot/first-boot.log' + echo noipv4ll + [[ -z wifi_ssid ]] + grep -qs openHABian /etc/wpa_supplicant/wpa_supplicant.conf + grep -qsE '^[[:space:]]*dtoverlay=(pi3-)?disable-wifi' /boot/config.txt ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-10-30_11:30:28_UTC [openHABian] Checking if WiFi is working... ' 2021-10-30_11:30:28_UTC [openHABian] Checking if WiFi is working... + iwlist wlan0 scan + grep -qs 'Interface doesn'\''t support scanning' + rfkill unblock wifi + ip link set wlan0 up + iwlist wlan0 scan + grep -qs 'Interface doesn'\''t support scanning' + echo OK OK + 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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 4 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 3 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 2 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 1 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 0 -le 0 ]] + [[ -z 1 ]] + return 0 + [[ enable == \e\n\a\b\l\e ]] ++ command -v comitup + [[ -x '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-10-30_11:30:38_UTC [openHABian] Installing comitup hotspot (will reboot after)... ' 2021-10-30_11:30:38_UTC [openHABian] Installing comitup hotspot (will reboot after)... + setup_hotspot install + [[ install == \i\n\s\t\a\l\l ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-10-30_11:30:38_UTC [openHABian] Installing Comitup hotspot... ' 2021-10-30_11:30:38_UTC [openHABian] Installing Comitup hotspot... + apt install --yes network-manager + echo 'deb http://davesteele.github.io/comitup/repo comitup main' + cond_redirect apt-get --quiet update + [[ -n 1 ]] + apt-get --quiet update + return 0 + cp /opt/openhabian/includes/comitup.conf /etc/comitup.conf + sed -i -e 's|ap_password:.*$|ap_password: openhabian|g' /etc/comitup.conf + cond_redirect apt install --yes -o Dpkg::Options::=--force-confdef comitup + [[ -n 1 ]] + apt install --yes -o Dpkg::Options::=--force-confdef comitup + return 0 + echo OK OK + echo 'denyinterfaces wlan0 eth0' + sed -i '3 i dhcp=internal' /etc/NetworkManager/NetworkManager.conf + install -m 644 includes/generic/100-disable-wifi-mac-randomization.conf /etc/NetworkManager/conf.d/ install: cannot stat 'includes/generic/100-disable-wifi-mac-randomization.conf': No such file or directory + cp /opt/openhabian/includes/interfaces /etc/network/ ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_12:37:55_UTC [openHABian] hotspot software installed. Rebooting your system to make it take effect!' 2021-12-02_12:37:55_UTC [openHABian] hotspot software installed. Rebooting your system to make it take effect! + reboot 2021-12-02_12:38:10_UTC [openHABian] Starting the openHABian initial setup. 2021-12-02_12:38:10_UTC [openHABian] Storing configuration... OK 2021-12-02_12:38:10_UTC [openHABian] Enable maximum debugging output ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:10_UTC [openHABian] Starting webserver with installation log... ' 2021-12-02_12:38:10_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= + [[ -n '' ]] + echo FAILED FAILED + defaultUserAndGroup=openhabian + userName=marino + groupName=marino + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:15_UTC [openHABian] Changing default username and password... ' 2021-12-02_12:38:15_UTC [openHABian] Changing default username and password... + [[ -v marino ]] + id pi + echo SKIPPED SKIPPED + echo 'watch cat /boot/first-boot.log' + echo noipv4ll + [[ -z wifi_ssid ]] + grep -qs openHABian /etc/wpa_supplicant/wpa_supplicant.conf + grep -qsE '^[[:space:]]*dtoverlay=(pi3-)?disable-wifi' /boot/config.txt ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:15_UTC [openHABian] Checking if WiFi is working... ' 2021-12-02_12:38:15_UTC [openHABian] Checking if WiFi is working... + iwlist wlan0 scan + grep -qs 'Interface doesn'\''t support scanning' + echo OK OK + 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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 4 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 3 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 2 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 1 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 0 -le 0 ]] + [[ -z 1 ]] + return 0 + [[ enable == \e\n\a\b\l\e ]] ++ command -v comitup + [[ -x /usr/sbin/comitup ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:24_UTC [openHABian] Ensuring network connectivity... ' 2021-12-02_12:38:24_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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 4 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 3 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 2 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 1 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 0 -le 0 ]] + [[ -z 1 ]] + return 0 + echo FAILED FAILED + grep -qs openHABian /etc/wpa_supplicant/wpa_supplicant.conf + iwconfig + grep -qs ESSID:off ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_12:38:30_UTC [openHABian] The public internet is not reachable. Please check your local network environment.' 2021-12-02_12:38:30_UTC [openHABian] The public internet is not reachable. Please check your local network environment. ++ grep ap_name: /etc/comitup.conf ++ cut '-d ' -f2 + echo ' We have launched a publicly accessible hotspot named openHABian-.' We have launched a publicly accessible hotspot named openHABian-. + echo ' Use a device to connect and go to http://raspberrypi.local or http://10.41.0.1/' Use a device to connect and go to http://raspberrypi.local or http://10.41.0.1/ + echo ' and select the WiFi network you want to connect your openHABian system to.' and select the WiFi network you want to connect your openHABian system to. + echo ' After about an hour, we will continue trying to get your system installed,' After about an hour, we will continue trying to get your system installed, + echo ' but without proper Internet connectivity this is not guaranteed to work.' but without proper Internet connectivity this is not guaranteed to work. ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:30_UTC [openHABian] Waiting for dpkg/apt to get ready... ' 2021-12-02_12:38:30_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=814 + apt-get update +++ tail --pid=814 -f /dev/null ++ eval '' + [[ '' -eq 0 ]] + return 0 + echo OK OK ++ dpkg -s raspberrypi-kernel ++ grep 'Version:[[:space:]]' + firmwareBefore='Version: 1:1.20211118-1' ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:36_UTC [openHABian] Updating repositories and upgrading installed packages... ' 2021-12-02_12:38:36_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.20211118-1 != \V\e\r\s\i\o\n\:\ \1\:\1\.\2\0\2\1\1\1\1\8\-\1 ]] + echo OK OK ++ command -v python3 + [[ -x /usr/bin/python3 ]] + bash /boot/webserver.bash reinsure_running ++ command -v git + [[ -x '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:39_UTC [openHABian] Installing git package... ' 2021-12-02_12:38:39_UTC [openHABian] Installing git package... + apt-get install --yes git + echo OK OK ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:51_UTC [openHABian] Updating myself from https://github.com/openhab/openhabian, stable branch... ' 2021-12-02_12:38:51_UTC [openHABian] Updating myself from https://github.com/openhab/openhabian, stable branch... +++ openhabian_update stable ++ eval '' + [[ '' -eq 0 ]] + echo OK OK + ln -sfn /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_12:38:51_UTC [openHABian] Starting execution of '\''openhabian-config unattended'\''... OK' 2021-12-02_12:38:51_UTC [openHABian] Starting execution of 'openhabian-config unattended'... OK + openhabian-config unattended 2021-12-02_12:38:51_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 ]] + [[ oh-test == *\ * ]] + echo hostname=oh-test + 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 ]] + [[ marino == *\ * ]] + echo username=marino + 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 ]] + [[ user_pw == *\ * ]] + echo 'userpw=user_pw' + 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 ]] + [[ de_de.UTF-8 == *\ * ]] + echo system_default_locale=de_de.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 ]] + [[ wifi_ssid == *\ * ]] + echo wifi_ssid=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 ]] + [[ wifi_pw == *\ * ]] + echo wifi_password=wifi_pw + 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 ]] + [[ DE == *\ * ]] + echo wifi_country=DE + 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 ]] + [[ stable == *\ * ]] + echo clonebranch=stable + 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 architecture mode =~ ^(#)?[a-zA-Z] ]] + echo '# Java architecture mode' + read -r line + [[ # Valid arguments: "Adopt11", "Zulu11-32", or "Zulu11-64" =~ ^(#)?[a-zA-Z] ]] + echo '# Valid arguments: "Adopt11", "Zulu11-32", or "Zulu11-64"' + read -r line + [[ java_opt=Zulu11-32 =~ ^(#)?[a-zA-Z] ]] + parsed=java_opt=Zulu11-32 + [[ java_opt=Zulu11-32 =~ ^#[a-zA-Z] ]] ++ echo java_opt=Zulu11-32 ++ cut -d= -f1 + param=java_opt + [[ -v java_opt ]] + [[ Zulu11-32 == *\ * ]] + echo java_opt=Zulu11-32 + 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 + set_cpu_speed + 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 + running_in_docker + [[ -n '' ]] + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + echo 'GOVERNOR="ondemand"' + echo ondemand + 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 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:52_UTC [openHABian] Updating Linux package information... ' 2021-12-02_12:38:52_UTC [openHABian] Updating Linux package information... + [[ -z '' ]] + apt_update + PID_APT=1798 + tail --pid=1798 -f /dev/null + apt-get update + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:56_UTC [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... ' 2021-12-02_12:38:56_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group marino + [[ ! -n marino:x:1000: ]] + id -u marino + source /etc/openhabian.conf ++ hostname=oh-test ++ username=marino ++ userpw='user_pw' ++ adminkeyurl= ++ timezone=Europe/Berlin ++ locales='en_US.UTF-8 de_DE.UTF-8' ++ system_default_locale=de_de.UTF-8 ++ wifi_ssid=wifi_ssid ++ wifi_password=wifi_pw ++ wifi_country=DE ++ ipv6=enable ++ repositoryurl=https://github.com/openhab/openhabian ++ clonebranch=stable ++ debugmode=maximum ++ framebuffer=enable ++ java_opt=Zulu11-32 ++ 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=3930860 + [[ -z 3930860 ]] + swap=7861720 + minFree=15723440 ++ df -hk / ++ awk '/dev/ { print $4 }' + free=11590964 + [[ 11590964 -ge 15723440 ]] + [[ 11590964 -ge 7861720 ]] + size=3930860 + (( size/=1024 )) ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:57_UTC [openHABian] Adjusting swap size to 3838 MB... ' 2021-12-02_12:38:57_UTC [openHABian] Adjusting swap size to 3838 MB... + cond_redirect dphys-swapfile swapoff + [[ -n '' ]] + echo -e '\n\033[90;01m$ dphys-swapfile swapoff \033[39;49;00m' $ dphys-swapfile swapoff  + dphys-swapfile swapoff + return 0 + cond_redirect sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3838|g' /etc/dphys-swapfile + [[ -n '' ]] + echo -e '\n\033[90;01m$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3838|g /etc/dphys-swapfile \033[39;49;00m' $ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3838|g /etc/dphys-swapfile  + sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3838|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' $ dphys-swapfile swapon  + dphys-swapfile swapon + return 0 + echo 'OK (reboot required)' OK (reboot required) + timezone_setting + [[ -n '' ]] + [[ -n Europe/Berlin ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_12:38:57_UTC [openHABian] Setting timezone based on openhabian.conf... ' 2021-12-02_12:38:57_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' $ timedatectl set-timezone Europe/Berlin  + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:38:57_CET [openHABian] Enabling time synchronization using NTP... ' 2021-12-02_13:38:57_CET [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' $ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/  + 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' $ timedatectl set-ntp true  + timedatectl set-ntp true + return 0 + echo OK OK + locale_setting + local syslocale + dpkg -s locales + [[ -n '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:38:57_CET [openHABian] Setting locale based on openhabian.conf... ' 2021-12-02_13:38:57_CET [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' $ locale-gen  + 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' $ dpkg-reconfigure --frontend=noninteractive locales  + dpkg-reconfigure --frontend=noninteractive locales 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 ++ grep '^[[:space:]]*LANG=' /etc/default/locale ++ sed 's|LANG=||g' + syslocale=en_GB.UTF-8 + cond_redirect update-locale LANG=de_de.UTF-8 LC_ALL=de_de.UTF-8 LC_CTYPE=de_de.UTF-8 LANGUAGE=de_de.UTF-8 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-locale LANG=de_de.UTF-8 LC_ALL=de_de.UTF-8 LC_CTYPE=de_de.UTF-8 LANGUAGE=de_de.UTF-8 \033[39;49;00m' $ update-locale LANG=de_de.UTF-8 LC_ALL=de_de.UTF-8 LC_CTYPE=de_de.UTF-8 LANGUAGE=de_de.UTF-8  + update-locale LANG=de_de.UTF-8 LC_ALL=de_de.UTF-8 LC_CTYPE=de_de.UTF-8 LANGUAGE=de_de.UTF-8 *** update-locale: Error: invalid locale settings: LC_ALL=de_de.UTF-8 LANG=de_de.UTF-8 LANGUAGE=de_de.UTF-8 LC_CTYPE=de_de.UTF-8 + return 255 + echo FAILED FAILED + return 1 + hostname_change + running_in_docker + [[ -n '' ]] + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + local newHostname + [[ -n '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:39:33_CET [openHABian] Setting hostname of the base system based on openhabian.conf... ' 2021-12-02_13:39:33_CET [openHABian] Setting hostname of the base system based on openhabian.conf... + newHostname=oh-test + cond_redirect hostnamectl set-hostname oh-test + [[ -n '' ]] + echo -e '\n\033[90;01m$ hostnamectl set-hostname oh-test \033[39;49;00m' $ hostnamectl set-hostname oh-test  + hostnamectl set-hostname oh-test + return 0 + sed -i 's|127.0.1.1.*$|127.0.1.1 oh-test|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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:39:33_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... ' 2021-12-02_13:39:33_CET [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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:39:33_CET [openHABian] Enabling Audio output... ' 2021-12-02_13:39:33_CET [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' $ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt  + sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt + return 0 + cond_redirect adduser marino audio + [[ -n '' ]] + echo -e '\n\033[90;01m$ adduser marino audio \033[39;49;00m' $ adduser marino audio  + adduser marino audio The user `marino' is already a member of `audio'. + return 0 + echo OK OK + basic_packages ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:39:33_CET [openHABian] Installing basic can'\''t-be-wrong packages (screen, vim, ...)... ' 2021-12-02_13:39:33_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... ++ command -v raspi-config + [[ -x /usr/bin/raspi-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' $ apt-get purge --yes raspi-config  + apt-get purge --yes raspi-config Reading package lists... Building dependency tree... Reading state information... The following package was automatically installed and is no longer required: triggerhappy Use 'apt autoremove' to remove it. The following packages will be REMOVED: raspi-config* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 132 kB disk space will be freed. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 43269 files and directories currently installed.) Removing raspi-config (20211124) ... (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 43260 files and directories currently installed.) Purging configuration files for raspi-config (20211124) ... + return 0 + cond_redirect apt-get install --yes screen vim nano mc vfu bash-completion coreutils htop curl wget multitail git util-linux bzip2 zip unzip xz-utils cpufrequtils lsb-release software-properties-common man-db whiptail acl usbutils dirmngr arping apt-utils + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get install --yes screen vim nano mc vfu bash-completion coreutils htop curl wget multitail git util-linux bzip2 zip unzip xz-utils cpufrequtils lsb-release software-properties-common man-db whiptail acl usbutils dirmngr arping apt-utils \033[39;49;00m' $ apt-get install --yes screen vim nano mc vfu bash-completion coreutils htop curl wget multitail git util-linux bzip2 zip unzip xz-utils cpufrequtils lsb-release software-properties-common man-db whiptail acl usbutils dirmngr arping apt-utils  + apt-get install --yes screen vim nano mc vfu bash-completion coreutils htop curl wget multitail git util-linux bzip2 zip unzip xz-utils cpufrequtils lsb-release software-properties-common man-db whiptail acl usbutils dirmngr arping apt-utils Reading package lists... Building dependency tree... Reading state information... apt-utils is already the newest version (2.2.4). bash-completion is already the newest version (1:2.11-2). bzip2 is already the newest version (1.0.8-4). bzip2 set to manually installed. coreutils is already the newest version (8.32-4). curl is already the newest version (7.74.0-1.3). dirmngr is already the newest version (2.2.27-2). git is already the newest version (1:2.30.2-1). htop is already the newest version (3.0.5-7). lsb-release is already the newest version (11.1.0+rpi1). lsb-release set to manually installed. man-db is already the newest version (2.9.4-2). nano is already the newest version (5.4-2). unzip is already the newest version (6.0-26). usbutils is already the newest version (1:013-3). util-linux is already the newest version (2.36.1-8). wget is already the newest version (1.21-1rpi1). wget set to manually installed. whiptail is already the newest version (0.52.21-4+b2). whiptail set to manually installed. xz-utils is already the newest version (5.2.5-2). xz-utils set to manually installed. The following package was automatically installed and is no longer required: triggerhappy Use 'apt autoremove' to remove it. The following additional packages will be installed: file gir1.2-packagekitglib-1.0 libappstream4 libcpufreq0 libglib2.0-bin libglib2.0-data libgpm2 libmagic-mgc libmagic1 libnet1 libpackagekit-glib2-18 libstemmer0d libutempter0 mailcap mc-data mime-support packagekit packagekit-tools python3-distro-info python3-pycurl python3-software-properties unattended-upgrades vim-runtime Suggested packages: gpm arj catdvi | texlive-binaries dbview djvulibre-bin epub-utils genisoimage gv imagemagick libaspell-dev links | w3m | lynx odt2txt poppler-utils python python-boto python-tz unar wimtools xpdf | pdf-viewer appstream libcurl4-gnutls-dev python-pycurl-doc python3-pycurl-dbg byobu | screenie | iselect bsd-mailx default-mta | mail-transport-agent needrestart powermgmt-base ctags vim-doc vim-scripts The following NEW packages will be installed: acl arping cpufrequtils file gir1.2-packagekitglib-1.0 libappstream4 libcpufreq0 libglib2.0-bin libglib2.0-data libgpm2 libmagic-mgc libmagic1 libnet1 libpackagekit-glib2-18 libstemmer0d libutempter0 mailcap mc mc-data mime-support multitail packagekit packagekit-tools python3-distro-info python3-pycurl python3-software-properties screen software-properties-common unattended-upgrades vfu vim vim-runtime zip 0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded. Need to get 46.9 kB/13.5 MB of archives. After this operation, 68.2 MB of additional disk space will be used. Err:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libcpufreq0 armhf 008-2 Temporary failure resolving 'raspbian.raspberrypi.org' Err:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf cpufrequtils armhf 008-2 Temporary failure resolving 'raspbian.raspberrypi.org' E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/c/cpufrequtils/libcpufreq0_008-2_armhf.deb Temporary failure resolving 'raspbian.raspberrypi.org' E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/c/cpufrequtils/cpufrequtils_008-2_armhf.deb Temporary failure resolving 'raspbian.raspberrypi.org' E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? + return 100 + echo FAILED FAILED + exit 1 ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:39:40_CET [openHABian] We tried our best to get your system installed, but this may not have worked properly.' 2021-12-02_13:39:40_CET [openHABian] We tried our best to get your system installed, but this may not have worked properly. + dpkg --configure -a ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:39:40_CET [openHABian] Execution of '\''openhabian-config unattended'\'' completed.' 2021-12-02_13:39:40_CET [openHABian] Execution of 'openhabian-config unattended' completed. ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:39:40_CET [openHABian] First time setup successfully finished. Rebooting your system!' 2021-12-02_13:39:40_CET [openHABian] First time setup successfully finished. Rebooting your system! ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:39:40_CET [openHABian] After rebooting the openHAB dashboard will be available at: http://oh-test:8080' 2021-12-02_13:39:40_CET [openHABian] After rebooting the openHAB dashboard will be available at: http://oh-test:8080 ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:39:40_CET [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.' 2021-12-02_13:39:40_CET [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 2021-12-02_13:40:29_CET [openHABian] Starting the openHABian initial setup. 2021-12-02_13:40:29_CET [openHABian] Storing configuration... OK 2021-12-02_13:40:38_CET [openHABian] Enable maximum debugging output ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:40:38_CET [openHABian] Starting webserver with installation log... ' 2021-12-02_13:40:38_CET [openHABian] Starting webserver with installation log... ++ command -v python3 + [[ -x /usr/bin/python3 ]] + bash /boot/webserver.bash start bash: /boot/webserver.bash: No such file or directory + sleep 5 ++ ps -ef ++ pgrep python3 + isWebRunning= + [[ -n '' ]] + echo FAILED FAILED + defaultUserAndGroup=openhabian + userName=marino + groupName=marino + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:40:48_CET [openHABian] Changing default username and password... ' 2021-12-02_13:40:48_CET [openHABian] Changing default username and password... + [[ -v marino ]] + id pi + echo SKIPPED SKIPPED + echo 'watch cat /boot/first-boot.log' + echo noipv4ll + [[ -z wifi_ssid ]] + grep -qs openHABian /etc/wpa_supplicant/wpa_supplicant.conf + grep -qsE '^[[:space:]]*dtoverlay=(pi3-)?disable-wifi' /boot/config.txt ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:40:52_CET [openHABian] Checking if WiFi is working... ' 2021-12-02_13:40:52_CET [openHABian] Checking if WiFi is working... + iwlist wlan0 scan + grep -qs 'Interface doesn'\''t support scanning' + echo OK OK + 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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 4 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 3 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 2 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 1 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 0 -le 0 ]] + [[ -z 1 ]] + return 0 + [[ enable == \e\n\a\b\l\e ]] ++ command -v comitup + [[ -x /usr/sbin/comitup ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:41:14_CET [openHABian] Ensuring network connectivity... ' 2021-12-02_13:41:14_CET [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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 4 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 3 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 2 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 1 -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 ++ curl --silent --head http://www.openhab.org/docs ++ grep -qs 'HTTP/1.1 200 OK' + out=1 + [[ 1 -eq 0 ]] + sleep 1 + [[ -z 1 ]] + (( attempts-=1 )) + [[ 0 -le 0 ]] + [[ -z 1 ]] + return 0 + echo FAILED FAILED + grep -qs openHABian /etc/wpa_supplicant/wpa_supplicant.conf + iwconfig + grep -qs ESSID:off ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:41:20_CET [openHABian] I was not able to connect to the configured Wi-Fi. Please check your signal quality. Reachable Wi-Fi networks are:' 2021-12-02_13:41:20_CET [openHABian] I was not able to connect to the configured Wi-Fi. Please check your signal quality. Reachable Wi-Fi networks are: + iwlist wlan0 scanning + grep ESSID + sed 's/^\s*ESSID:/\t- /g' - "wifi_ssid" - "Vodafone Homespot" - "Vodafone Hotspot" - "wifi_ssid" - "Vodafone-CF5C" - "Vodafone Homespot" - "Vodafone Hotspot" - "wifi_ssid" - "wifi_ssid" - "Telekom_FON" - "" ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:41:23_CET [openHABian] Please try again with your correct SSID and password. The following Wi-Fi configuration was used:' 2021-12-02_13:41:23_CET [openHABian] Please try again with your correct SSID and password. The following Wi-Fi configuration was used: + cat /etc/wpa_supplicant/wpa_supplicant.conf # WiFi configuration generated by openHABian country=DE ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 # Network configuration was created by wpa_passphrase to ensure correct handling of special characters network={ ssid="wifi_ssid" #psk="wifi_pw" psk=wifi_psk key_mgmt=WPA-PSK } + rm -f /etc/wpa_supplicant/wpa_supplicant.conf ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:41:23_CET [openHABian] The public internet is not reachable. Please check your local network environment.' 2021-12-02_13:41:23_CET [openHABian] The public internet is not reachable. Please check your local network environment. ++ grep ap_name: /etc/comitup.conf ++ cut '-d ' -f2 + echo ' We have launched a publicly accessible hotspot named openHABian-.' We have launched a publicly accessible hotspot named openHABian-. + echo ' Use a device to connect and go to http://raspberrypi.local or http://10.41.0.1/' Use a device to connect and go to http://raspberrypi.local or http://10.41.0.1/ + echo ' and select the WiFi network you want to connect your openHABian system to.' and select the WiFi network you want to connect your openHABian system to. + echo ' After about an hour, we will continue trying to get your system installed,' After about an hour, we will continue trying to get your system installed, + echo ' but without proper Internet connectivity this is not guaranteed to work.' but without proper Internet connectivity this is not guaranteed to work. ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:41:24_CET [openHABian] Waiting for dpkg/apt to get ready... ' 2021-12-02_13:41:24_CET [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=647 + apt-get update +++ tail --pid=647 -f /dev/null ++ eval '' + [[ '' -eq 0 ]] + return 0 + echo OK OK ++ dpkg -s raspberrypi-kernel ++ grep 'Version:[[:space:]]' + firmwareBefore='Version: 1:1.20211118-1' ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:42:32_CET [openHABian] Updating repositories and upgrading installed packages... ' 2021-12-02_13:42:32_CET [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.20211118-1 != \V\e\r\s\i\o\n\:\ \1\:\1\.\2\0\2\1\1\1\1\8\-\1 ]] + echo OK OK ++ command -v python3 + [[ -x /usr/bin/python3 ]] + bash /boot/webserver.bash reinsure_running bash: /boot/webserver.bash: No such file or directory ++ command -v git + [[ -x /usr/bin/git ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:42:38_CET [openHABian] Updating myself from https://github.com/openhab/openhabian, stable branch... ' 2021-12-02_13:42:38_CET [openHABian] Updating myself from https://github.com/openhab/openhabian, stable branch... +++ openhabian_update stable ++ eval '' + [[ '' -eq 0 ]] + echo OK OK + ln -sfn /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:42:39_CET [openHABian] Starting execution of '\''openhabian-config unattended'\''... OK' 2021-12-02_13:42:39_CET [openHABian] Starting execution of 'openhabian-config unattended'... OK + openhabian-config unattended 2021-12-02_13:42:39_CET [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 ]] + [[ oh-test == *\ * ]] + echo hostname=oh-test + 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 ]] + [[ marino == *\ * ]] + echo username=marino + 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 ]] + [[ user_pw == *\ * ]] + echo 'userpw=user_pw' + 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 ]] + [[ de_de.UTF-8 == *\ * ]] + echo system_default_locale=de_de.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 ]] + [[ wifi_ssid == *\ * ]] + echo wifi_ssid=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 ]] + [[ wifi_pw == *\ * ]] + echo wifi_password=wifi_pw + 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 ]] + [[ DE == *\ * ]] + echo wifi_country=DE + 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 ]] + [[ stable == *\ * ]] + echo clonebranch=stable + 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 architecture mode =~ ^(#)?[a-zA-Z] ]] + echo '# Java architecture mode' + read -r line + [[ # Valid arguments: "Adopt11", "Zulu11-32", or "Zulu11-64" =~ ^(#)?[a-zA-Z] ]] + echo '# Valid arguments: "Adopt11", "Zulu11-32", or "Zulu11-64"' + read -r line + [[ java_opt=Zulu11-32 =~ ^(#)?[a-zA-Z] ]] + parsed=java_opt=Zulu11-32 + [[ java_opt=Zulu11-32 =~ ^#[a-zA-Z] ]] ++ echo java_opt=Zulu11-32 ++ cut -d= -f1 + param=java_opt + [[ -v java_opt ]] + [[ Zulu11-32 == *\ * ]] + echo java_opt=Zulu11-32 + 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 + set_cpu_speed + 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 + running_in_docker + [[ -n '' ]] + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + echo 'GOVERNOR="ondemand"' + echo ondemand + 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 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:42:39_CET [openHABian] Updating Linux package information... ' 2021-12-02_13:42:39_CET [openHABian] Updating Linux package information... + [[ -z '' ]] + apt_update + PID_APT=904 + tail --pid=904 -f /dev/null + apt-get update + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:42:43_CET [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... ' 2021-12-02_13:42:43_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group marino + [[ ! -n marino:x:1000: ]] + id -u marino + source /etc/openhabian.conf ++ hostname=oh-test ++ username=marino ++ userpw='user_pw' ++ adminkeyurl= ++ timezone=Europe/Berlin ++ locales='en_US.UTF-8 de_DE.UTF-8' ++ system_default_locale=de_de.UTF-8 ++ wifi_ssid=wifi_ssid ++ wifi_password=wifi_pw ++ wifi_country=DE ++ ipv6=enable ++ repositoryurl=https://github.com/openhab/openhabian ++ clonebranch=stable ++ debugmode=maximum ++ framebuffer=enable ++ java_opt=Zulu11-32 ++ 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=3982104 + [[ -z 3982104 ]] + swap=7964208 + minFree=15928416 ++ df -hk / ++ awk '/dev/ { print $4 }' + free=9587416 + [[ 9587416 -ge 15928416 ]] + [[ 9587416 -ge 7964208 ]] + size=3982104 + (( size/=1024 )) ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:42:45_CET [openHABian] Adjusting swap size to 3888 MB... ' 2021-12-02_13:42:45_CET [openHABian] Adjusting swap size to 3888 MB... + cond_redirect dphys-swapfile swapoff + [[ -n '' ]] + echo -e '\n\033[90;01m$ dphys-swapfile swapoff \033[39;49;00m' $ dphys-swapfile swapoff  + dphys-swapfile swapoff + return 0 + cond_redirect sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3888|g' /etc/dphys-swapfile + [[ -n '' ]] + echo -e '\n\033[90;01m$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3888|g /etc/dphys-swapfile \033[39;49;00m' $ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3888|g /etc/dphys-swapfile  + sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3888|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' $ dphys-swapfile swapon  + dphys-swapfile swapon + return 0 + echo 'OK (reboot required)' OK (reboot required) + timezone_setting + [[ -n '' ]] + [[ -n Europe/Berlin ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:42:45_CET [openHABian] Setting timezone based on openhabian.conf... ' 2021-12-02_13:42:45_CET [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' $ timedatectl set-timezone Europe/Berlin  + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:42:46_CET [openHABian] Enabling time synchronization using NTP... ' 2021-12-02_13:42:46_CET [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' $ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/  + 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' $ timedatectl set-ntp true  + timedatectl set-ntp true + return 0 + echo OK OK + locale_setting + local syslocale + dpkg -s locales + [[ -n '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:42:46_CET [openHABian] Setting locale based on openhabian.conf... ' 2021-12-02_13:42:46_CET [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' $ locale-gen  + 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' $ dpkg-reconfigure --frontend=noninteractive locales  + dpkg-reconfigure --frontend=noninteractive locales 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 ++ grep '^[[:space:]]*LANG=' /etc/default/locale ++ sed 's|LANG=||g' + syslocale=en_GB.UTF-8 + cond_redirect update-locale LANG=de_de.UTF-8 LC_ALL=de_de.UTF-8 LC_CTYPE=de_de.UTF-8 LANGUAGE=de_de.UTF-8 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-locale LANG=de_de.UTF-8 LC_ALL=de_de.UTF-8 LC_CTYPE=de_de.UTF-8 LANGUAGE=de_de.UTF-8 \033[39;49;00m' $ update-locale LANG=de_de.UTF-8 LC_ALL=de_de.UTF-8 LC_CTYPE=de_de.UTF-8 LANGUAGE=de_de.UTF-8  + update-locale LANG=de_de.UTF-8 LC_ALL=de_de.UTF-8 LC_CTYPE=de_de.UTF-8 LANGUAGE=de_de.UTF-8 *** update-locale: Error: invalid locale settings: LC_CTYPE=de_de.UTF-8 LC_ALL=de_de.UTF-8 LANGUAGE=de_de.UTF-8 LANG=de_de.UTF-8 + return 255 + echo FAILED FAILED + return 1 + hostname_change + running_in_docker + [[ -n '' ]] + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + local newHostname + [[ -n '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:43:23_CET [openHABian] Setting hostname of the base system based on openhabian.conf... ' 2021-12-02_13:43:23_CET [openHABian] Setting hostname of the base system based on openhabian.conf... + newHostname=oh-test + cond_redirect hostnamectl set-hostname oh-test + [[ -n '' ]] + echo -e '\n\033[90;01m$ hostnamectl set-hostname oh-test \033[39;49;00m' $ hostnamectl set-hostname oh-test  + hostnamectl set-hostname oh-test + return 0 + sed -i 's|127.0.1.1.*$|127.0.1.1 oh-test|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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:43:23_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... ' 2021-12-02_13:43:23_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... + grep -qs '^[[:space:]]*gpu_mem' /boot/config.txt + cond_redirect sed -i 's|gpu_mem=.*$|gpu_mem=16|g' /boot/config.txt + [[ -n '' ]] + echo -e '\n\033[90;01m$ sed -i s|gpu_mem=.*$|gpu_mem=16|g /boot/config.txt \033[39;49;00m' $ sed -i s|gpu_mem=.*$|gpu_mem=16|g /boot/config.txt  + sed -i 's|gpu_mem=.*$|gpu_mem=16|g' /boot/config.txt + return 0 + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:43:23_CET [openHABian] Enabling Audio output... ' 2021-12-02_13:43:23_CET [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' $ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt  + sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt + return 0 + cond_redirect adduser marino audio + [[ -n '' ]] + echo -e '\n\033[90;01m$ adduser marino audio \033[39;49;00m' $ adduser marino audio  + adduser marino audio The user `marino' is already a member of `audio'. + return 0 + echo OK OK + basic_packages ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:43:23_CET [openHABian] Installing basic can'\''t-be-wrong packages (screen, vim, ...)... ' 2021-12-02_13:43:23_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... ++ command -v raspi-config + [[ -x '' ]] + cond_redirect apt-get install --yes screen vim nano mc vfu bash-completion coreutils htop curl wget multitail git util-linux bzip2 zip unzip xz-utils cpufrequtils lsb-release software-properties-common man-db whiptail acl usbutils dirmngr arping apt-utils + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get install --yes screen vim nano mc vfu bash-completion coreutils htop curl wget multitail git util-linux bzip2 zip unzip xz-utils cpufrequtils lsb-release software-properties-common man-db whiptail acl usbutils dirmngr arping apt-utils \033[39;49;00m' $ apt-get install --yes screen vim nano mc vfu bash-completion coreutils htop curl wget multitail git util-linux bzip2 zip unzip xz-utils cpufrequtils lsb-release software-properties-common man-db whiptail acl usbutils dirmngr arping apt-utils  + apt-get install --yes screen vim nano mc vfu bash-completion coreutils htop curl wget multitail git util-linux bzip2 zip unzip xz-utils cpufrequtils lsb-release software-properties-common man-db whiptail acl usbutils dirmngr arping apt-utils Reading package lists... Building dependency tree... Reading state information... apt-utils is already the newest version (2.2.4). bash-completion is already the newest version (1:2.11-2). bzip2 is already the newest version (1.0.8-4). bzip2 set to manually installed. coreutils is already the newest version (8.32-4). curl is already the newest version (7.74.0-1.3). dirmngr is already the newest version (2.2.27-2). git is already the newest version (1:2.30.2-1). htop is already the newest version (3.0.5-7). lsb-release is already the newest version (11.1.0+rpi1). lsb-release set to manually installed. man-db is already the newest version (2.9.4-2). nano is already the newest version (5.4-2). unzip is already the newest version (6.0-26). usbutils is already the newest version (1:013-3). util-linux is already the newest version (2.36.1-8). wget is already the newest version (1.21-1rpi1). wget set to manually installed. whiptail is already the newest version (0.52.21-4+b2). whiptail set to manually installed. xz-utils is already the newest version (5.2.5-2). xz-utils set to manually installed. The following package was automatically installed and is no longer required: triggerhappy Use 'apt autoremove' to remove it. The following additional packages will be installed: file gir1.2-packagekitglib-1.0 libappstream4 libcpufreq0 libglib2.0-bin libglib2.0-data libgpm2 libmagic-mgc libmagic1 libnet1 libpackagekit-glib2-18 libstemmer0d libutempter0 mailcap mc-data mime-support packagekit packagekit-tools python3-distro-info python3-pycurl python3-software-properties unattended-upgrades vim-runtime Suggested packages: gpm arj catdvi | texlive-binaries dbview djvulibre-bin epub-utils genisoimage gv imagemagick libaspell-dev links | w3m | lynx odt2txt poppler-utils python python-boto python-tz unar wimtools xpdf | pdf-viewer appstream libcurl4-gnutls-dev python-pycurl-doc python3-pycurl-dbg byobu | screenie | iselect bsd-mailx default-mta | mail-transport-agent needrestart powermgmt-base ctags vim-doc vim-scripts The following NEW packages will be installed: acl arping cpufrequtils file gir1.2-packagekitglib-1.0 libappstream4 libcpufreq0 libglib2.0-bin libglib2.0-data libgpm2 libmagic-mgc libmagic1 libnet1 libpackagekit-glib2-18 libstemmer0d libutempter0 mailcap mc mc-data mime-support multitail packagekit packagekit-tools python3-distro-info python3-pycurl python3-software-properties screen software-properties-common unattended-upgrades vfu vim vim-runtime zip 0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded. Need to get 46.9 kB/13.5 MB of archives. After this operation, 68.2 MB of additional disk space will be used. Err:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libcpufreq0 armhf 008-2 Temporary failure resolving 'raspbian.raspberrypi.org' Err:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf cpufrequtils armhf 008-2 Temporary failure resolving 'raspbian.raspberrypi.org' E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/c/cpufrequtils/libcpufreq0_008-2_armhf.deb Temporary failure resolving 'raspbian.raspberrypi.org' E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/c/cpufrequtils/cpufrequtils_008-2_armhf.deb Temporary failure resolving 'raspbian.raspberrypi.org' E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? + return 100 + echo FAILED FAILED + exit 1 ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:43:25_CET [openHABian] We tried our best to get your system installed, but this may not have worked properly.' 2021-12-02_13:43:25_CET [openHABian] We tried our best to get your system installed, but this may not have worked properly. + dpkg --configure -a ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:43:25_CET [openHABian] Execution of '\''openhabian-config unattended'\'' completed.' 2021-12-02_13:43:25_CET [openHABian] Execution of 'openhabian-config unattended' completed. ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:43:25_CET [openHABian] First time setup successfully finished. Rebooting your system!' 2021-12-02_13:43:25_CET [openHABian] First time setup successfully finished. Rebooting your system! ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:43:25_CET [openHABian] After rebooting the openHAB dashboard will be available at: http://oh-test:8080' 2021-12-02_13:43:25_CET [openHABian] After rebooting the openHAB dashboard will be available at: http://oh-test:8080 ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:43:25_CET [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.' 2021-12-02_13:43:25_CET [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 bash: /boot/webserver.bash: No such file or directory + sleep 12 ++ command -v python3 + [[ -x /usr/bin/python3 ]] + bash /boot/webserver.bash cleanup bash: /boot/webserver.bash: No such file or directory + running_in_docker + [[ -n '' ]] + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + reboot 2021-12-02_13:44:05_CET [openHABian] Starting the openHABian initial setup. 2021-12-02_13:44:05_CET [openHABian] Storing configuration... OK 2021-12-02_13:44:05_CET [openHABian] Enable maximum debugging output ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:44:05_CET [openHABian] Starting webserver with installation log... ' 2021-12-02_13:44:05_CET [openHABian] Starting webserver with installation log... ++ command -v python3 + [[ -x /usr/bin/python3 ]] + bash /boot/webserver.bash start bash: /boot/webserver.bash: No such file or directory + sleep 5 ++ ps -ef ++ pgrep python3 + isWebRunning= + [[ -n '' ]] + echo FAILED FAILED + defaultUserAndGroup=openhabian + userName=marino + groupName=marino + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:44:10_CET [openHABian] Changing default username and password... ' 2021-12-02_13:44:10_CET [openHABian] Changing default username and password... + [[ -v marino ]] + id pi + echo SKIPPED SKIPPED + echo 'watch cat /boot/first-boot.log' + echo noipv4ll + [[ -z wifi_ssid ]] + grep -qs openHABian /etc/wpa_supplicant/wpa_supplicant.conf ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:44:10_CET [openHABian] Setting up Wi-Fi connection... ' 2021-12-02_13:44:10_CET [openHABian] Setting up Wi-Fi connection... + wifiCountry=DE + wifiSSID=wifi_ssid + wifiPassword=wifi_pw + grep -qs '^DE[[:space:]]' /usr/share/zoneinfo/zone.tab + wifiCountry=DE ++ wpa_passphrase wifi_ssid wifi_pw + wifiConfig='network={ ssid="wifi_ssid" #psk="wifi_pw" psk=wifi_psk }' + echo -e '# WiFi configuration generated by openHABian\ncountry=DE\nctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nupdate_config=1\n# Network configuration was created by wpa_passphrase to ensure correct handling of special characters\nnetwork={ ssid="wifi_ssid" #psk="wifi_pw" psk=wifi_psk \tkey_mgmt=WPA-PSK\n}' + sed -i 's|REGDOMAIN=.*$|REGDOMAIN=DE|g' /etc/default/crda ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:44:10_CET [openHABian] Configuring network... ' 2021-12-02_13:44:10_CET [openHABian] Configuring network... + grep -qs wlan0 /etc/network/interfaces + echo -e '\nallow-hotplug wlan0\niface wlan0 inet manual\nwpa-roam /etc/wpa_supplicant/wpa_supplicant.conf\niface default inet dhcp' + 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 + echo 'OK (rebooting)' OK (rebooting) + reboot 2021-12-02_13:46:59_CET [openHABian] Starting the openHABian initial setup. 2021-12-02_13:46:59_CET [openHABian] Storing configuration... OK 2021-12-02_13:46:59_CET [openHABian] Enable maximum debugging output ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:46:59_CET [openHABian] Starting webserver with installation log... ' 2021-12-02_13:46:59_CET [openHABian] Starting webserver with installation log... ++ command -v python3 + [[ -x /usr/bin/python3 ]] + bash /boot/webserver.bash start bash: /boot/webserver.bash: No such file or directory + sleep 5 ++ ps -ef ++ pgrep python3 + isWebRunning= + [[ -n '' ]] + echo FAILED FAILED + defaultUserAndGroup=openhabian + userName=marino + groupName=marino + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:04_CET [openHABian] Changing default username and password... ' 2021-12-02_13:47:04_CET [openHABian] Changing default username and password... + [[ -v marino ]] + id pi + echo SKIPPED SKIPPED + echo 'watch cat /boot/first-boot.log' + echo noipv4ll + [[ -z wifi_ssid ]] + grep -qs openHABian /etc/wpa_supplicant/wpa_supplicant.conf + grep -qsE '^[[:space:]]*dtoverlay=(pi3-)?disable-wifi' /boot/config.txt ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:04_CET [openHABian] Checking if WiFi is working... ' 2021-12-02_13:47:04_CET [openHABian] Checking if WiFi is working... + iwlist wlan0 scan + grep -qs 'Interface doesn'\''t support scanning' + echo OK OK + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:08_CET [openHABian] Ensuring network connectivity... ' 2021-12-02_13:47:08_CET [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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:08_CET [openHABian] Waiting for dpkg/apt to get ready... ' 2021-12-02_13:47:08_CET [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=764 + apt-get update +++ tail --pid=764 -f /dev/null ++ eval '' + [[ '' -eq 0 ]] + return 0 + echo OK OK ++ dpkg -s raspberrypi-kernel ++ grep 'Version:[[:space:]]' + firmwareBefore='Version: 1:1.20211118-1' ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:22_CET [openHABian] Updating repositories and upgrading installed packages... ' 2021-12-02_13:47:22_CET [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.20211118-1 != \V\e\r\s\i\o\n\:\ \1\:\1\.\2\0\2\1\1\1\1\8\-\1 ]] + echo OK OK ++ command -v python3 + [[ -x /usr/bin/python3 ]] + bash /boot/webserver.bash reinsure_running bash: /boot/webserver.bash: No such file or directory ++ command -v git + [[ -x /usr/bin/git ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:28_CET [openHABian] Updating myself from https://github.com/openhab/openhabian, stable branch... ' 2021-12-02_13:47:28_CET [openHABian] Updating myself from https://github.com/openhab/openhabian, stable branch... +++ openhabian_update stable ++ eval '' + [[ '' -eq 0 ]] + echo OK OK + ln -sfn /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:47:32_CET [openHABian] Starting execution of '\''openhabian-config unattended'\''... OK' 2021-12-02_13:47:32_CET [openHABian] Starting execution of 'openhabian-config unattended'... OK + openhabian-config unattended 2021-12-02_13:47:32_CET [openHABian] Checking for root privileges... OK + export UNATTENDED MIGRATION 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 config=/etc/openhabian.conf + local referenceConfig=/opt/openhabian/openhabian.conf.dist + cp /etc/openhabian.conf /etc/openhabian.conf.BAK + cp /dev/null /etc/openhabian.conf + read -r line + [[ # Modify your openHABian settings =~ ^# ]] + echo '# Modify your openHABian settings' + read -r line + [[ # Handle with care, only touch if you need to!! =~ ^# ]] + echo '# Handle with care, only touch if you need to!!' + read -r line + [[ # This file will only be used on unattended initial install. =~ ^# ]] + 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. =~ ^# ]] + echo '# If you want to change anything after unattended install completed, use menu in openhabian-config.' + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # Hostname to set this one to =~ ^# ]] + echo '# Hostname to set this one to' + read -r line + [[ hostname=openhabian =~ ^# ]] + [[ -z hostname=openhabian ]] ++ echo hostname=openhabian ++ cut -d= -f1 + param=hostname + [[ -z x ]] + [[ oh-test == *\ * ]] + echo hostname=oh-test + read -r line + [[ # if it exists, the default user (with its working environment) will be renamed to this username given here ... =~ ^# ]] + echo '# if it exists, the default user (with its working environment) will be renamed to this username given here ...' + read -r line + [[ username=openhabian =~ ^# ]] + [[ -z username=openhabian ]] ++ echo username=openhabian ++ cut -d= -f1 + param=username + [[ -z x ]] + [[ marino == *\ * ]] + echo username=marino + read -r line + [[ # and given this password. The password will be removed from this file after completion for security reasons. =~ ^# ]] + echo '# and given this password. The password will be removed from this file after completion for security reasons.' + read -r line + [[ userpw=openhabian =~ ^# ]] + [[ -z userpw=openhabian ]] ++ echo userpw=openhabian ++ cut -d= -f1 + param=userpw + [[ -z x ]] + [[ user_pw == *\ * ]] + echo 'userpw=user_pw' + read -r line + [[ # set this to download a SSH key and authorize the owner to login as the admin user =~ ^# ]] + echo '# set this to download a SSH key and authorize the owner to login as the admin user' + read -r line + [[ #adminkeyurl=https://github.com/openhab/openhabian/adminkey.pub =~ ^# ]] + echo '#adminkeyurl=https://github.com/openhab/openhabian/adminkey.pub' + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # Language and timezone. See Debian documentation for valid values. =~ ^# ]] + echo '# Language and timezone. See Debian documentation for valid values.' + read -r line + [[ timezone=Europe/Berlin =~ ^# ]] + [[ -z timezone=Europe/Berlin ]] ++ echo timezone=Europe/Berlin ++ cut -d= -f1 + param=timezone + [[ -z x ]] + [[ Europe/Berlin == *\ * ]] + echo timezone=Europe/Berlin + read -r line + [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^# ]] + [[ -z locales="en_US.UTF-8 de_DE.UTF-8" ]] ++ echo 'locales="en_US.UTF-8 de_DE.UTF-8"' ++ cut -d= -f1 + param=locales + [[ -z x ]] + [[ 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" =~ ^# ]] + [[ -z system_default_locale="en_US.UTF-8" ]] ++ echo 'system_default_locale="en_US.UTF-8"' ++ cut -d= -f1 + param=system_default_locale + [[ -z x ]] + [[ de_de.UTF-8 == *\ * ]] + echo system_default_locale=de_de.UTF-8 + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # WiFi settings. An ethernet connection is recommended. =~ ^# ]] + 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 =~ ^# ]] + 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. =~ ^# ]] + 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 =~ ^# ]] + 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. =~ ^# ]] + echo '# have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works.' + read -r line + [[ # ATTENTION: you need to escape these special characters: $, `, ", \, (newline) =~ ^# ]] + echo '# ATTENTION: you need to escape these special characters: $, `, ", \, (newline)' + read -r line + [[ # 'Escaping' means to put an additional \ in front of that character =~ ^# ]] + echo '# '\''Escaping'\'' means to put an additional \ in front of that character' + read -r line + [[ wifi_ssid="" =~ ^# ]] + [[ -z wifi_ssid="" ]] ++ echo 'wifi_ssid=""' ++ cut -d= -f1 + param=wifi_ssid + [[ -z x ]] + [[ wifi_ssid == *\ * ]] + echo wifi_ssid=wifi_ssid + read -r line + [[ wifi_psk="" =~ ^# ]] + [[ -z wifi_psk="" ]] ++ echo 'wifi_psk=""' ++ cut -d= -f1 + param=wifi_psk + [[ -z '' ]] + echo 'wifi_psk=""' + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # Wi-Fi setting. Select a two-letter country code suitable for your location =~ ^# ]] + echo '# Wi-Fi setting. Select a two-letter country code suitable for your location' + read -r line + [[ # E.g. US (default), DE, AU, NZ... =~ ^# ]] + echo '# E.g. US (default), DE, AU, NZ...' + read -r line + [[ # You may infringe on local legislature otherwise =~ ^# ]] + 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 =~ ^# ]] + echo '# See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab' + read -r line + [[ wifi_country="" =~ ^# ]] + [[ -z wifi_country="" ]] ++ echo 'wifi_country=""' ++ cut -d= -f1 + param=wifi_country + [[ -z x ]] + [[ DE == *\ * ]] + echo wifi_country=DE + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # Eventually disable all IPv6 e.g. on installation problems =~ ^# ]] + echo '# Eventually disable all IPv6 e.g. on installation problems' + read -r line + [[ # values: "enable", "disable" =~ ^# ]] + echo '# values: "enable", "disable"' + read -r line + [[ ipv6=enable =~ ^# ]] + [[ -z ipv6=enable ]] ++ echo ipv6=enable ++ cut -d= -f1 + param=ipv6 + [[ -z x ]] + [[ enable == *\ * ]] + echo ipv6=enable + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # repo and branch to clone from =~ ^# ]] + echo '# repo and branch to clone from' + read -r line + [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^# ]] + [[ -z repositoryurl=https://github.com/openhab/openhabian.git ]] ++ echo repositoryurl=https://github.com/openhab/openhabian.git ++ cut -d= -f1 + param=repositoryurl + [[ -z x ]] + [[ https://github.com/openhab/openhabian == *\ * ]] + echo repositoryurl=https://github.com/openhab/openhabian + read -r line + [[ clonebranch=stable =~ ^# ]] + [[ -z clonebranch=stable ]] ++ echo clonebranch=stable ++ cut -d= -f1 + param=clonebranch + [[ -z x ]] + [[ stable == *\ * ]] + echo clonebranch=stable + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # debug verbosity mode =~ ^# ]] + echo '# debug verbosity mode' + read -r line + [[ # off, on (verbose output in log) or maximum (show every command) =~ ^# ]] + echo '# off, on (verbose output in log) or maximum (show every command)' + read -r line + [[ debugmode=off =~ ^# ]] + [[ -z debugmode=off ]] ++ echo debugmode=off ++ cut -d= -f1 + param=debugmode + [[ -z x ]] + [[ maximum == *\ * ]] + echo debugmode=maximum + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # fake hardware =~ ^# ]] + echo '# fake hardware' + read -r line + [[ # force treating your box as if it was a ... =~ ^# ]] + 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 =~ ^# ]] + echo '# pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w' + read -r line + [[ #hw=pi4 =~ ^# ]] + echo '#hw=pi4' + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # Hardware architecture =~ ^# ]] + echo '# Hardware architecture' + read -r line + [[ # x86_64, amd64, armv6l, armv7l, aarch64, arm64 =~ ^# ]] + echo '# x86_64, amd64, armv6l, armv7l, aarch64, arm64' + read -r line + [[ #hwarch=armv7l =~ ^# ]] + echo '#hwarch=armv7l' + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # OS distribution/release =~ ^# ]] + echo '# OS distribution/release' + read -r line + [[ # Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bionic, focal =~ ^# ]] + echo '# Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bionic, focal' + read -r line + [[ #osrelease=buster =~ ^# ]] + echo '#osrelease=buster' + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # Java architecture mode =~ ^# ]] + echo '# Java architecture mode' + read -r line + [[ # Valid arguments: "Adopt11", "Zulu8-32", "Zulu8-64", "Zulu11-32", or "Zulu11-64" =~ ^# ]] + echo '# Valid arguments: "Adopt11", "Zulu8-32", "Zulu8-64", "Zulu11-32", or "Zulu11-64"' + read -r line + [[ java_opt=Zulu8-32 =~ ^# ]] + [[ -z java_opt=Zulu8-32 ]] ++ echo java_opt=Zulu8-32 ++ cut -d= -f1 + param=java_opt + [[ -z x ]] + [[ Zulu11-32 == *\ * ]] + echo java_opt=Zulu11-32 + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # openHAB Log Viewer (frontail) theme =~ ^# ]] + echo '# openHAB Log Viewer (frontail) theme' + read -r line + [[ # Valid arguments: "light", "dark" =~ ^# ]] + echo '# Valid arguments: "light", "dark"' + read -r line + [[ frontailtheme=light =~ ^# ]] + [[ -z frontailtheme=light ]] ++ echo frontailtheme=light ++ cut -d= -f1 + param=frontailtheme + [[ -z '' ]] + echo frontailtheme=light + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # install ZRAM per default, set to "disable" to skip installation =~ ^# ]] + echo '# install ZRAM per default, set to "disable" to skip installation' + read -r line + [[ #zraminstall=enable =~ ^# ]] + echo '#zraminstall=enable' + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # start comitup hotspot if internet is not reachable =~ ^# ]] + echo '# start comitup hotspot if internet is not reachable' + read -r line + [[ hotspot=enable =~ ^# ]] + [[ -z hotspot=enable ]] ++ echo hotspot=enable ++ cut -d= -f1 + param=hotspot + [[ -z x ]] + [[ enable == *\ * ]] + echo hotspot=enable + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # external SD card device to backup and mirror the internal SD card to =~ ^# ]] + echo '# external SD card device to backup and mirror the internal SD card to' + read -r line + [[ #backupdrive=/dev/sda =~ ^# ]] + echo '#backupdrive=/dev/sda' + read -r line + [[ #storageconfig=openhab-dir =~ ^# ]] + echo '#storageconfig=openhab-dir' + read -r line + [[ #storagedir=/storage =~ ^# ]] + echo '#storagedir=/storage' + read -r line + [[ #storagetapes=15 =~ ^# ]] + echo '#storagetapes=15' + read -r line + [[ #storagecapacity=1024 =~ ^# ]] + echo '#storagecapacity=1024' + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # mail relay settings =~ ^# ]] + echo '# mail relay settings' + read -r line + [[ #adminmail=john.doe@foo.bar =~ ^# ]] + echo '#adminmail=john.doe@foo.bar' + read -r line + [[ #relayuser=john.doe@foo.bar =~ ^# ]] + echo '#relayuser=john.doe@foo.bar' + read -r line + [[ #relaypass=secret =~ ^# ]] + echo '#relaypass=secret' + read -r line + [[ #smarthost=smtp.gmail.com =~ ^# ]] + echo '#smarthost=smtp.gmail.com' + read -r line + [[ #smartport=587 =~ ^# ]] + echo '#smartport=587' + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # Tailscale VPN =~ ^# ]] + echo '# Tailscale VPN' + read -r line + [[ #preauthkey=tskey-xxxxxxxxxxxxxxxxx =~ ^# ]] + echo '#preauthkey=tskey-xxxxxxxxxxxxxxxxx' + read -r line + [[ '' =~ ^# ]] + [[ -z '' ]] + echo '' + read -r line + [[ # vim: filetype=sh =~ ^# ]] + echo '# vim: filetype=sh' + read -r line + 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 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:32_CET [openHABian] Updating Linux package information... ' 2021-12-02_13:47:32_CET [openHABian] Updating Linux package information... + [[ -z '' ]] + apt_update + PID_APT=1102 + tail --pid=1102 -f /dev/null + apt-get update + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:44_CET [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... ' 2021-12-02_13:47:44_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group marino + [[ ! -n marino:x:1000: ]] + id -u marino + source /etc/openhabian.conf ++ hostname=oh-test ++ username=marino ++ userpw='user_pw' ++ timezone=Europe/Berlin ++ locales='en_US.UTF-8 de_DE.UTF-8' ++ system_default_locale=de_de.UTF-8 ++ wifi_ssid=wifi_ssid ++ wifi_psk= ++ wifi_country=DE ++ ipv6=enable ++ repositoryurl=https://github.com/openhab/openhabian ++ clonebranch=stable ++ debugmode=maximum ++ java_opt=Zulu11-32 ++ frontailtheme=light ++ hotspot=enable + 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=3982104 + [[ -z 3982104 ]] + swap=7964208 + minFree=15928416 ++ df -hk / ++ awk '/dev/ { print $4 }' + free=9570264 + [[ 9570264 -ge 15928416 ]] + [[ 9570264 -ge 7964208 ]] + size=3982104 + (( size/=1024 )) ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:45_CET [openHABian] Adjusting swap size to 3888 MB... ' 2021-12-02_13:47:45_CET [openHABian] Adjusting swap size to 3888 MB... + cond_redirect dphys-swapfile swapoff + [[ -n '' ]] + echo -e '\n\033[90;01m$ dphys-swapfile swapoff \033[39;49;00m' $ dphys-swapfile swapoff  + dphys-swapfile swapoff + return 0 + cond_redirect sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3888|g' /etc/dphys-swapfile + [[ -n '' ]] + echo -e '\n\033[90;01m$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3888|g /etc/dphys-swapfile \033[39;49;00m' $ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3888|g /etc/dphys-swapfile  + sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3888|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' $ dphys-swapfile swapon  + dphys-swapfile swapon + return 0 + echo 'OK (reboot required)' OK (reboot required) + timezone_setting + [[ -n '' ]] + [[ -n Europe/Berlin ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:46_CET [openHABian] Setting timezone based on openhabian.conf... ' 2021-12-02_13:47:46_CET [openHABian] Setting timezone based on openhabian.conf... + running_in_docker + 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' $ timedatectl set-timezone Europe/Berlin  + timedatectl set-timezone Europe/Berlin + return 0 ++ cat /etc/timezone + echo 'OK (Europe/Berlin)' OK (Europe/Berlin) + setup_ntp enable + running_in_docker + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:46_CET [openHABian] Enabling time synchronization using NTP... ' 2021-12-02_13:47:46_CET [openHABian] Enabling time synchronization using NTP... + cond_redirect cp /opt/openhabian/includes/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/ + [[ -n '' ]] + echo -e '\n\033[90;01m$ cp /opt/openhabian/includes/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/ \033[39;49;00m' $ cp /opt/openhabian/includes/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/  + cp /opt/openhabian/includes/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' $ timedatectl set-ntp true  + timedatectl set-ntp true + return 0 + echo OK OK + locale_setting + local locale + dpkg -s locales + [[ -n '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:47:46_CET [openHABian] Setting locale based on openhabian.conf... ' 2021-12-02_13:47:46_CET [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' $ locale-gen  + 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' $ dpkg-reconfigure --frontend=noninteractive locales  + dpkg-reconfigure --frontend=noninteractive locales 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 ++ grep '^[[:space:]]*LANG=' /etc/default/locale ++ sed 's|LANG=||g' + locale=en_GB.UTF-8 + cond_redirect update-locale LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_CTYPE=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-locale LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_CTYPE=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 \033[39;49;00m' $ update-locale LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_CTYPE=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8  + update-locale LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_CTYPE=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 + return 0 + echo 'OK (reboot required)' OK (reboot required) + [[ -n '' ]] + hostname_change + running_in_docker + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + local newHostname + [[ -n '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:49:08_CET [openHABian] Setting hostname of the base system based on openhabian.conf... ' 2021-12-02_13:49:08_CET [openHABian] Setting hostname of the base system based on openhabian.conf... + newHostname=oh-test + cond_redirect hostnamectl set-hostname oh-test + [[ -n '' ]] + echo -e '\n\033[90;01m$ hostnamectl set-hostname oh-test \033[39;49;00m' $ hostnamectl set-hostname oh-test  + hostnamectl set-hostname oh-test + return 0 + sed -i 's|127.0.1.1.*$|127.0.1.1 oh-test|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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:49:09_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... ' 2021-12-02_13:49:09_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... + grep -qs '^[[:space:]]*gpu_mem' /boot/config.txt + cond_redirect sed -i 's|gpu_mem=.*$|gpu_mem=16|g' /boot/config.txt + [[ -n '' ]] + echo -e '\n\033[90;01m$ sed -i s|gpu_mem=.*$|gpu_mem=16|g /boot/config.txt \033[39;49;00m' $ sed -i s|gpu_mem=.*$|gpu_mem=16|g /boot/config.txt  + sed -i 's|gpu_mem=.*$|gpu_mem=16|g' /boot/config.txt + return 0 + echo OK OK + 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:49:09_CET [openHABian] Enabling Audio output... ' 2021-12-02_13:49:09_CET [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' $ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt  + sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt + return 0 + cond_redirect adduser marino audio + [[ -n '' ]] + echo -e '\n\033[90;01m$ adduser marino audio \033[39;49;00m' $ adduser marino audio  + adduser marino audio The user `marino' is already a member of `audio'. + return 0 + echo OK OK + basic_packages ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:49:09_CET [openHABian] Installing basic can'\''t-be-wrong packages (screen, vim, ...)... ' 2021-12-02_13:49:09_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... ++ command -v raspi-config + [[ -x '' ]] + cond_redirect apt-get install --yes screen vim nano mc vfu bash-completion htop curl wget multitail git util-linux bzip2 zip unzip xz-utils software-properties-common man-db whiptail acl usbutils dirmngr arping + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get install --yes screen vim nano mc vfu bash-completion htop curl wget multitail git util-linux bzip2 zip unzip xz-utils software-properties-common man-db whiptail acl usbutils dirmngr arping \033[39;49;00m' $ apt-get install --yes screen vim nano mc vfu bash-completion htop curl wget multitail git util-linux bzip2 zip unzip xz-utils software-properties-common man-db whiptail acl usbutils dirmngr arping  + apt-get install --yes screen vim nano mc vfu bash-completion htop curl wget multitail git util-linux bzip2 zip unzip xz-utils software-properties-common man-db whiptail acl usbutils dirmngr arping Reading package lists... Building dependency tree... Reading state information... bash-completion is already the newest version (1:2.11-2). bzip2 is already the newest version (1.0.8-4). bzip2 set to manually installed. curl is already the newest version (7.74.0-1.3). dirmngr is already the newest version (2.2.27-2). git is already the newest version (1:2.30.2-1). htop is already the newest version (3.0.5-7). man-db is already the newest version (2.9.4-2). nano is already the newest version (5.4-2). unzip is already the newest version (6.0-26). usbutils is already the newest version (1:013-3). util-linux is already the newest version (2.36.1-8). wget is already the newest version (1.21-1rpi1). wget set to manually installed. whiptail is already the newest version (0.52.21-4+b2). whiptail set to manually installed. xz-utils is already the newest version (5.2.5-2). xz-utils set to manually installed. The following package was automatically installed and is no longer required: triggerhappy Use 'apt autoremove' to remove it. The following additional packages will be installed: file gir1.2-packagekitglib-1.0 libappstream4 libglib2.0-bin libglib2.0-data libgpm2 libmagic-mgc libmagic1 libnet1 libpackagekit-glib2-18 libstemmer0d libutempter0 mailcap mc-data mime-support packagekit packagekit-tools python3-distro-info python3-pycurl python3-software-properties unattended-upgrades vim-runtime Suggested packages: gpm arj catdvi | texlive-binaries dbview djvulibre-bin epub-utils genisoimage gv imagemagick libaspell-dev links | w3m | lynx odt2txt poppler-utils python python-boto python-tz unar wimtools xpdf | pdf-viewer appstream libcurl4-gnutls-dev python-pycurl-doc python3-pycurl-dbg byobu | screenie | iselect bsd-mailx default-mta | mail-transport-agent needrestart powermgmt-base ctags vim-doc vim-scripts The following NEW packages will be installed: acl arping file gir1.2-packagekitglib-1.0 libappstream4 libglib2.0-bin libglib2.0-data libgpm2 libmagic-mgc libmagic1 libnet1 libpackagekit-glib2-18 libstemmer0d libutempter0 mailcap mc mc-data mime-support multitail packagekit packagekit-tools python3-distro-info python3-pycurl python3-software-properties screen software-properties-common unattended-upgrades vfu vim vim-runtime zip Preconfiguring packages ... 0 upgraded, 31 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/13.5 MB of archives. After this operation, 68.0 MB of additional disk space will be used. Selecting previously unselected package libmagic-mgc. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 43257 files and directories currently installed.) Preparing to unpack .../00-libmagic-mgc_1%3a5.39-3_armhf.deb ... Unpacking libmagic-mgc (1:5.39-3) ... Selecting previously unselected package libmagic1:armhf. Preparing to unpack .../01-libmagic1_1%3a5.39-3_armhf.deb ... Unpacking libmagic1:armhf (1:5.39-3) ... Selecting previously unselected package file. Preparing to unpack .../02-file_1%3a5.39-3_armhf.deb ... Unpacking file (1:5.39-3) ... Selecting previously unselected package mailcap. Preparing to unpack .../03-mailcap_3.69_all.deb ... Unpacking mailcap (3.69) ... Selecting previously unselected package mime-support. Preparing to unpack .../04-mime-support_3.66_all.deb ... Unpacking mime-support (3.66) ... Selecting previously unselected package libutempter0:armhf. Preparing to unpack .../05-libutempter0_1.2.1-2_armhf.deb ... Unpacking libutempter0:armhf (1.2.1-2) ... Selecting previously unselected package screen. Preparing to unpack .../06-screen_4.8.0-6_armhf.deb ... Unpacking screen (4.8.0-6) ... Selecting previously unselected package acl. Preparing to unpack .../07-acl_2.2.53-10_armhf.deb ... Unpacking acl (2.2.53-10) ... Selecting previously unselected package libnet1:armhf. Preparing to unpack .../08-libnet1_1.1.6+dfsg-3.1_armhf.deb ... Unpacking libnet1:armhf (1.1.6+dfsg-3.1) ... Selecting previously unselected package arping. Preparing to unpack .../09-arping_2.21-2_armhf.deb ... Unpacking arping (2.21-2) ... Selecting previously unselected package libpackagekit-glib2-18:armhf. Preparing to unpack .../10-libpackagekit-glib2-18_1.2.2-2_armhf.deb ... Unpacking libpackagekit-glib2-18:armhf (1.2.2-2) ... Selecting previously unselected package gir1.2-packagekitglib-1.0. Preparing to unpack .../11-gir1.2-packagekitglib-1.0_1.2.2-2_armhf.deb ... Unpacking gir1.2-packagekitglib-1.0 (1.2.2-2) ... Selecting previously unselected package libstemmer0d:armhf. Preparing to unpack .../12-libstemmer0d_2.1.0-1_armhf.deb ... Unpacking libstemmer0d:armhf (2.1.0-1) ... Selecting previously unselected package libappstream4:armhf. Preparing to unpack .../13-libappstream4_0.14.4-1_armhf.deb ... Unpacking libappstream4:armhf (0.14.4-1) ... Selecting previously unselected package libglib2.0-data. Preparing to unpack .../14-libglib2.0-data_2.66.8-1_all.deb ... Unpacking libglib2.0-data (2.66.8-1) ... Selecting previously unselected package libglib2.0-bin. Preparing to unpack .../15-libglib2.0-bin_2.66.8-1_armhf.deb ... Unpacking libglib2.0-bin (2.66.8-1) ... Selecting previously unselected package libgpm2:armhf. Preparing to unpack .../16-libgpm2_1.20.7-8_armhf.deb ... Unpacking libgpm2:armhf (1.20.7-8) ... Selecting previously unselected package mc-data. Preparing to unpack .../17-mc-data_3%3a4.8.26-1.1_all.deb ... Unpacking mc-data (3:4.8.26-1.1) ... Selecting previously unselected package mc. Preparing to unpack .../18-mc_3%3a4.8.26-1.1_armhf.deb ... Unpacking mc (3:4.8.26-1.1) ... Selecting previously unselected package multitail. Preparing to unpack .../19-multitail_6.5.0-3_armhf.deb ... Unpacking multitail (6.5.0-3) ... Selecting previously unselected package packagekit. Preparing to unpack .../20-packagekit_1.2.2-2_armhf.deb ... Unpacking packagekit (1.2.2-2) ... Selecting previously unselected package packagekit-tools. Preparing to unpack .../21-packagekit-tools_1.2.2-2_armhf.deb ... Unpacking packagekit-tools (1.2.2-2) ... Selecting previously unselected package python3-distro-info. Preparing to unpack .../22-python3-distro-info_1.0_all.deb ... Unpacking python3-distro-info (1.0) ... Selecting previously unselected package python3-pycurl. Preparing to unpack .../23-python3-pycurl_7.43.0.6-5_armhf.deb ... Unpacking python3-pycurl (7.43.0.6-5) ... Selecting previously unselected package python3-software-properties. Preparing to unpack .../24-python3-software-properties_0.96.20.2-2.1_all.deb ... Unpacking python3-software-properties (0.96.20.2-2.1) ... Selecting previously unselected package software-properties-common. Preparing to unpack .../25-software-properties-common_0.96.20.2-2.1_all.deb ... Unpacking software-properties-common (0.96.20.2-2.1) ... Selecting previously unselected package unattended-upgrades. Preparing to unpack .../26-unattended-upgrades_2.8_all.deb ... Unpacking unattended-upgrades (2.8) ... Selecting previously unselected package vfu. Preparing to unpack .../27-vfu_4.21-1_armhf.deb ... Unpacking vfu (4.21-1) ... Selecting previously unselected package vim-runtime. Preparing to unpack .../28-vim-runtime_2%3a8.2.2434-3_all.deb ... Adding 'diversion of /usr/share/vim/vim82/doc/help.txt to /usr/share/vim/vim82/doc/help.txt.vim-tiny by vim-runtime' Adding 'diversion of /usr/share/vim/vim82/doc/tags to /usr/share/vim/vim82/doc/tags.vim-tiny by vim-runtime' Unpacking vim-runtime (2:8.2.2434-3) ... Selecting previously unselected package vim. Preparing to unpack .../29-vim_2%3a8.2.2434-3_armhf.deb ... Unpacking vim (2:8.2.2434-3) ... Selecting previously unselected package zip. Preparing to unpack .../30-zip_3.0-12_armhf.deb ... Unpacking zip (3.0-12) ... Setting up libgpm2:armhf (1.20.7-8) ... Setting up libmagic-mgc (1:5.39-3) ... Setting up libmagic1:armhf (1:5.39-3) ... Setting up libpackagekit-glib2-18:armhf (1.2.2-2) ... Setting up file (1:5.39-3) ... Setting up libnet1:armhf (1.1.6+dfsg-3.1) ... Setting up acl (2.2.53-10) ... Setting up vfu (4.21-1) ... Setting up gir1.2-packagekitglib-1.0 (1.2.2-2) ... Setting up zip (3.0-12) ... Setting up python3-pycurl (7.43.0.6-5) ... Setting up libglib2.0-data (2.66.8-1) ... Setting up python3-software-properties (0.96.20.2-2.1) ... Setting up mc-data (3:4.8.26-1.1) ... Setting up libutempter0:armhf (1.2.1-2) ... Setting up multitail (6.5.0-3) ... Setting up libstemmer0d:armhf (2.1.0-1) ... Setting up vim-runtime (2:8.2.2434-3) ... Setting up mailcap (3.69) ... Setting up python3-distro-info (1.0) ... Setting up vim (2:8.2.2434-3) ... update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode Setting up arping (2.21-2) ... Setting up mime-support (3.66) ... Setting up mc (3:4.8.26-1.1) ... Setting up libglib2.0-bin (2.66.8-1) ... Setting up screen (4.8.0-6) ... Setting up libappstream4:armhf (0.14.4-1) ... Setting up software-properties-common (0.96.20.2-2.1) ... Setting up unattended-upgrades (2.8) ... Creating config file /etc/apt/apt.conf.d/20auto-upgrades with new version Creating config file /etc/apt/apt.conf.d/50unattended-upgrades with new version Created symlink /etc/systemd/system/multi-user.target.wants/unattended-upgrades.service → /lib/systemd/system/unattended-upgrades.service. Synchronizing state of unattended-upgrades.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable unattended-upgrades Setting up packagekit (1.2.2-2) ... Created symlink /etc/systemd/user/sockets.target.wants/pk-debconf-helper.socket → /usr/lib/systemd/user/pk-debconf-helper.socket. Setting up packagekit-tools (1.2.2-2) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for dbus (1.12.20-2) ... Processing triggers for install-info (6.7.0.dfsg.2-6) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... + return 0 + echo OK OK + needed_packages + local 'bluetoothPackages=bluez python3-dev libbluetooth-dev raspberrypi-sys-mods pi-bluetooth' ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:50:00_CET [openHABian] Installing additional needed packages... ' 2021-12-02_13:50:00_CET [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' $ apt-get install --yes apt-transport-https bc sysstat jq moreutils avahi-daemon python3 python3-pip python3-wheel python3-setuptools avahi-autoipd fontconfig  + 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. The following package was automatically installed and is no longer required: triggerhappy Use 'apt autoremove' to remove it. The following additional packages will be installed: libexpat1-dev libio-pty-perl libipc-run-perl libjq1 libjs-sphinxdoc libjs-underscore libonig5 libpython3-dev libpython3.9-dev libsensors-config libsensors5 libtime-duration-perl libtimedate-perl python-pip-whl python3-dev python3-distutils python3-lib2to3 python3.9-dev Suggested packages: lm-sensors python-setuptools-doc isag The following NEW packages will be installed: apt-transport-https avahi-autoipd bc fontconfig jq libexpat1-dev libio-pty-perl libipc-run-perl libjq1 libjs-sphinxdoc libjs-underscore libonig5 libpython3-dev libpython3.9-dev libsensors-config libsensors5 libtime-duration-perl libtimedate-perl moreutils python-pip-whl python3-dev python3-distutils python3-lib2to3 python3-pip python3-setuptools python3-wheel python3.9-dev sysstat Preconfiguring packages ... 0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/8,874 kB of archives. After this operation, 26.9 MB of additional disk space will be used. Selecting previously unselected package bc. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 46202 files and directories currently installed.) Preparing to unpack .../00-bc_1.07.1-2+b1_armhf.deb ... Unpacking bc (1.07.1-2+b1) ... Selecting previously unselected package apt-transport-https. Preparing to unpack .../01-apt-transport-https_2.2.4_all.deb ... Unpacking apt-transport-https (2.2.4) ... Selecting previously unselected package avahi-autoipd. Preparing to unpack .../02-avahi-autoipd_0.8-5_armhf.deb ... Unpacking avahi-autoipd (0.8-5) ... Selecting previously unselected package fontconfig. Preparing to unpack .../03-fontconfig_2.13.1-4.2_armhf.deb ... Unpacking fontconfig (2.13.1-4.2) ... Selecting previously unselected package libonig5:armhf. Preparing to unpack .../04-libonig5_6.9.6-1.1_armhf.deb ... Unpacking libonig5:armhf (6.9.6-1.1) ... Selecting previously unselected package libjq1:armhf. Preparing to unpack .../05-libjq1_1.6-2.1_armhf.deb ... Unpacking libjq1:armhf (1.6-2.1) ... Selecting previously unselected package jq. Preparing to unpack .../06-jq_1.6-2.1_armhf.deb ... Unpacking jq (1.6-2.1) ... Selecting previously unselected package libexpat1-dev:armhf. Preparing to unpack .../07-libexpat1-dev_2.2.10-2_armhf.deb ... Unpacking libexpat1-dev:armhf (2.2.10-2) ... Selecting previously unselected package libio-pty-perl. Preparing to unpack .../08-libio-pty-perl_1%3a1.15-2_armhf.deb ... Unpacking libio-pty-perl (1:1.15-2) ... Selecting previously unselected package libipc-run-perl. Preparing to unpack .../09-libipc-run-perl_20200505.0-1_all.deb ... Unpacking libipc-run-perl (20200505.0-1) ... Selecting previously unselected package libjs-underscore. Preparing to unpack .../10-libjs-underscore_1.9.1~dfsg-3_all.deb ... Unpacking libjs-underscore (1.9.1~dfsg-3) ... Selecting previously unselected package libjs-sphinxdoc. Preparing to unpack .../11-libjs-sphinxdoc_3.4.3-2_all.deb ... Unpacking libjs-sphinxdoc (3.4.3-2) ... Selecting previously unselected package libpython3.9-dev:armhf. Preparing to unpack .../12-libpython3.9-dev_3.9.2-1+rpi1_armhf.deb ... Unpacking libpython3.9-dev:armhf (3.9.2-1+rpi1) ... Selecting previously unselected package libpython3-dev:armhf. Preparing to unpack .../13-libpython3-dev_3.9.2-3_armhf.deb ... Unpacking libpython3-dev:armhf (3.9.2-3) ... Selecting previously unselected package libsensors-config. Preparing to unpack .../14-libsensors-config_1%3a3.6.0-7_all.deb ... Unpacking libsensors-config (1:3.6.0-7) ... Selecting previously unselected package libsensors5:armhf. Preparing to unpack .../15-libsensors5_1%3a3.6.0-7_armhf.deb ... Unpacking libsensors5:armhf (1:3.6.0-7) ... Selecting previously unselected package libtime-duration-perl. Preparing to unpack .../16-libtime-duration-perl_1.21-1_all.deb ... Unpacking libtime-duration-perl (1.21-1) ... Selecting previously unselected package libtimedate-perl. Preparing to unpack .../17-libtimedate-perl_2.3300-2_all.deb ... Unpacking libtimedate-perl (2.3300-2) ... Selecting previously unselected package moreutils. Preparing to unpack .../18-moreutils_0.65-1_armhf.deb ... Unpacking moreutils (0.65-1) ... Selecting previously unselected package python-pip-whl. Preparing to unpack .../19-python-pip-whl_20.3.4-4+rpt1_all.deb ... Unpacking python-pip-whl (20.3.4-4+rpt1) ... Selecting previously unselected package python3.9-dev. Preparing to unpack .../20-python3.9-dev_3.9.2-1+rpi1_armhf.deb ... Unpacking python3.9-dev (3.9.2-1+rpi1) ... Selecting previously unselected package python3-lib2to3. Preparing to unpack .../21-python3-lib2to3_3.9.2-1_all.deb ... Unpacking python3-lib2to3 (3.9.2-1) ... Selecting previously unselected package python3-distutils. Preparing to unpack .../22-python3-distutils_3.9.2-1_all.deb ... Unpacking python3-distutils (3.9.2-1) ... Selecting previously unselected package python3-dev. Preparing to unpack .../23-python3-dev_3.9.2-3_armhf.deb ... Unpacking python3-dev (3.9.2-3) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../24-python3-setuptools_52.0.0-4_all.deb ... Unpacking python3-setuptools (52.0.0-4) ... Selecting previously unselected package python3-wheel. Preparing to unpack .../25-python3-wheel_0.34.2-1_all.deb ... Unpacking python3-wheel (0.34.2-1) ... Selecting previously unselected package python3-pip. Preparing to unpack .../26-python3-pip_20.3.4-4+rpt1_all.deb ... Unpacking python3-pip (20.3.4-4+rpt1) ... Selecting previously unselected package sysstat. Preparing to unpack .../27-sysstat_12.5.2-2_armhf.deb ... Unpacking sysstat (12.5.2-2) ... Setting up fontconfig (2.13.1-4.2) ... Regenerating fonts cache... done. Setting up apt-transport-https (2.2.4) ... Setting up libio-pty-perl (1:1.15-2) ... Setting up libsensors-config (1:3.6.0-7) ... Setting up bc (1.07.1-2+b1) ... Setting up python3-wheel (0.34.2-1) ... Setting up libexpat1-dev:armhf (2.2.10-2) ... Setting up avahi-autoipd (0.8-5) ... Setting up libipc-run-perl (20200505.0-1) ... Setting up libsensors5:armhf (1:3.6.0-7) ... Setting up libtime-duration-perl (1.21-1) ... Setting up libtimedate-perl (2.3300-2) ... Setting up python-pip-whl (20.3.4-4+rpt1) ... Setting up python3-lib2to3 (3.9.2-1) ... Setting up sysstat (12.5.2-2) ... Creating config file /etc/default/sysstat with new version update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode Created symlink /etc/systemd/system/sysstat.service.wants/sysstat-collect.timer → /lib/systemd/system/sysstat-collect.timer. Created symlink /etc/systemd/system/sysstat.service.wants/sysstat-summary.timer → /lib/systemd/system/sysstat-summary.timer. Created symlink /etc/systemd/system/multi-user.target.wants/sysstat.service → /lib/systemd/system/sysstat.service. Setting up libonig5:armhf (6.9.6-1.1) ... Setting up libjs-underscore (1.9.1~dfsg-3) ... Setting up python3-distutils (3.9.2-1) ... Setting up moreutils (0.65-1) ... Setting up python3-setuptools (52.0.0-4) ... Setting up libjq1:armhf (1.6-2.1) ... Setting up libpython3.9-dev:armhf (3.9.2-1+rpi1) ... Setting up python3-pip (20.3.4-4+rpt1) ... Setting up libjs-sphinxdoc (3.4.3-2) ... Setting up python3.9-dev (3.9.2-1+rpi1) ... Setting up jq (1.6-2.1) ... Setting up libpython3-dev:armhf (3.9.2-3) ... Setting up python3-dev (3.9.2-3) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for install-info (6.7.0.dfsg.2-6) ... + return 0 + echo OK OK + 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_pithree + [[ '' == \p\i\3 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[8dDeE][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pithreeplus + [[ '' == \p\i\3\+ ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo + return 1 + 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 + [[ -z '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:50:51_CET [openHABian] Installing pigpio package... ' 2021-12-02_13:50:51_CET [openHABian] Installing pigpio package... + cond_redirect apt-get install --yes pigpio + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get install --yes pigpio \033[39;49;00m' $ apt-get install --yes pigpio  + apt-get install --yes pigpio Reading package lists... Building dependency tree... Reading state information... The following package was automatically installed and is no longer required: triggerhappy Use 'apt autoremove' to remove it. The following additional packages will be installed: libpigpio-dev libpigpio1 libpigpiod-if-dev libpigpiod-if1 libpigpiod-if2-1 pigpio-tools pigpiod The following NEW packages will be installed: libpigpio-dev libpigpio1 libpigpiod-if-dev libpigpiod-if1 libpigpiod-if2-1 pigpio pigpio-tools pigpiod 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. Need to get 348 kB of archives. After this operation, 1,029 kB of additional disk space will be used. Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf libpigpio1 armhf 1.79-1+rpt1 [91.4 kB] Get:2 http://archive.raspberrypi.org/debian bullseye/main armhf libpigpio-dev armhf 1.79-1+rpt1 [78.5 kB] Get:3 http://archive.raspberrypi.org/debian bullseye/main armhf libpigpiod-if1 armhf 1.79-1+rpt1 [20.5 kB] Get:4 http://archive.raspberrypi.org/debian bullseye/main armhf libpigpiod-if2-1 armhf 1.79-1+rpt1 [24.4 kB] Get:5 http://archive.raspberrypi.org/debian bullseye/main armhf libpigpiod-if-dev armhf 1.79-1+rpt1 [76.9 kB] Get:6 http://archive.raspberrypi.org/debian bullseye/main armhf pigpio-tools armhf 1.79-1+rpt1 [42.9 kB] Get:7 http://archive.raspberrypi.org/debian bullseye/main armhf pigpiod armhf 1.79-1+rpt1 [9,900 B] Get:8 http://archive.raspberrypi.org/debian bullseye/main armhf pigpio armhf 1.79-1+rpt1 [3,564 B] Fetched 348 kB in 2s (231 kB/s) Selecting previously unselected package libpigpio1. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47390 files and directories currently installed.) Preparing to unpack .../0-libpigpio1_1.79-1+rpt1_armhf.deb ... Unpacking libpigpio1 (1.79-1+rpt1) ... Selecting previously unselected package libpigpio-dev. Preparing to unpack .../1-libpigpio-dev_1.79-1+rpt1_armhf.deb ... Unpacking libpigpio-dev (1.79-1+rpt1) ... Selecting previously unselected package libpigpiod-if1. Preparing to unpack .../2-libpigpiod-if1_1.79-1+rpt1_armhf.deb ... Unpacking libpigpiod-if1 (1.79-1+rpt1) ... Selecting previously unselected package libpigpiod-if2-1. Preparing to unpack .../3-libpigpiod-if2-1_1.79-1+rpt1_armhf.deb ... Unpacking libpigpiod-if2-1 (1.79-1+rpt1) ... Selecting previously unselected package libpigpiod-if-dev. Preparing to unpack .../4-libpigpiod-if-dev_1.79-1+rpt1_armhf.deb ... Unpacking libpigpiod-if-dev (1.79-1+rpt1) ... Selecting previously unselected package pigpio-tools. Preparing to unpack .../5-pigpio-tools_1.79-1+rpt1_armhf.deb ... Unpacking pigpio-tools (1.79-1+rpt1) ... Selecting previously unselected package pigpiod. Preparing to unpack .../6-pigpiod_1.79-1+rpt1_armhf.deb ... Unpacking pigpiod (1.79-1+rpt1) ... Selecting previously unselected package pigpio. Preparing to unpack .../7-pigpio_1.79-1+rpt1_armhf.deb ... Unpacking pigpio (1.79-1+rpt1) ... Setting up pigpio-tools (1.79-1+rpt1) ... Setting up libpigpiod-if1 (1.79-1+rpt1) ... Setting up libpigpiod-if2-1 (1.79-1+rpt1) ... Setting up libpigpio1 (1.79-1+rpt1) ... Setting up pigpiod (1.79-1+rpt1) ... Setting up libpigpiod-if-dev (1.79-1+rpt1) ... Setting up libpigpio-dev (1.79-1+rpt1) ... Setting up pigpio (1.79-1+rpt1) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... + return 0 + echo OK OK ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:51:05_CET [openHABian] Installing additional bluetooth packages... ' 2021-12-02_13:51:05_CET [openHABian] Installing additional bluetooth packages... + is_stretch + [[ '' == \s\t\r\e\t\c\h ]] ++ cat /etc/os-release + [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ stretch ]] + return 1 + bluetoothPackages+=' python3-bluez' + cond_redirect apt-get install --yes bluez python3-dev libbluetooth-dev raspberrypi-sys-mods pi-bluetooth python3-bluez + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get install --yes bluez python3-dev libbluetooth-dev raspberrypi-sys-mods pi-bluetooth python3-bluez \033[39;49;00m' $ apt-get install --yes bluez python3-dev libbluetooth-dev raspberrypi-sys-mods pi-bluetooth python3-bluez  + apt-get install --yes bluez python3-dev libbluetooth-dev raspberrypi-sys-mods pi-bluetooth python3-bluez Reading package lists... Building dependency tree... Reading state information... python3-dev is already the newest version (3.9.2-3). python3-dev set to manually installed. bluez is already the newest version (5.55-3.1+rpt1). bluez set to manually installed. pi-bluetooth is already the newest version (0.1.18). raspberrypi-sys-mods is already the newest version (20211005+bullseye). The following package was automatically installed and is no longer required: triggerhappy Use 'apt autoremove' to remove it. The following additional packages will be installed: libboost-python1.74.0 libboost-thread1.74.0 python3-gattlib The following NEW packages will be installed: libbluetooth-dev libboost-python1.74.0 libboost-thread1.74.0 python3-bluez python3-gattlib 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 690 kB/961 kB of archives. After this operation, 5,886 kB of additional disk space will be used. Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf libbluetooth-dev armhf 5.55-3.1+rpt1 [221 kB] Get:2 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf libboost-python1.74.0 armhf 1.74.0-9 [300 kB] Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf python3-gattlib armhf 0~20201113-1 [109 kB] Get:4 http://mirror.chaoticum.net/rpi/raspbian bullseye/main armhf python3-bluez armhf 0.23-3 [59.7 kB] Fetched 690 kB in 4s (168 kB/s) Selecting previously unselected package libbluetooth-dev:armhf. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) Preparing to unpack .../libbluetooth-dev_5.55-3.1+rpt1_armhf.deb ... Unpacking libbluetooth-dev:armhf (5.55-3.1+rpt1) ... Selecting previously unselected package libboost-python1.74.0. Preparing to unpack .../libboost-python1.74.0_1.74.0-9_armhf.deb ... Unpacking libboost-python1.74.0 (1.74.0-9) ... Selecting previously unselected package libboost-thread1.74.0:armhf. Preparing to unpack .../libboost-thread1.74.0_1.74.0-9_armhf.deb ... Unpacking libboost-thread1.74.0:armhf (1.74.0-9) ... Selecting previously unselected package python3-gattlib. Preparing to unpack .../python3-gattlib_0~20201113-1_armhf.deb ... Unpacking python3-gattlib (0~20201113-1) ... Selecting previously unselected package python3-bluez. Preparing to unpack .../python3-bluez_0.23-3_armhf.deb ... Unpacking python3-bluez (0.23-3) ... Setting up libbluetooth-dev:armhf (5.55-3.1+rpt1) ... Setting up libboost-python1.74.0 (1.74.0-9) ... Setting up libboost-thread1.74.0:armhf (1.74.0-9) ... Setting up python3-gattlib (0~20201113-1) ... Setting up python3-bluez (0.23-3) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... + return 0 + echo OK OK + bashrc_copy ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:51:20_CET [openHABian] Adding slightly tuned bash configuration files to system... ' 2021-12-02_13:51:20_CET [openHABian] Adding slightly tuned bash configuration files to system... + cp /opt/openhabian/includes/bash.bashrc /etc/bash.bashrc + cp /opt/openhabian/includes/bashrc-root /root/.bashrc + cp /opt/openhabian/includes/bash_profile /home/marino/.bash_profile + chown marino:marino /home/marino/.bash_profile + echo OK OK + vimrc_copy ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:51:20_CET [openHABian] Adding slightly tuned vim configuration file to system... ' 2021-12-02_13:51:20_CET [openHABian] Adding slightly tuned vim configuration file to system... + cp /opt/openhabian/includes/vimrc /etc/vim/vimrc + echo OK OK + firemotd_setup + running_in_docker + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + running_on_github + [[ -n '' ]] + return 1 + local firemotdDir=/opt/FireMotD + local targetDir=/etc/systemd/system/ + dpkg -s bc sysstat jq moreutils make + firemotd_download /opt ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:51:20_CET [openHABian] Downloading FireMotD... ' 2021-12-02_13:51:20_CET [openHABian] Downloading FireMotD... + [[ -d /opt/FireMotD ]] + cond_echo '\nUpdate... ' + [[ -z '' ]] + echo -e '\033[33;01m\nUpdate... \033[39;49;00m'  Update...  + cond_redirect update_git_repo /opt/FireMotD master + [[ -n '' ]] + echo -e '\n\033[90;01m$ update_git_repo /opt/FireMotD master \033[39;49;00m' $ update_git_repo /opt/FireMotD master  + update_git_repo /opt/FireMotD master + local branch + local path + branch=master + path=/opt/FireMotD ++ timestamp ++ date +%F_%T_%Z ++ basename /opt/FireMotD + echo -n '2021-12-02_13:51:20_CET [openHABian] Updating FireMotD, master branch from git... ' 2021-12-02_13:51:20_CET [openHABian] Updating FireMotD, master branch from git... + cond_redirect git -C /opt/FireMotD fetch origin + [[ -n '' ]] + echo -e '\n\033[90;01m$ git -C /opt/FireMotD fetch origin \033[39;49;00m' $ git -C /opt/FireMotD fetch origin  + git -C /opt/FireMotD fetch origin + return 0 + cond_redirect git -C /opt/FireMotD fetch --tags --force --prune + [[ -n '' ]] + echo -e '\n\033[90;01m$ git -C /opt/FireMotD fetch --tags --force --prune \033[39;49;00m' $ git -C /opt/FireMotD fetch --tags --force --prune  + git -C /opt/FireMotD fetch --tags --force --prune + return 0 + cond_redirect git -C /opt/FireMotD reset --hard origin/master + [[ -n '' ]] + echo -e '\n\033[90;01m$ git -C /opt/FireMotD reset --hard origin/master \033[39;49;00m' $ git -C /opt/FireMotD reset --hard origin/master  + git -C /opt/FireMotD reset --hard origin/master HEAD is now at 3d2bea6 fix + return 0 + cond_redirect git -C /opt/FireMotD clean --force -x -d + [[ -n '' ]] + echo -e '\n\033[90;01m$ git -C /opt/FireMotD clean --force -x -d \033[39;49;00m' $ git -C /opt/FireMotD clean --force -x -d  + git -C /opt/FireMotD clean --force -x -d + return 0 + cond_redirect git -C /opt/FireMotD checkout master + [[ -n '' ]] + echo -e '\n\033[90;01m$ git -C /opt/FireMotD checkout master \033[39;49;00m' $ git -C /opt/FireMotD checkout master  + git -C /opt/FireMotD checkout master Already on 'master' Your branch is up to date with 'origin/master'. + return 0 + echo OK OK + return 0 + echo OK OK ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:51:23_CET [openHABian] Installing FireMotD... ' 2021-12-02_13:51:23_CET [openHABian] Installing FireMotD... + cond_redirect make --always-make --directory=/opt/FireMotD install + [[ -n '' ]] + echo -e '\n\033[90;01m$ make --always-make --directory=/opt/FireMotD install \033[39;49;00m' $ make --always-make --directory=/opt/FireMotD install  + make --always-make --directory=/opt/FireMotD install make: Entering directory '/opt/FireMotD' cp FireMotD /usr/local/bin/FireMotD chmod 755 /usr/local/bin/FireMotD mkdir -p /usr/share/firemotd/data mkdir -p /usr/share/firemotd/templates mkdir -p /usr/share/firemotd/themes mkdir -p /usr/share/firemotd/cache cp templates/* /usr/share/firemotd/templates cp themes/* /usr/share/firemotd/themes make: Leaving directory '/opt/FireMotD' + return 0 + cond_redirect make --always-make --directory=/opt/FireMotD bash_completion + [[ -n '' ]] + echo -e '\n\033[90;01m$ make --always-make --directory=/opt/FireMotD bash_completion \033[39;49;00m' $ make --always-make --directory=/opt/FireMotD bash_completion  + make --always-make --directory=/opt/FireMotD bash_completion make: Entering directory '/opt/FireMotD' cp bash_completion.d/FireMotD /etc/bash_completion.d/FireMotD make: Leaving directory '/opt/FireMotD' + return 0 + echo OK OK ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:51:23_CET [openHABian] Generating FireMotD theme... ' 2021-12-02_13:51:23_CET [openHABian] Generating FireMotD theme... + cond_redirect FireMotD -S -d -D all + [[ -n '' ]] + echo -e '\n\033[90;01m$ FireMotD -S -d -D all \033[39;49;00m' $ FireMotD -S -d -D all  + FireMotD -S -d -D all 2021-12-02 13:51:23,873: FireMotD: Info: Debug mode 2021-12-02 13:51:23,903: FireMotD: Info: FireMotD action save started 2021-12-02 13:51:23,932: FireMotD: Info: Action "save" 2021-12-02 13:51:23,962: FireMotD: Info: Exportfile /usr/share/firemotd/data/FireMotD.json not found. 2021-12-02 13:51:23,991: FireMotD: Info: Template type set to all. Overwriting.. 2021-12-02 13:51:24,279: FireMotD: Info: Exploring HostIp 2021-12-02 13:51:24,874: FireMotD: Info: Exploring Release 2021-12-02 13:51:25,495: FireMotD: Info: Exploring Kernel 2021-12-02 13:51:26,052: FireMotD: Info: Exploring Platform 2021-12-02 13:51:26,698: FireMotD: Info: Exploring InstallDate 2021-12-02 13:51:27,251: FireMotD: Info: Exploring Updates W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://davesteele.github.io/comitup/repo comitup InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0959C4A3DCF89FBF W: Failed to fetch http://davesteele.github.io/comitup/repo/dists/comitup/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0959C4A3DCF89FBF W: Some index files failed to download. They have been ignored, or old ones used instead. 2021-12-02 13:51:42,202: FireMotD: Info: Exploring Httpd 2021-12-02 13:51:42,757: FireMotD: Info: Exploring Nginx 2021-12-02 13:51:44,071: FireMotD: Info: Exploring Mysql 2021-12-02 13:51:45,619: FireMotD: Info: Exploring Postgres 2021-12-02 13:51:46,183: FireMotD: Info: Exploring Php 2021-12-02 13:51:47,007: FireMotD: Info: Exploring Elasticsearch 2021-12-02 13:51:47,560: FireMotD: Info: Exploring Logstash 2021-12-02 13:51:48,109: FireMotD: Info: Exploring Kibana 2021-12-02 13:51:48,659: FireMotD: Info: Export system data to "/usr/share/firemotd/data/FireMotD.json" finished. 2021-12-02 13:51:48,711: FireMotD: Info: ExportFile: -rwxrw-rw- 1 root root 3234 Dec 2 13:51 /usr/share/firemotd/data/FireMotD.json 2021-12-02 13:51:48,744: FireMotD: Info: FireMotD action save finished + return 0 + cond_redirect FireMotD -G Gray + [[ -n '' ]] + echo -e '\n\033[90;01m$ FireMotD -G Gray \033[39;49;00m' $ FireMotD -G Gray  + FireMotD -G Gray + return 0 + echo OK OK + grep -qs FireMotD /home/marino/.bash_profile ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:52:31_CET [openHABian] Setting up FireMotD apt updates count service... ' 2021-12-02_13:52:31_CET [openHABian] Setting up FireMotD apt updates count service... + cond_echo '\nMake FireMotD check for new updates every night... ' + [[ -z '' ]] + echo -e '\033[33;01m\nMake FireMotD check for new updates every night... \033[39;49;00m'  Make FireMotD check for new updates every night...  + cond_redirect cp /opt/openhabian/includes/firemotd.service /opt/openhabian/includes/firemotd.timer /etc/systemd/system/ + [[ -n '' ]] + echo -e '\n\033[90;01m$ cp /opt/openhabian/includes/firemotd.service /opt/openhabian/includes/firemotd.timer /etc/systemd/system/ \033[39;49;00m' $ cp /opt/openhabian/includes/firemotd.service /opt/openhabian/includes/firemotd.timer /etc/systemd/system/  + cp /opt/openhabian/includes/firemotd.service /opt/openhabian/includes/firemotd.timer /etc/systemd/system/ + return 0 + cond_redirect systemctl -q daemon-reload + cond_redirect systemctl enable --now firemotd.timer + cond_echo '\nMake FireMotD check for new updates after using apt... ' + [[ -z '' ]] + echo -e '\033[33;01m\nMake FireMotD check for new updates after using apt... \033[39;49;00m'  Make FireMotD check for new updates after using apt...  + cond_redirect install -m 644 /opt/openhabian/includes/15firemotd /etc/apt/apt.conf.d/ + [[ -n '' ]] + echo -e '\n\033[90;01m$ install -m 644 /opt/openhabian/includes/15firemotd /etc/apt/apt.conf.d/ \033[39;49;00m' $ install -m 644 /opt/openhabian/includes/15firemotd /etc/apt/apt.conf.d/  + install -m 644 /opt/openhabian/includes/15firemotd /etc/apt/apt.conf.d/ + return 0 + cond_echo '\nInitial FireMotD updates check' + [[ -z '' ]] + echo -e '\033[33;01m\nInitial FireMotD updates check\033[39;49;00m'  Initial FireMotD updates check + cond_redirect FireMotD -S + [[ -n '' ]] + echo -e '\n\033[90;01m$ FireMotD -S \033[39;49;00m' $ FireMotD -S  + FireMotD -S W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://davesteele.github.io/comitup/repo comitup InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0959C4A3DCF89FBF W: Failed to fetch http://davesteele.github.io/comitup/repo/dists/comitup/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0959C4A3DCF89FBF W: Some index files failed to download. They have been ignored, or old ones used instead. + return 0 + echo OK OK + java_install_or_update Zulu11-32 + local branch ++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD + branch=stable ++ command -v java + [[ -x '' ]] ++ command -v java + [[ -x '' ]] + [[ Zulu11-32 == \Z\u\l\u\1\1\-\3\2 ]] + [[ -n 1 ]] + java_zulu_dir + local dir + for dir in /opt/jdk/* + [[ -d /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf ]] + return 0 ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:52:59_CET [openHABian] Installing cached version of Java to ensure that some form of Java is installed!' 2021-12-02_13:52:59_CET [openHABian] Installing cached version of Java to ensure that some form of Java is installed! + java_zulu_prerequisite Zulu11-32 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:52:59_CET [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... ' 2021-12-02_13:52:59_CET [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... + [[ Zulu11-32 == \Z\u\l\u\8\-\6\4 ]] + [[ Zulu11-32 == \Z\u\l\u\1\1\-\6\4 ]] + 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 + dpkg -s libc6:armhf libstdc++6:armhf zlib1g:armhf + echo OK OK + return 0 + java_zulu_install Zulu11-32 + local jdkArch + local jdkBin + local jdkLib ++ find /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin ... -print -quit + jdkBin=/opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin ++ find /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/lib ... -print -quit + jdkLib=/opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/lib + [[ Zulu11-32 == \Z\u\l\u\8\-\6\4 ]] + [[ Zulu11-32 == \Z\u\l\u\1\1\-\6\4 ]] + 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 + jdkArch=aarch32 + [[ Zulu11-32 == \Z\u\l\u\8\-\3\2 ]] + [[ Zulu11-32 == \Z\u\l\u\1\1\-\3\2 ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:52:59_CET [openHABian] Installing Java Zulu 11 32-Bit OpenJDK... ' 2021-12-02_13:52:59_CET [openHABian] Installing Java Zulu 11 32-Bit OpenJDK... + 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 + cond_redirect java_alternatives_reset + [[ -n '' ]] + echo -e '\n\033[90;01m$ java_alternatives_reset \033[39;49;00m' $ java_alternatives_reset  + java_alternatives_reset + update-alternatives --quiet --remove-all java + update-alternatives --quiet --remove-all jjs + update-alternatives --quiet --remove-all keytool + update-alternatives --quiet --remove-all pack200 + update-alternatives --quiet --remove-all rmid + update-alternatives --quiet --remove-all rmiregistry + update-alternatives --quiet --remove-all unpack200 + update-alternatives --quiet --remove-all jexec + update-alternatives --quiet --remove-all javac + return 2 + cond_redirect update-alternatives --install /usr/bin/java java /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/java 1000000 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-alternatives --install /usr/bin/java java /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/java 1000000 \033[39;49;00m' $ update-alternatives --install /usr/bin/java java /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/java 1000000  + update-alternatives --install /usr/bin/java java /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/java 1000000 update-alternatives: using /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/java to provide /usr/bin/java (java) in auto mode + return 0 + cond_redirect update-alternatives --install /usr/bin/jjs jjs /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/jjs 1000000 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-alternatives --install /usr/bin/jjs jjs /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/jjs 1000000 \033[39;49;00m' $ update-alternatives --install /usr/bin/jjs jjs /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/jjs 1000000  + update-alternatives --install /usr/bin/jjs jjs /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/jjs 1000000 update-alternatives: using /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode + return 0 + cond_redirect update-alternatives --install /usr/bin/keytool keytool /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/keytool 1000000 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-alternatives --install /usr/bin/keytool keytool /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/keytool 1000000 \033[39;49;00m' $ update-alternatives --install /usr/bin/keytool keytool /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/keytool 1000000  + update-alternatives --install /usr/bin/keytool keytool /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/keytool 1000000 update-alternatives: using /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode + return 0 + cond_redirect update-alternatives --install /usr/bin/pack200 pack200 /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/pack200 1000000 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-alternatives --install /usr/bin/pack200 pack200 /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/pack200 1000000 \033[39;49;00m' $ update-alternatives --install /usr/bin/pack200 pack200 /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/pack200 1000000  + update-alternatives --install /usr/bin/pack200 pack200 /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/pack200 1000000 update-alternatives: using /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode + return 0 + cond_redirect update-alternatives --install /usr/bin/rmid rmid /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/rmid 1000000 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-alternatives --install /usr/bin/rmid rmid /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/rmid 1000000 \033[39;49;00m' $ update-alternatives --install /usr/bin/rmid rmid /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/rmid 1000000  + update-alternatives --install /usr/bin/rmid rmid /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/rmid 1000000 update-alternatives: using /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode + return 0 + cond_redirect update-alternatives --install /usr/bin/rmiregistry rmiregistry /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/rmiregistry 1000000 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-alternatives --install /usr/bin/rmiregistry rmiregistry /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/rmiregistry 1000000 \033[39;49;00m' $ update-alternatives --install /usr/bin/rmiregistry rmiregistry /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/rmiregistry 1000000  + update-alternatives --install /usr/bin/rmiregistry rmiregistry /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/rmiregistry 1000000 update-alternatives: using /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode + return 0 + cond_redirect update-alternatives --install /usr/bin/unpack200 unpack200 /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/unpack200 1000000 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-alternatives --install /usr/bin/unpack200 unpack200 /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/unpack200 1000000 \033[39;49;00m' $ update-alternatives --install /usr/bin/unpack200 unpack200 /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/unpack200 1000000  + update-alternatives --install /usr/bin/unpack200 unpack200 /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/unpack200 1000000 update-alternatives: using /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode + return 0 + cond_redirect update-alternatives --install /usr/bin/jexec jexec /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/lib/jexec 1000000 + [[ -n '' ]] + echo -e '\n\033[90;01m$ update-alternatives --install /usr/bin/jexec jexec /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/lib/jexec 1000000 \033[39;49;00m' $ update-alternatives --install /usr/bin/jexec jexec /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/lib/jexec 1000000  + update-alternatives --install /usr/bin/jexec jexec /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/lib/jexec 1000000 update-alternatives: using /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode + return 0 + [[ Zulu11-32 == \Z\u\l\u\8* ]] + [[ Zulu11-32 == \Z\u\l\u\1\1* ]] + echo /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/lib + echo /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/lib/jli + echo /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/lib/client + ldconfig + echo OK OK + java_zulu_install_crypto_extension + [[ -n '' ]] + local jdkSecurity + local policyTempLocation ++ realpath /usr/bin/java ++ sed 's|/java||' + jdkSecurity=/opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/../lib/security ++ mktemp -d /tmp/openhabian.XXXXX + policyTempLocation=/tmp/openhabian.S3kpQ ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:00_CET [openHABian] Installing Java Zulu CEK to enable unlimited cipher strength... ' 2021-12-02_13:53:00_CET [openHABian] Installing Java Zulu CEK to enable unlimited cipher strength... + cond_redirect mkdir -p /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/../lib/security + [[ -n '' ]] + echo -e '\n\033[90;01m$ mkdir -p /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/../lib/security \033[39;49;00m' $ mkdir -p /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/../lib/security  + mkdir -p /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/../lib/security + return 0 + cond_redirect wget -qO /tmp/openhabian.S3kpQ/crypto.zip https://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip + [[ -n '' ]] + echo -e '\n\033[90;01m$ wget -qO /tmp/openhabian.S3kpQ/crypto.zip https://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip \033[39;49;00m' $ wget -qO /tmp/openhabian.S3kpQ/crypto.zip https://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip  + wget -qO /tmp/openhabian.S3kpQ/crypto.zip https://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip + return 0 + cond_redirect unzip /tmp/openhabian.S3kpQ/crypto.zip -d /tmp/openhabian.S3kpQ + [[ -n '' ]] + echo -e '\n\033[90;01m$ unzip /tmp/openhabian.S3kpQ/crypto.zip -d /tmp/openhabian.S3kpQ \033[39;49;00m' $ unzip /tmp/openhabian.S3kpQ/crypto.zip -d /tmp/openhabian.S3kpQ  + unzip /tmp/openhabian.S3kpQ/crypto.zip -d /tmp/openhabian.S3kpQ Archive: /tmp/openhabian.S3kpQ/crypto.zip creating: /tmp/openhabian.S3kpQ/ZuluJCEPolicies/ inflating: /tmp/openhabian.S3kpQ/ZuluJCEPolicies/LICENSE inflating: /tmp/openhabian.S3kpQ/ZuluJCEPolicies/README.txt inflating: /tmp/openhabian.S3kpQ/ZuluJCEPolicies/DISCLAIMER inflating: /tmp/openhabian.S3kpQ/ZuluJCEPolicies/local_policy.jar inflating: /tmp/openhabian.S3kpQ/ZuluJCEPolicies/US_export_policy.jar + return 0 + cond_redirect cp -u /tmp/openhabian.S3kpQ/ZuluJCEPolicies/local_policy.jar /tmp/openhabian.S3kpQ/ZuluJCEPolicies/US_export_policy.jar /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/../lib/security + [[ -n '' ]] + echo -e '\n\033[90;01m$ cp -u /tmp/openhabian.S3kpQ/ZuluJCEPolicies/local_policy.jar /tmp/openhabian.S3kpQ/ZuluJCEPolicies/US_export_policy.jar /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/../lib/security \033[39;49;00m' $ cp -u /tmp/openhabian.S3kpQ/ZuluJCEPolicies/local_policy.jar /tmp/openhabian.S3kpQ/ZuluJCEPolicies/US_export_policy.jar /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/../lib/security  + cp -u /tmp/openhabian.S3kpQ/ZuluJCEPolicies/local_policy.jar /tmp/openhabian.S3kpQ/ZuluJCEPolicies/US_export_policy.jar /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/../lib/security + return 0 + echo OK OK + cond_redirect rm -rf /tmp/openhabian.S3kpQ + [[ -n '' ]] + echo -e '\n\033[90;01m$ rm -rf /tmp/openhabian.S3kpQ \033[39;49;00m' $ rm -rf /tmp/openhabian.S3kpQ  + rm -rf /tmp/openhabian.S3kpQ + return 0 + 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 + [[ Zulu11-32 == \A\d\o\p\t\1\1 ]] + [[ Zulu11-32 != \A\d\o\p\t\1\1 ]] ++ java -version + [[ openjdk version "11.0.13" 2021-10-19 LTS OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS) OpenJDK Client VM Zulu11.52+13-CA (build 11.0.13+8-LTS, mixed mode) == *\A\d\o\p\t\O\p\e\n\J\D\K* ]] + [[ Zulu11-32 == \Z\u\l\u\8\-\6\4 ]] + [[ Zulu11-32 == \Z\u\l\u\1\1\-\6\4 ]] + [[ Zulu11-32 != \A\d\o\p\t\1\1 ]] + [[ Zulu11-32 == \Z\u\l\u\1\1\-\3\2 ]] + cond_redirect java_zulu_update_available Zulu11-32 + [[ -n '' ]] + echo -e '\n\033[90;01m$ java_zulu_update_available Zulu11-32 \033[39;49;00m' $ java_zulu_update_available Zulu11-32  + java_zulu_update_available Zulu11-32 ++ command -v java + [[ -x /usr/bin/java ]] + local availableVersion + local filter8 + local filter11 + local javaArch + local javaVersion + local jdkBin + local link + local requestedArch ++ command -v jq + [[ -x /usr/bin/jq ]] + filter8='[.zulu_version[] | tostring] | join(".")' + filter11='[.jdk_version[] | tostring] | join(".")' ++ find /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin ... -print -quit + jdkBin=/opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin ++ /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/java -version ++ grep -m 1 -o '[0-9]\{0,3\}\.[0-9]\{0,3\}\.[0-9]\{0,3\}[\.+][0-9]\{0,3\}' ++ sed 's|+|.|g' ++ head -1 + javaVersion=11.0.13.8 + link='https://api.azul.com/zulu/download/community/v1.0/bundles/latest/?os=linux&ext=tar.gz&javafx=false' + [[ Zulu11-32 == \Z\u\l\u\8\-\3\2 ]] + [[ Zulu11-32 == \Z\u\l\u\1\1\-\3\2 ]] + 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 + requestedArch=aarch32hf ++ curl -s -H 'Accept: application/json' 'https://api.azul.com/zulu/download/community/v1.0/bundles/latest/?os=linux&ext=tar.gz&javafx=false&jdk_version=11&arch=arm&hw_bitness=32&abi=hard_float' ++ jq -r '[.jdk_version[] | tostring] | join(".")' + availableVersion=11.0.13.8 + [[ -z aarch32hf ]] + [[ -z 11.0.13.8 ]] + [[ /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin == *\a\a\r\c\h\3\2\h\f* ]] + javaArch=aarch32hf + [[ /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin == *\i\6\8\6* ]] + [[ /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin == *\a\a\r\c\h\6\4* ]] + [[ /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin == *\x\6\4* ]] + [[ 11.0.13.8 == \1\1\.\0\.\1\3\.\8 ]] + [[ aarch32hf == \a\a\r\c\h\3\2\h\f ]] + return 1 + return 1 ++ command -v java + [[ -x /usr/bin/java ]] + cond_redirect java -version + [[ -n '' ]] + echo -e '\n\033[90;01m$ java -version \033[39;49;00m' $ java -version  + java -version openjdk version "11.0.13" 2021-10-19 LTS OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS) OpenJDK Client VM Zulu11.52+13-CA (build 11.0.13+8-LTS, mixed mode) + return 0 + openhab_setup openHAB2 stable + local introText + local successText + local repo + local openhabVersion + [[ openHAB2 == \o\p\e\n\H\A\B\3 ]] + ohPkgName=openhab2 + [[ 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 openHAB2 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 openHAB2 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/openhab2'\'' 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 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:03_CET [openHABian] Beginning install of latest openHAB2 release (stable)... ' 2021-12-02_13:53:03_CET [openHABian] Beginning install of latest openHAB2 release (stable)... + [[ -n '' ]] + echo OK OK + running_in_docker + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + [[ -z '' ]] + add_keys https://openhab.jfrog.io/artifactory/api/gpg/key/public + local repoKey ++ mktemp /tmp/openhabian.XXXXX + repoKey=/tmp/openhabian.0WERA ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:03_CET [openHABian] Adding required keys to apt... ' 2021-12-02_13:53:03_CET [openHABian] Adding required keys to apt... + cond_redirect wget -qO /tmp/openhabian.0WERA https://openhab.jfrog.io/artifactory/api/gpg/key/public + [[ -n '' ]] + echo -e '\n\033[90;01m$ wget -qO /tmp/openhabian.0WERA https://openhab.jfrog.io/artifactory/api/gpg/key/public \033[39;49;00m' $ wget -qO /tmp/openhabian.0WERA https://openhab.jfrog.io/artifactory/api/gpg/key/public  + wget -qO /tmp/openhabian.0WERA https://openhab.jfrog.io/artifactory/api/gpg/key/public + return 0 + cond_redirect apt-key add /tmp/openhabian.0WERA + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-key add /tmp/openhabian.0WERA \033[39;49;00m' $ apt-key add /tmp/openhabian.0WERA  + apt-key add /tmp/openhabian.0WERA Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK + return 0 + echo OK OK + rm -f /tmp/openhabian.0WERA + rm -f '/etc/apt/sources.list.d/openhab2*.list' + echo 'deb https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main' ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:06_CET [openHABian] Installing selected openHAB version... ' 2021-12-02_13:53:06_CET [openHABian] Installing selected openHAB version... + cond_redirect apt-get update + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get update \033[39;49;00m' $ apt-get update  + apt-get update E: Conflicting values set for option Signed-By regarding source https://openhab.jfrog.io/artifactory/openhab-linuxpkg/ stable: /usr/share/keyrings/openhab.gpg != E: The list of sources could not be read. + return 100 + echo 'FAILED (update apt lists)' FAILED (update apt lists) + return 1 + vim_openhab_syntax ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:06_CET [openHABian] Adding openHAB syntax to vim editor... ' 2021-12-02_13:53:06_CET [openHABian] Adding openHAB syntax to vim editor... + cond_redirect mkdir -p /home/marino/.vim/ftdetect /home/marino/.vim/syntax + [[ -n '' ]] + echo -e '\n\033[90;01m$ mkdir -p /home/marino/.vim/ftdetect /home/marino/.vim/syntax \033[39;49;00m' $ mkdir -p /home/marino/.vim/ftdetect /home/marino/.vim/syntax  + mkdir -p /home/marino/.vim/ftdetect /home/marino/.vim/syntax + return 0 + cond_redirect wget -O /home/marino/.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/marino/.vim/syntax/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/syntax/openhab.vim \033[39;49;00m' $ wget -O /home/marino/.vim/syntax/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/syntax/openhab.vim  + wget -O /home/marino/.vim/syntax/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/syntax/openhab.vim --2021-12-02 13:53:06-- 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] --2021-12-02 13:53:07-- https://raw.githubusercontent.com/cyberkov/openhab-vim/master/syntax/openhab.vim Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 6065 (5.9K) [text/plain] Saving to: ‘/home/marino/.vim/syntax/openhab.vim’ 0K ..... 100% 568K=0.01s 2021-12-02 13:53:08 (568 KB/s) - ‘/home/marino/.vim/syntax/openhab.vim’ saved [6065/6065] + return 0 + cond_redirect wget -O /home/marino/.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/marino/.vim/ftdetect/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/ftdetect/openhab.vim \033[39;49;00m' $ wget -O /home/marino/.vim/ftdetect/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/ftdetect/openhab.vim  + wget -O /home/marino/.vim/ftdetect/openhab.vim https://github.com/cyberkov/openhab-vim/raw/master/ftdetect/openhab.vim --2021-12-02 13:53:08-- 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] --2021-12-02 13:53:09-- https://raw.githubusercontent.com/cyberkov/openhab-vim/master/ftdetect/openhab.vim Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 661 [text/plain] Saving to: ‘/home/marino/.vim/ftdetect/openhab.vim’ 0K 100% 410K=0.002s 2021-12-02 13:53:10 (410 KB/s) - ‘/home/marino/.vim/ftdetect/openhab.vim’ saved [661/661] + return 0 + chown -R marino:marino /home/marino/.vim + echo OK OK + nano_openhab_syntax ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:10_CET [openHABian] Adding openHAB syntax to nano editor... ' 2021-12-02_13:53:10_CET [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' $ wget -O /usr/share/nano/openhab.nanorc https://github.com/airix1/openhabnano/raw/master/openhab.nanorc  + wget -O /usr/share/nano/openhab.nanorc https://github.com/airix1/openhabnano/raw/master/openhab.nanorc --2021-12-02 13:53:10-- 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] --2021-12-02 13:53:11-- https://raw.githubusercontent.com/airix1/openhabnano/master/openhab.nanorc Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.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% 2.05M=0.001s 2021-12-02 13:53:12 (2.05 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 ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:12_CET [openHABian] Adding openHAB scheme to multitail... ' 2021-12-02_13:53:12_CET [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' $ sed -i -e /^.*multitail.*openhab.*$/d /etc/multitail.conf  + sed -i -e '/^.*multitail.*openhab.*$/d' /etc/multitail.conf + return 0 + cond_redirect sed -i -e 's|^# misc.*$|# openHAB logs\\ninclude:/etc/multitail.openhab.conf\\n#\\n# misc|g' /etc/multitail.conf + [[ -n '' ]] + echo -e '\n\033[90;01m$ sed -i -e s|^# misc.*$|# openHAB logs\\ninclude:/etc/multitail.openhab.conf\\n#\\n# misc|g /etc/multitail.conf \033[39;49;00m' $ sed -i -e s|^# misc.*$|# openHAB logs\ninclude:/etc/multitail.openhab.conf\n#\n# misc|g /etc/multitail.conf  + sed -i -e 's|^# misc.*$|# openHAB logs\\ninclude:/etc/multitail.openhab.conf\\n#\\n# misc|g' /etc/multitail.conf + return 0 + echo OK OK + srv_bind_mounts + [[ -f /etc/ztab ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:12_CET [openHABian] Preparing openHAB folder mounts under '\''/srv/openhab2-*'\''... ' 2021-12-02_13:53:12_CET [openHABian] Preparing openHAB folder mounts under '/srv/openhab2-*'... + cond_redirect umount -q /srv/openhab2-sys /srv/openhab2-conf /srv/openhab2-userdata /srv/openhab2-addons + [[ -n '' ]] + echo -e '\n\033[90;01m$ umount -q /srv/openhab2-sys /srv/openhab2-conf /srv/openhab2-userdata /srv/openhab2-addons \033[39;49;00m' $ umount -q /srv/openhab2-sys /srv/openhab2-conf /srv/openhab2-userdata /srv/openhab2-addons  + umount -q /srv/openhab2-sys /srv/openhab2-conf /srv/openhab2-userdata /srv/openhab2-addons umount: /srv/openhab2-sys: no mount point specified. umount: /srv/openhab2-conf: no mount point specified. umount: /srv/openhab2-userdata: no mount point specified. umount: /srv/openhab2-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' $ rm -f /etc/systemd/system/srv*.mount  + rm -f '/etc/systemd/system/srv*.mount' + return 0 + cond_redirect mkdir -p /srv/openhab2-sys /srv/openhab2-conf /srv/openhab2-userdata /srv/openhab2-addons + [[ -n '' ]] + echo -e '\n\033[90;01m$ mkdir -p /srv/openhab2-sys /srv/openhab2-conf /srv/openhab2-userdata /srv/openhab2-addons \033[39;49;00m' $ mkdir -p /srv/openhab2-sys /srv/openhab2-conf /srv/openhab2-userdata /srv/openhab2-addons  + mkdir -p /srv/openhab2-sys /srv/openhab2-conf /srv/openhab2-userdata /srv/openhab2-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' $ cp /opt/openhabian/includes/srv_readme.txt /srv/README.txt  + 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' $ chmod ugo+w /srv /srv/README.txt  + chmod ugo+w /srv /srv/README.txt + return 0 + cond_redirect create_mount /usr/share/openhab2 sys + [[ -n '' ]] + echo -e '\n\033[90;01m$ create_mount /usr/share/openhab2 sys \033[39;49;00m' $ create_mount /usr/share/openhab2 sys  + create_mount /usr/share/openhab2 sys + running_in_docker + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + local destination + local mountPoint + local source + destination=sys ++ systemd-escape --path /srv/openhab2-sys --suffix mount + mountPoint='srv-openhab2\x2dsys.mount' + source=/usr/share/openhab2 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:12_CET [openHABian] Creating mount /usr/share/openhab2 in '\''/srv/openhab2-sys'\''... ' 2021-12-02_13:53:12_CET [openHABian] Creating mount /usr/share/openhab2 in '/srv/openhab2-sys'... + sed -e 's|%SRC|/usr/share/openhab2|g; s|%DEST|sys|g' /opt/openhabian/includes/srv_mount_template + cond_redirect systemctl -q daemon-reload + cond_redirect systemctl enable --now 'srv-openhab2\x2dsys.mount' + [[ -n '' ]] + echo -e '\n\033[90;01m$ systemctl enable --now srv-openhab2\x2dsys.mount \033[39;49;00m' $ systemctl enable --now srv-openhab2-sys.mount  + systemctl enable --now 'srv-openhab2\x2dsys.mount' Created symlink /etc/systemd/system/multi-user.target.wants/srv-openhab2\x2dsys.mount → /etc/systemd/system/srv-openhab2\x2dsys.mount. + return 0 + echo OK OK + return 0 + cond_redirect create_mount /etc/openhab2 conf + [[ -n '' ]] + echo -e '\n\033[90;01m$ create_mount /etc/openhab2 conf \033[39;49;00m' $ create_mount /etc/openhab2 conf  + create_mount /etc/openhab2 conf + running_in_docker + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + local destination + local mountPoint + local source + destination=conf ++ systemd-escape --path /srv/openhab2-conf --suffix mount + mountPoint='srv-openhab2\x2dconf.mount' + source=/etc/openhab2 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:15_CET [openHABian] Creating mount /etc/openhab2 in '\''/srv/openhab2-conf'\''... ' 2021-12-02_13:53:15_CET [openHABian] Creating mount /etc/openhab2 in '/srv/openhab2-conf'... + sed -e 's|%SRC|/etc/openhab2|g; s|%DEST|conf|g' /opt/openhabian/includes/srv_mount_template + cond_redirect systemctl -q daemon-reload + cond_redirect systemctl enable --now 'srv-openhab2\x2dconf.mount' + [[ -n '' ]] + echo -e '\n\033[90;01m$ systemctl enable --now srv-openhab2\x2dconf.mount \033[39;49;00m' $ systemctl enable --now srv-openhab2-conf.mount  + systemctl enable --now 'srv-openhab2\x2dconf.mount' Created symlink /etc/systemd/system/multi-user.target.wants/srv-openhab2\x2dconf.mount → /etc/systemd/system/srv-openhab2\x2dconf.mount. + return 0 + echo OK OK + return 0 + cond_redirect create_mount /var/lib/openhab2 userdata + [[ -n '' ]] + echo -e '\n\033[90;01m$ create_mount /var/lib/openhab2 userdata \033[39;49;00m' $ create_mount /var/lib/openhab2 userdata  + create_mount /var/lib/openhab2 userdata + running_in_docker + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + local destination + local mountPoint + local source + destination=userdata ++ systemd-escape --path /srv/openhab2-userdata --suffix mount + mountPoint='srv-openhab2\x2duserdata.mount' + source=/var/lib/openhab2 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:17_CET [openHABian] Creating mount /var/lib/openhab2 in '\''/srv/openhab2-userdata'\''... ' 2021-12-02_13:53:17_CET [openHABian] Creating mount /var/lib/openhab2 in '/srv/openhab2-userdata'... + sed -e 's|%SRC|/var/lib/openhab2|g; s|%DEST|userdata|g' /opt/openhabian/includes/srv_mount_template + cond_redirect systemctl -q daemon-reload + cond_redirect systemctl enable --now 'srv-openhab2\x2duserdata.mount' + [[ -n '' ]] + echo -e '\n\033[90;01m$ systemctl enable --now srv-openhab2\x2duserdata.mount \033[39;49;00m' $ systemctl enable --now srv-openhab2-userdata.mount  + systemctl enable --now 'srv-openhab2\x2duserdata.mount' Created symlink /etc/systemd/system/multi-user.target.wants/srv-openhab2\x2duserdata.mount → /etc/systemd/system/srv-openhab2\x2duserdata.mount. + return 0 + echo OK OK + return 0 + cond_redirect create_mount /usr/share/openhab2/addons addons + [[ -n '' ]] + echo -e '\n\033[90;01m$ create_mount /usr/share/openhab2/addons addons \033[39;49;00m' $ create_mount /usr/share/openhab2/addons addons  + create_mount /usr/share/openhab2/addons addons + running_in_docker + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + local destination + local mountPoint + local source + destination=addons ++ systemd-escape --path /srv/openhab2-addons --suffix mount + mountPoint='srv-openhab2\x2daddons.mount' + source=/usr/share/openhab2/addons ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:20_CET [openHABian] Creating mount /usr/share/openhab2/addons in '\''/srv/openhab2-addons'\''... ' 2021-12-02_13:53:20_CET [openHABian] Creating mount /usr/share/openhab2/addons in '/srv/openhab2-addons'... + sed -e 's|%SRC|/usr/share/openhab2/addons|g; s|%DEST|addons|g' /opt/openhabian/includes/srv_mount_template + cond_redirect systemctl -q daemon-reload + cond_redirect systemctl enable --now 'srv-openhab2\x2daddons.mount' + [[ -n '' ]] + echo -e '\n\033[90;01m$ systemctl enable --now srv-openhab2\x2daddons.mount \033[39;49;00m' $ systemctl enable --now srv-openhab2-addons.mount  + systemctl enable --now 'srv-openhab2\x2daddons.mount' Created symlink /etc/systemd/system/multi-user.target.wants/srv-openhab2\x2daddons.mount → /etc/systemd/system/srv-openhab2\x2daddons.mount. + return 0 + echo OK OK + return 0 + echo OK OK + [[ -f /etc/ztab ]] + misc_system_settings ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:23_CET [openHABian] Applying miscellaneous system settings... ' 2021-12-02_13:53:23_CET [openHABian] Applying miscellaneous system settings... + cond_echo 'Setting Java and arping file capabilites' + [[ -z '' ]] + echo -e '\033[33;01mSetting Java and arping file capabilites\033[39;49;00m' Setting Java and arping file capabilites +++ command -v java ++ realpath /usr/bin/java + cond_redirect setcap 'cap_net_raw,cap_net_admin=+eip cap_net_bind_service=+ep' /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/java + [[ -n '' ]] + echo -e '\n\033[90;01m$ setcap cap_net_raw,cap_net_admin=+eip cap_net_bind_service=+ep /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/java \033[39;49;00m' $ setcap cap_net_raw,cap_net_admin=+eip cap_net_bind_service=+ep /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/java  + setcap 'cap_net_raw,cap_net_admin=+eip cap_net_bind_service=+ep' /opt/jdk/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf/bin/java + return 0 + cond_redirect setcap 'cap_net_raw,cap_net_admin=+eip cap_net_bind_service=+ep' /usr/sbin/arping + [[ -n '' ]] + echo -e '\n\033[90;01m$ setcap cap_net_raw,cap_net_admin=+eip cap_net_bind_service=+ep /usr/sbin/arping \033[39;49;00m' $ setcap cap_net_raw,cap_net_admin=+eip cap_net_bind_service=+ep /usr/sbin/arping  + setcap 'cap_net_raw,cap_net_admin=+eip cap_net_bind_service=+ep' /usr/sbin/arping + return 0 + 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' Creating a README note for end user's home folder + 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' Creating SSH key files + cond_redirect mkdir -p /home/marino/.ssh + [[ -n '' ]] + echo -e '\n\033[90;01m$ mkdir -p /home/marino/.ssh \033[39;49;00m' $ mkdir -p /home/marino/.ssh  + mkdir -p /home/marino/.ssh + return 0 + cond_redirect chmod 700 /home/marino/.ssh + [[ -n '' ]] + echo -e '\n\033[90;01m$ chmod 700 /home/marino/.ssh \033[39;49;00m' $ chmod 700 /home/marino/.ssh  + chmod 700 /home/marino/.ssh + return 0 + cond_redirect touch /home/marino/.ssh/authorized_keys + [[ -n '' ]] + echo -e '\n\033[90;01m$ touch /home/marino/.ssh/authorized_keys \033[39;49;00m' $ touch /home/marino/.ssh/authorized_keys  + touch /home/marino/.ssh/authorized_keys + return 0 + cond_redirect chmod 600 /home/marino/.ssh/authorized_keys + [[ -n '' ]] + echo -e '\n\033[90;01m$ chmod 600 /home/marino/.ssh/authorized_keys \033[39;49;00m' $ chmod 600 /home/marino/.ssh/authorized_keys  + chmod 600 /home/marino/.ssh/authorized_keys + return 0 + cond_redirect chown -R marino:marino /home/marino/.ssh + [[ -n '' ]] + echo -e '\n\033[90;01m$ chown -R marino:marino /home/marino/.ssh \033[39;49;00m' $ chown -R marino:marino /home/marino/.ssh  + chown -R marino:marino /home/marino/.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' Creating persistent systemd journal folder location: /var/log/journal + cond_redirect mkdir -p /var/log/journal + [[ -n '' ]] + echo -e '\n\033[90;01m$ mkdir -p /var/log/journal \033[39;49;00m' $ mkdir -p /var/log/journal  + 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' $ systemd-tmpfiles --create --prefix /var/log/journal  + 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' Keeping at most 30 days of systemd journal entries + cond_redirect journalctl --vacuum-time=30d + [[ -n '' ]] + echo -e '\n\033[90;01m$ journalctl --vacuum-time=30d \033[39;49;00m' $ journalctl --vacuum-time=30d  + journalctl --vacuum-time=30d Vacuuming done, freed 0B of archived journals from /run/log/journal. Vacuuming done, freed 0B of archived journals from /var/log/journal. Deleted archived journal /var/log/journal/920f560b15774923bab4411e52d54e92/system@0005cf90442cdbca-d281c2bbdd94a1a8.journal~ (8.0M). Deleted archived journal /var/log/journal/920f560b15774923bab4411e52d54e92/system@d8f9986f4f974bd3a67cabc7c2e9acd9-0000000000000001-0005cf9044276f8c.journal (8.0M). Vacuuming done, freed 16.0M of archived journals from /var/log/journal/920f560b15774923bab4411e52d54e92. + 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' Setting a distinguishable apt User-Agent + echo 'Acquire { http::User-Agent "Debian APT-HTTP/1.3 openHABian"; };' + echo OK OK + samba_setup + local serviceFile=/lib/systemd/system/smbd.service ++ command -v samba + [[ -x '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:23_CET [openHABian] Installing Samba... ' 2021-12-02_13:53:23_CET [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' $ apt-get install --yes samba  + apt-get install --yes samba E: Conflicting values set for option Signed-By regarding source https://openhab.jfrog.io/artifactory/openhab-linuxpkg/ stable: /usr/share/keyrings/openhab.gpg != E: The list of sources could not be read. E: Conflicting values set for option Signed-By regarding source https://openhab.jfrog.io/artifactory/openhab-linuxpkg/ stable: /usr/share/keyrings/openhab.gpg != E: The list of sources could not be read. + return 100 + echo FAILED FAILED + return 1 + permissions_corrections + local gpioDir=/sys/devices/platform/soc + groups=('audio' 'bluetooth' 'dialout' 'gpio' 'tty') + local groups + openhabFolders=('/etc/openhab2' '/var/lib/openhab2' '/var/log/openhab2' '/usr/share/openhab2') + local openhabFolders + local openhabHome=/var/lib/openhab2 + local retval=0 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:23_CET [openHABian] Applying file permissions recommendations... ' 2021-12-02_13:53:23_CET [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 ++ grep Status ++ cut '-d ' -f2 + [[ '' == \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 + add_admin_ssh_key + local karafKeys=/var/lib/openhab2/etc/keys.properties + local userName=marino + local sshDir + local keyFile ++ getent passwd marino ++ cut -d: -f6 + sshDir=/home/marino/.ssh + keyFile=/home/marino/.ssh/authorized_keys + [[ -z '' ]] + return 0 + 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' $ sed -i -e s|^userpw=.*$|\#userpw=xxxxxx|g /etc/openhabian.conf  + sed -i -e 's|^userpw=.*$|\#userpw=xxxxxx|g' /etc/openhabian.conf + return 0 + frontail_setup light + local frontailBase + local frontailUser=frontail + local frontailTheme + [[ light == \l\i\g\h\t ]] + frontailTheme=openhab ++ command -v npm + [[ -x '' ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:23_CET [openHABian] Installing Frontail prerequsites (NodeJS)... ' 2021-12-02_13:53:23_CET [openHABian] Installing Frontail prerequsites (NodeJS)... + cond_redirect nodejs_setup + [[ -n '' ]] + echo -e '\n\033[90;01m$ nodejs_setup \033[39;49;00m' $ nodejs_setup  + nodejs_setup ++ command -v npm + [[ -x '' ]] + local link=https://unofficial-builds.nodejs.org/download/release/v12.19.0/node-v12.19.0-linux-armv6l.tar.xz + local myDistro + local temp ++ command -v npm + [[ -x '' ]] + 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 ++ command -v lsb_release + [[ -x /usr/bin/lsb_release ]] ++ lsb_release -sc + myDistro=bullseye ++ mktemp /tmp/openhabian.XXXXX + temp=/tmp/openhabian.c1aZl + [[ -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 + local repoKey ++ mktemp /tmp/openhabian.XXXXX + repoKey=/tmp/openhabian.MqsyA ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:24_CET [openHABian] Adding required keys to apt... ' 2021-12-02_13:53:24_CET [openHABian] Adding required keys to apt... + cond_redirect wget -qO /tmp/openhabian.MqsyA https://deb.nodesource.com/gpgkey/nodesource.gpg.key + [[ -n '' ]] + echo -e '\n\033[90;01m$ wget -qO /tmp/openhabian.MqsyA https://deb.nodesource.com/gpgkey/nodesource.gpg.key \033[39;49;00m' $ wget -qO /tmp/openhabian.MqsyA https://deb.nodesource.com/gpgkey/nodesource.gpg.key  + wget -qO /tmp/openhabian.MqsyA https://deb.nodesource.com/gpgkey/nodesource.gpg.key + return 0 + cond_redirect apt-key add /tmp/openhabian.MqsyA + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-key add /tmp/openhabian.MqsyA \033[39;49;00m' $ apt-key add /tmp/openhabian.MqsyA  + apt-key add /tmp/openhabian.MqsyA Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK + return 0 + echo OK OK + rm -f /tmp/openhabian.MqsyA ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:26_CET [openHABian] Adding NodeSource repository to apt... ' 2021-12-02_13:53:26_CET [openHABian] Adding NodeSource repository to apt... + echo 'deb https://deb.nodesource.com/node_12.x bullseye main' + echo 'deb-src https://deb.nodesource.com/node_12.x bullseye main' + [[ -n '' ]] + cond_redirect apt-get update + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get update \033[39;49;00m' $ apt-get update  + apt-get update E: Conflicting values set for option Signed-By regarding source https://openhab.jfrog.io/artifactory/openhab-linuxpkg/ stable: /usr/share/keyrings/openhab.gpg != E: The list of sources could not be read. + return 100 + echo 'FAILED (update apt lists)' FAILED (update apt lists) + return 1 + return 1 + echo FAILED FAILED + return 1 + zram_setup + is_pifour_8GB + [[ '' == \p\i\4\_\8\g\b ]] ++ awk '/MemTotal/ {print $2}' /proc/meminfo + totalMemory=3982104 + 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 + [[ 3982104 -gt 5000000 ]] + return 1 + [[ -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=3982104 + [[ -z 3982104 ]] + [[ 3982104 -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 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:26_CET [openHABian] Installing ZRAM... ' 2021-12-02_13:53:26_CET [openHABian] Installing ZRAM... + cond_redirect init_zram_mounts install + [[ -n '' ]] + echo -e '\n\033[90;01m$ init_zram_mounts install \033[39;49;00m' $ init_zram_mounts install  + 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 disklistFileAWS=/etc/amanda/openhab-aws/disklist + local disklistFileDir=/etc/amanda/openhab-dir/disklist + 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 libattr1-dev ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:26_CET [openHABian] Installing ZRAM required packages (make, libattr1-dev)... ' 2021-12-02_13:53:26_CET [openHABian] Installing ZRAM required packages (make, libattr1-dev)... + cond_redirect apt-get install --yes make libattr1-dev + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get install --yes make libattr1-dev \033[39;49;00m' $ apt-get install --yes make libattr1-dev  + apt-get install --yes make libattr1-dev E: Conflicting values set for option Signed-By regarding source https://openhab.jfrog.io/artifactory/openhab-linuxpkg/ stable: /usr/share/keyrings/openhab.gpg != E: The list of sources could not be read. E: Conflicting values set for option Signed-By regarding source https://openhab.jfrog.io/artifactory/openhab-linuxpkg/ stable: /usr/share/keyrings/openhab.gpg != E: The list of sources could not be read. + return 100 + echo FAILED FAILED + return 1 + return 1 + echo FAILED FAILED + return 1 + exim_setup + [[ -n 1 ]] + [[ -z '' ]] ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:53:26_CET [openHABian] Beginning Mail Transfer Agent setup... CANCELED (no configuration provided)' 2021-12-02_13:53:26_CET [openHABian] Beginning Mail Transfer Agent setup... CANCELED (no configuration provided) + return 0 + 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 + [[ -n 1 ]] + [[ ! -v '' ]] ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:53:26_CET [openHABian] tailscale VPN installation... SKIPPED (no preauthkey defined)' 2021-12-02_13:53:26_CET [openHABian] tailscale VPN installation... SKIPPED (no preauthkey defined) + return 1 + setup_mirror_SD install + [[ -n 1 ]] + [[ -z '' ]] ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:53:26_CET [openHABian] Setting up automated SD mirroring and backup... CANCELED (no configuration provided)' 2021-12-02_13:53:26_CET [openHABian] Setting up automated SD mirroring and backup... CANCELED (no configuration provided) + return 0 + install_cleanup ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-12-02_13:53:26_CET [openHABian] Cleaning up... ' 2021-12-02_13:53:26_CET [openHABian] Cleaning up... + cond_redirect systemctl -q daemon-reload + cond_redirect apt-get clean + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get clean \033[39;49;00m' $ apt-get clean  + 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' $ apt-get autoremove --yes  + apt-get autoremove --yes E: Conflicting values set for option Signed-By regarding source https://openhab.jfrog.io/artifactory/openhab-linuxpkg/ stable: /usr/share/keyrings/openhab.gpg != E: The list of sources could not be read. E: Conflicting values set for option Signed-By regarding source https://openhab.jfrog.io/artifactory/openhab-linuxpkg/ stable: /usr/share/keyrings/openhab.gpg != E: The list of sources could not be read. + return 100 + echo FAILED FAILED + return 1 + cd / + rm -f /opt/openHABian-install-inprogress + touch /opt/openHABian-install-successful ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:53:28_CET [openHABian] Execution of '\''openhabian-config unattended'\'' completed.' 2021-12-02_13:53:28_CET [openHABian] Execution of 'openhabian-config unattended' completed. ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:53:28_CET [openHABian] First time setup successfully finished. Rebooting your system!' 2021-12-02_13:53:28_CET [openHABian] First time setup successfully finished. Rebooting your system! ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:53:28_CET [openHABian] After rebooting the openHAB dashboard will be available at: http://oh-test:8080' 2021-12-02_13:53:28_CET [openHABian] After rebooting the openHAB dashboard will be available at: http://oh-test:8080 ++ timestamp ++ date +%F_%T_%Z + echo '2021-12-02_13:53:28_CET [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.' 2021-12-02_13:53:28_CET [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 bash: /boot/webserver.bash: No such file or directory + sleep 12 ++ command -v python3 + [[ -x /usr/bin/python3 ]] + bash /boot/webserver.bash cleanup bash: /boot/webserver.bash: No such file or directory + running_in_docker + [[ -n '' ]] + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + reboot