Installation fails on Armbian Odroid M1 - please help

Hi,

I am running into trouble with my Nextcloudpi installation on Odroid M1 running armbian.
Trying to get my head into this for a couple of days now, I would need some help to identify the root cause.

Status quo:

  • Running latest armbian on Odroid M1, booting well off SD
  • Armbian can be Update with sudo apt update and sudo apt dist-upgrade without issues resulting in Linux odroidm1 6.1.12-rk3568-odroid #23.02.2 SMP PREEMPT Sat Feb 18 00:05:38 UTC 2023 aarch64 GNU/Linux
  • It’s based on debian bullseye as requested per installer requirements
uho@odroidm1:~$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
  • Following the CURL installation methode, I modified the install.sh uncommenting the line about debugging to DBG=x
  • Verification on a x86 VM show that the installer runs well on plain debian 11, problem expected in armbian platform
  • The install.sh kicks out at an unknown location for unknown reason (some PAM authentication stuff not working out)
----%< SNIP ----
Site ncp-activation already enabled
+ id -u ncp
+ echo -e 'ownyourbits\nownyourbits'
+ passwd ncp
New password: Retype new password: passwd: password updated successfully
+ is_docker
+ [[ -f /.dockerenv ]]
+ [[ -f /.docker-image ]]
+ [[ '' == 1 ]]
+ is_lxc
+ grep -q container=lxc /proc/1/environ
+ chsh -s /usr/sbin/nologin ncp
Password: 
chsh: PAM: Authentication failure
+ rm -rf /tmp/nextcloudpi.fE33oo

Looking at the install script, I am totally lost, where this might happen.
Maybe someone familiar with the installation script(s) can help me getting my installation working out.

THX
Uwe

uho@odroidm1:~$ sudo bash install.sh | tee ncp_install.log
++ mktemp -d /tmp/nextcloudpi.XXXXXX
+ TMPDIR=/tmp/nextcloudpi.fE33oo
+ trap 'rm -rf "/tmp/nextcloudpi.fE33oo"' 0 1 2 3 15
+ [[ 0 -ne 0 ]]
+ export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ type mysqld
+ echo '>>> WARNING: existing mysqld configuration will be changed <<<'
+ type mysqld
>>> WARNING: existing mysqld configuration will be changed <<<
+ mysql -e 'use nextcloud'
+ echo 'Deby Get dependencies'
+ apt-get update
Deby Get dependencies
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
Hit:4 http://security.debian.org bullseye-security InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://mirrors.xtom.de/armbian bullseye InRelease
Reading package lists...
+ apt-get install --no-install-recommends -y git ca-certificates sudo lsb-release wget
Reading package lists...
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20210119).
git is already the newest version (1:2.30.2-1+deb11u2).
lsb-release is already the newest version (11.1.0).
sudo is already the newest version (1.9.5p2-3+deb11u1).
wget is already the newest version (1.21-1+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ [[ '' == '' ]]
+ echo 'Getting build code...'
+ CODE_DIR=/tmp/nextcloudpi.fE33oo/nextcloudpi
Getting build code...
+ git clone -b master https://github.com/nextcloud/nextcloudpi.git /tmp/nextcloudpi.fE33oo/nextcloudpi
Cloning into '/tmp/nextcloudpi.fE33oo/nextcloudpi'...
remote: Enumerating objects: 14363, done.
remote: Counting objects: 100% (437/437), done.
remote: Compressing objects: 100% (272/272), done.
remote: Total 14363 (delta 214), reused 328 (delta 161), pack-reused 13926
Receiving objects: 100% (14363/14363), 8.12 MiB | 8.45 MiB/s, done.
Resolving deltas: 100% (10006/10006), done.
+ cd /tmp/nextcloudpi.fE33oo/nextcloudpi
+ echo -e '\nInstalling NextCloudPi...'

Installing NextCloudPi...
+ source etc/library.sh
++ export CFGDIR=/usr/local/etc/ncp-config.d
++ CFGDIR=/usr/local/etc/ncp-config.d
++ export BINDIR=/usr/local/bin/ncp
++ BINDIR=/usr/local/bin/ncp
++ export NCDIR=/var/www/nextcloud
++ NCDIR=/var/www/nextcloud
++ export ncc=/usr/local/bin/ncc
++ ncc=/usr/local/bin/ncc
++ export NCPCFG=etc/ncp.cfg
++ NCPCFG=etc/ncp.cfg
+++ dpkg --print-architecture
++ export ARCH=arm64
++ ARCH=arm64
++ [[ arm64 =~ ^(armhf|arm)$ ]]
++ [[ arm64 == \a\r\m\6\4 ]]
++ ARCH=aarch64
++ [[ aarch64 == \a\m\d\6\4 ]]
++ export SYSTEMD_PAGER=
++ SYSTEMD_PAGER=
++ [[ -f etc/ncp.cfg ]]
++ [[ -f etc/ncp.cfg ]]
+++ ps -p 1 --no-headers -o %c
++ [[ systemd == \s\y\s\t\e\m\d ]]
++ [[ -d /run/systemd/system ]]
++ [[ -d /run/systemd/system ]]
++ INIT_SYSTEM=systemd
++ export INIT_SYSTEM
++ command -v jq
+++ jq -r .nextcloud_version
++ NCLATESTVER=26.0.1
+++ jq -r .php_version
++ PHPVER=8.1
+++ jq -r .release
++ RELEASE=bullseye
++ grep -Eh '^deb ' /etc/apt/sources.list
++ grep bullseye-security
++ RELEASE=bullseye-security
++ command -v ncc
+++ ncc status
+++ grep version:
+++ awk '{ print $3 }'
++ NCVER=26.0.1.1
+ check_distro etc/ncp.cfg
+ local cfg=etc/ncp.cfg
++ jq -r .release etc/ncp.cfg
+ local supported=bullseye
+ grep -q bullseye /dev/fd/63
++ lsb_release -sc
+ return 0
+ touch /.ncp-image
+ mkdir -p /usr/local/etc/ncp-config.d/
+ cp etc/ncp-config.d/nc-nextcloud.cfg /usr/local/etc/ncp-config.d/
+ cp etc/library.sh /usr/local/etc/
+ cp etc/ncp.cfg /usr/local/etc/
+ cp -r etc/ncp-templates /usr/local/etc/
+ install_app lamp.sh
+ local ncp_app=lamp.sh
+ [[ -f lamp.sh ]]
+ local script=lamp.sh
++ basename lamp.sh .sh
+ local ncp_app=lamp
+ unset install
+ source lamp.sh
++ APTINSTALL='apt-get install -y --no-install-recommends'
++ export DEBIAN_FRONTEND=noninteractive
++ DEBIAN_FRONTEND=noninteractive
+ echo 'Installing lamp'
Installing lamp
+ install
+ set -x
+ wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
--2023-06-22 15:37:35--  https://packages.sury.org/php/apt.gpg
Resolving packages.sury.org (packages.sury.org)... 138.199.37.230, 2400:52e0:1e00::1080:1
Connecting to packages.sury.org (packages.sury.org)|138.199.37.230|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1769 (1.7K) [application/octet-stream]
Saving to: β€˜/etc/apt/trusted.gpg.d/php.gpg’

/etc/apt/trusted.gpg.d/php.gpg   100%[==========================================================>]   1.73K  --.-KB/s    in 0s      

2023-06-22 15:37:35 (41.9 MB/s) - β€˜/etc/apt/trusted.gpg.d/php.gpg’ saved [1769/1769]

+ echo 'deb https://packages.sury.org/php/ bullseye main'
+ apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org bullseye-security InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://xogium.performanceservers.nl/apt bullseye InRelease
Reading package lists...
+ apt-get install -y --no-install-recommends apt-utils cron curl
Reading package lists...
Building dependency tree...
Reading state information...
apt-utils is already the newest version (2.2.4).
cron is already the newest version (3.0pl1-137).
curl is already the newest version (7.74.0-1.3+deb11u7).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ ls -l /var/lock
lrwxrwxrwx 1 root root 9 Feb 12 16:39 /var/lock -> /run/lock
+ apt-get install -y --no-install-recommends apache2
Reading package lists...
Building dependency tree...
Reading state information...
apache2 is already the newest version (2.4.56-1~deb11u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ mkdir -p /run/lock
+ apache2ctl -V
Server version: Apache/2.4.56 (Debian)
Server built:   2023-04-02T03:06:01
Server's Module Magic Number: 20120211:126
Server loaded:  APR 1.7.0, APR-UTIL 1.6.1, PCRE 8.45 2021-06-15
Compiled using: APR 1.7.0, APR-UTIL 1.6.1, PCRE 8.39 2016-06-14
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"
+ id -u systemd-resolve
102
+ install_with_shadow_workaround --no-install-recommends systemd
+ restore_shadow=true
+ [[ -L /etc/shadow ]]
+ restore_shadow=false
+ [[ false == \f\a\l\s\e ]]
+ DEBIAN_FRONTEND=noninteractive
+ apt-get install -y --no-install-recommends systemd
Reading package lists...
Building dependency tree...
Reading state information...
systemd is already the newest version (247.3-7+deb11u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ [[ false == \f\a\l\s\e ]]
+ trap - EXIT
+ apt-get install -y --no-install-recommends -t bullseye-security php8.1 php8.1-curl php8.1-gd php8.1-fpm php8.1-cli php8.1-opcache php8.1-mbstring php8.1-xml php8.1-zip php8.1-fileinfo php8.1-ldap php8.1-intl php8.1-bz2
Reading package lists...
Building dependency tree...
Reading state information...
php8.1 is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-bz2 is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-cli is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-common is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-curl is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-fpm is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-gd is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-intl is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-ldap is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-mbstring is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-opcache is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-xml is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-zip is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ mkdir -p /run/php
+ local DBPASSWD=default
+ echo -e '[client]\npassword=default'
+ chmod 600 /root/.my.cnf
+ debconf-set-selections
+ debconf-set-selections
+ apt-get install -y --no-install-recommends mariadb-server php8.1-mysql
Reading package lists...
Building dependency tree...
Reading state information...
mariadb-server is already the newest version (1:10.5.19-0+deb11u2).
php8.1-mysql is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ mkdir -p /run/mysqld
+ chown mysql /run/mysqld
+ install_template apache2/http2.conf.sh /etc/apache2/conf-available/http2.conf --defaults
+ local template=apache2/http2.conf.sh
+ local target=/etc/apache2/conf-available/http2.conf
++ mktemp
+ local bkp=/tmp/tmp.W4JiF58Ps7
+ echo 'Installing template '\''apache2/http2.conf.sh'\''...'
Installing template 'apache2/http2.conf.sh'...
++ dirname /etc/apache2/conf-available/http2.conf
+ mkdir -p /etc/apache2/conf-available
+ [[ -f /etc/apache2/conf-available/http2.conf ]]
+ cp -a /etc/apache2/conf-available/http2.conf /tmp/tmp.W4JiF58Ps7
+ [[ --defaults == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/apache2/http2.conf.sh --defaults
+ rm /tmp/tmp.W4JiF58Ps7
+ install_template php/opcache.ini.sh /etc/php/8.1/mods-available/opcache.ini --defaults
+ local template=php/opcache.ini.sh
+ local target=/etc/php/8.1/mods-available/opcache.ini
++ mktemp
+ local bkp=/tmp/tmp.xX2hFTPrwJ
+ echo 'Installing template '\''php/opcache.ini.sh'\''...'
Installing template 'php/opcache.ini.sh'...
++ dirname /etc/php/8.1/mods-available/opcache.ini
+ mkdir -p /etc/php/8.1/mods-available
+ [[ -f /etc/php/8.1/mods-available/opcache.ini ]]
+ cp -a /etc/php/8.1/mods-available/opcache.ini /tmp/tmp.xX2hFTPrwJ
+ [[ --defaults == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/php/opcache.ini.sh --defaults
INFO: Restoring template to default settings
+ rm /tmp/tmp.xX2hFTPrwJ
+ a2enmod http2
Module http2 already enabled
+ a2enconf http2
Conf http2 already enabled
+ a2enmod proxy_fcgi setenvif
Considering dependency proxy for proxy_fcgi:
Module proxy already enabled
Module proxy_fcgi already enabled
Module setenvif already enabled
+ a2enconf php8.1-fpm
Conf php8.1-fpm already enabled
+ a2enmod rewrite
Module rewrite already enabled
+ a2enmod headers
Module headers already enabled
+ a2enmod dir
Module dir already enabled
+ a2enmod mime
Module mime already enabled
+ a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled
+ echo 'ServerName localhost'
+ apt-get install -y --no-install-recommends ssl-cert
Reading package lists...
Building dependency tree...
Reading state information...
ssl-cert is already the newest version (1.1.0+nmu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ install_template mysql/90-ncp.cnf.sh /etc/mysql/mariadb.conf.d/90-ncp.cnf --defaults
+ local template=mysql/90-ncp.cnf.sh
+ local target=/etc/mysql/mariadb.conf.d/90-ncp.cnf
++ mktemp
+ local bkp=/tmp/tmp.rI5TpaCLB0
+ echo 'Installing template '\''mysql/90-ncp.cnf.sh'\''...'
Installing template 'mysql/90-ncp.cnf.sh'...
++ dirname /etc/mysql/mariadb.conf.d/90-ncp.cnf
+ mkdir -p /etc/mysql/mariadb.conf.d
+ [[ -f /etc/mysql/mariadb.conf.d/90-ncp.cnf ]]
+ cp -a /etc/mysql/mariadb.conf.d/90-ncp.cnf /tmp/tmp.rI5TpaCLB0
+ [[ --defaults == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/mysql/90-ncp.cnf.sh --defaults
INFO: Restoring template to default settings
+ rm /tmp/tmp.rI5TpaCLB0
+ install_template mysql/91-ncp.cnf.sh /etc/mysql/mariadb.conf.d/91-ncp.cnf --defaults
+ local template=mysql/91-ncp.cnf.sh
+ local target=/etc/mysql/mariadb.conf.d/91-ncp.cnf
++ mktemp
+ local bkp=/tmp/tmp.kBavTahfla
+ echo 'Installing template '\''mysql/91-ncp.cnf.sh'\''...'
Installing template 'mysql/91-ncp.cnf.sh'...
++ dirname /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ mkdir -p /etc/mysql/mariadb.conf.d
+ [[ -f /etc/mysql/mariadb.conf.d/91-ncp.cnf ]]
+ cp -a /etc/mysql/mariadb.conf.d/91-ncp.cnf /tmp/tmp.kBavTahfla
+ [[ --defaults == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/mysql/91-ncp.cnf.sh --defaults
INFO: Restoring template to default settings
+ rm /tmp/tmp.kBavTahfla
+ [[ -f /run/mysqld/mysqld.pid ]]
+ :
+ [[ -S /run/mysqld/mysqld.sock ]]
+ break
+ cd /tmp
+ mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
haven't set the root password yet, you should just press enter here.

stty: 'standard input': Inappropriate ioctl for device
Enter current password for root (enter for none): 
stty: 'standard input': Inappropriate ioctl for device
OK, successfully used password, moving on...

Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.

You already have your root account protected, so you can safely answer 'n'.

Switch to unix_socket authentication [Y/n] Enabled successfully!
Reloading privilege tables..
 ... Success!


You already have your root account protected, so you can safely answer 'n'.

Change the root password? [Y/n] You already have your root account protected, so you can safely answer 'n'.

Change the root password? [Y/n] You already have your root account protected, so you can safely answer 'n'.

Change the root password? [Y/n] stty: 'standard input': Inappropriate ioctl for device
New password: 
Re-enter new password: 
stty: 'standard input': Inappropriate ioctl for device
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]  ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]  ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]  - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n]  ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!
+ install_app bin/ncp/CONFIG/nc-nextcloud.sh
+ local ncp_app=bin/ncp/CONFIG/nc-nextcloud.sh
+ [[ -f bin/ncp/CONFIG/nc-nextcloud.sh ]]
+ local script=bin/ncp/CONFIG/nc-nextcloud.sh
++ basename bin/ncp/CONFIG/nc-nextcloud.sh .sh
+ local ncp_app=nc-nextcloud
+ unset install
+ source bin/ncp/CONFIG/nc-nextcloud.sh
++ DBADMIN=ncadmin
++ REDIS_MEM=3gb
++ APTINSTALL='apt-get install -y --no-install-recommends'
++ export DEBIAN_FRONTEND=noninteractive
++ DEBIAN_FRONTEND=noninteractive
+ echo 'Installing nc-nextcloud'
Installing nc-nextcloud
+ install
+ [[ -f /usr/lib/systemd/system/nc-provisioning.service ]]
+ return 0
+ run_app_unsafe bin/ncp/CONFIG/nc-nextcloud.sh
+ local script=bin/ncp/CONFIG/nc-nextcloud.sh
++ basename bin/ncp/CONFIG/nc-nextcloud.sh .sh
+ local ncp_app=nc-nextcloud
+ local cfg_file=/usr/local/etc/ncp-config.d/nc-nextcloud.cfg
+ local log=/var/log/ncp.log
+ [[ -f bin/ncp/CONFIG/nc-nextcloud.sh ]]
+ touch /var/log/ncp.log
+ chmod 640 /var/log/ncp.log
+ chown root:www-data /var/log/ncp.log
+ echo 'Running nc-nextcloud'
Running nc-nextcloud
++ date
+ echo '[ nc-nextcloud ] (Thu 22 Jun 2023 03:38:24 PM CEST)'
+ unset configure
+ source bin/ncp/CONFIG/nc-nextcloud.sh
++ DBADMIN=ncadmin
++ REDIS_MEM=3gb
++ APTINSTALL='apt-get install -y --no-install-recommends'
++ export DEBIAN_FRONTEND=noninteractive
++ DEBIAN_FRONTEND=noninteractive
+ [[ -f /usr/local/etc/ncp-config.d/nc-nextcloud.cfg ]]
++ cat /usr/local/etc/ncp-config.d/nc-nextcloud.cfg
+ local 'cfg={
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
++ jq '.params | length'
+ local len=4
+ (( i = 0  ))
+ (( i < len  ))
++ jq -r '.params[0].id'
+ local var=VER
++ jq -r '.params[0].value'
+ local val=26.0.1
+ eval VER=26.0.1
++ VER=26.0.1
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[1].id'
+ local var=MAXFILESIZE
++ jq -r '.params[1].value'
+ local val=10G
+ eval MAXFILESIZE=10G
++ MAXFILESIZE=10G
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[2].id'
+ local var=MEMORYLIMIT
++ jq -r '.params[2].value'
+ local val=768M
+ eval MEMORYLIMIT=768M
++ MEMORYLIMIT=768M
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[3].id'
+ local var=MAXTRANSFERTIME
++ jq -r '.params[3].value'
+ local val=3600
+ eval MAXTRANSFERTIME=3600
++ MAXTRANSFERTIME=3600
+ (( i++  ))
+ (( i < len  ))
+ tee -a /var/log/ncp.log
+ configure
+ cd /var/www/
+ local URL=https://download.nextcloud.com/server/releases/nextcloud-26.0.1.tar.bz2
+ echo 'Downloading Nextcloud 26.0.1...'
Downloading Nextcloud 26.0.1...
+ wget -q https://download.nextcloud.com/server/releases/nextcloud-26.0.1.tar.bz2 -O nextcloud.tar.bz2
+ rm -rf nextcloud
+ echo 'Installing  Nextcloud 26.0.1...'
Installing  Nextcloud 26.0.1...
+ tar -xf nextcloud.tar.bz2
+ rm nextcloud.tar.bz2
+ local ocpath=/var/www/nextcloud
+ local htuser=www-data
+ local htgroup=www-data
+ local rootuser=root
+ printf 'Creating possible missing Directories\n'
Creating possible missing Directories
+ mkdir -p /var/www/nextcloud/data
+ mkdir -p /var/www/nextcloud/updater
+ printf 'chmod Files and Directories\n'
chmod Files and Directories
+ find /var/www/nextcloud/ -type f -print0
+ xargs -0 chmod 0640
+ find /var/www/nextcloud/ -type d -print0
+ xargs -0 chmod 0750
+ printf 'chown Directories\n'
chown Directories
+ chown -R www-data:www-data /var/www/nextcloud/
+ chown -R www-data:www-data /var/www/nextcloud/apps/
+ chown -R www-data:www-data /var/www/nextcloud/config/
+ chown -R www-data:www-data /var/www/nextcloud/data/
+ chown -R www-data:www-data /var/www/nextcloud/themes/
+ chown -R www-data:www-data /var/www/nextcloud/updater/
+ chmod +x /var/www/nextcloud/occ
+ printf 'chmod/chown .htaccess\n'
chmod/chown .htaccess
+ '[' -f /var/www/nextcloud/.htaccess ']'
+ chmod 0644 /var/www/nextcloud/.htaccess
+ chown www-data:www-data /var/www/nextcloud/.htaccess
+ '[' -f /var/www/nextcloud/data/.htaccess ']'
++ '[' -f /usr/local/bin/ncp/CONFIG/nc-datadir.sh ']'
++ source /usr/local/bin/ncp/CONFIG/nc-datadir.sh
++ tmpl_opcache_dir
+++ get_nc_config_value datadirectory
+++ sudo -u www-data php -r 'include("/var/www/nextcloud/config/config.php"); echo($CONFIG["datadirectory"]);'
PHP Warning:  Undefined variable $CONFIG in Command line code on line 1
PHP Warning:  Trying to access array offset on value of type null in Command line code on line 1
++ DATADIR=
++ echo -n /.opcache
+ local OPCACHEDIR=/.opcache
+ [[ -z /.opcache ]]
+ mkdir -p /.opcache
+ chown -R www-data:www-data /.opcache
+ install_template php/opcache.ini.sh /etc/php/8.1/mods-available/opcache.ini
+ local template=php/opcache.ini.sh
+ local target=/etc/php/8.1/mods-available/opcache.ini
++ mktemp
+ local bkp=/tmp/tmp.TgdhMNAGAt
+ echo 'Installing template '\''php/opcache.ini.sh'\''...'
Installing template 'php/opcache.ini.sh'...
++ dirname /etc/php/8.1/mods-available/opcache.ini
+ mkdir -p /etc/php/8.1/mods-available
+ [[ -f /etc/php/8.1/mods-available/opcache.ini ]]
+ cp -a /etc/php/8.1/mods-available/opcache.ini /tmp/tmp.TgdhMNAGAt
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/php/opcache.ini.sh
PHP Warning:  Undefined variable $CONFIG in Command line code on line 1
PHP Warning:  Trying to access array offset on value of type null in Command line code on line 1
+ rm /tmp/tmp.TgdhMNAGAt
+ [[ -f /run/mysqld/mysqld.pid ]]
+ :
+ [[ -S /var/run/mysqld/mysqld.sock ]]
+ break
+ echo 'Setting up database...'
Setting up database...
++ grep password /root/.my.cnf
++ sed 's|password=||'
+ local DBPASSWD=default
+ mysql
+ echo 'Setting up Apache...'
Setting up Apache...
+ install_template nextcloud.conf.sh /etc/apache2/sites-available/nextcloud.conf --allow-fallback
+ local template=nextcloud.conf.sh
+ local target=/etc/apache2/sites-available/nextcloud.conf
++ mktemp
+ local bkp=/tmp/tmp.30AwLUV9ad
+ echo 'Installing template '\''nextcloud.conf.sh'\''...'
Installing template 'nextcloud.conf.sh'...
++ dirname /etc/apache2/sites-available/nextcloud.conf
+ mkdir -p /etc/apache2/sites-available
+ [[ -f /etc/apache2/sites-available/nextcloud.conf ]]
+ cp -a /etc/apache2/sites-available/nextcloud.conf /tmp/tmp.30AwLUV9ad
+ [[ --allow-fallback == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/nextcloud.conf.sh
INFO: Metrics enabled: no
+ rm /tmp/tmp.30AwLUV9ad
+ a2ensite nextcloud
Enabling site nextcloud.
To activate the new configuration, you need to run:
  systemctl reload apache2
+ cat
+ a2enmod proxy proxy_http proxy_wstunnel
Module proxy already enabled
Considering dependency proxy for proxy_http:
Module proxy already enabled
Module proxy_http already enabled
Considering dependency proxy for proxy_wstunnel:
Module proxy already enabled
Module proxy_wstunnel already enabled
++ uname -m
+ arch=aarch64
+ [[ aarch64 =~ armv7 ]]
+ install_template systemd/notify_push.service.sh /etc/systemd/system/notify_push.service
+ local template=systemd/notify_push.service.sh
+ local target=/etc/systemd/system/notify_push.service
++ mktemp
+ local bkp=/tmp/tmp.G6TVgWJAfm
+ echo 'Installing template '\''systemd/notify_push.service.sh'\''...'
Installing template 'systemd/notify_push.service.sh'...
++ dirname /etc/systemd/system/notify_push.service
+ mkdir -p /etc/systemd/system
+ [[ -f /etc/systemd/system/notify_push.service ]]
+ cp -a /etc/systemd/system/notify_push.service /tmp/tmp.G6TVgWJAfm
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/systemd/notify_push.service.sh
+ rm /tmp/tmp.G6TVgWJAfm
+ [[ -f /.docker-image ]]
+ systemctl enable notify_push
+ sed -i 's|^ServerSignature .*|ServerSignature Off|' /etc/apache2/conf-enabled/security.conf
+ sed -i 's|^ServerTokens .*|ServerTokens Prod|' /etc/apache2/conf-enabled/security.conf
+ echo 'Setting up system...'
Setting up system...
+ cat
+ echo '*/5  *  *  *  * php -f /var/www/nextcloud/cron.php'
+ crontab -u www-data /tmp/crontab_http
+ rm /tmp/crontab_http
+ [[ '' != '' ]]
+ echo 'Don'\''t forget to run nc-init'
Don't forget to run nc-init
+ local ret=0
+ echo ''
+ [[ -f /usr/local/etc/ncp-config.d/nc-nextcloud.cfg ]]
+ clear_password_fields /usr/local/etc/ncp-config.d/nc-nextcloud.cfg
+ local cfg_file=/usr/local/etc/ncp-config.d/nc-nextcloud.cfg
++ cat /usr/local/etc/ncp-config.d/nc-nextcloud.cfg
+ local 'cfg={
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
++ jq '.params | length'
+ local len=4
+ (( i = 0  ))
+ (( i < len  ))
++ jq -r '.params[0].type'
+ local type=null
++ jq -r '.params[0].value'
+ local val=26.0.1
+ [[ null == \p\a\s\s\w\o\r\d ]]
++ jq -r '.params[0].value="26.0.1"'
+ cfg='{
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[1].type'
+ local type=null
++ jq -r '.params[1].value'
+ local val=10G
+ [[ null == \p\a\s\s\w\o\r\d ]]
++ jq -r '.params[1].value="10G"'
+ cfg='{
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[2].type'
+ local type=null
++ jq -r '.params[2].value'
+ local val=768M
+ [[ null == \p\a\s\s\w\o\r\d ]]
++ jq -r '.params[2].value="768M"'
+ cfg='{
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[3].type'
+ local type=null
++ jq -r '.params[3].value'
+ local val=3600
+ [[ null == \p\a\s\s\w\o\r\d ]]
++ jq -r '.params[3].value="3600"'
+ cfg='{
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
+ (( i++  ))
+ (( i < len  ))
+ echo '{
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
+ return 0
+ rm /usr/local/etc/ncp-config.d/nc-nextcloud.cfg
+ systemctl restart mysqld
+ install_app ncp.sh
+ local ncp_app=ncp.sh
+ [[ -f ncp.sh ]]
+ local script=ncp.sh
++ basename ncp.sh .sh
+ local ncp_app=ncp
+ unset install
+ source ncp.sh
++ WEBADMIN=ncp
++ WEBPASSWD=ownyourbits
++ BRANCH=master
++ BINDIR=/usr/local/bin/ncp
++ CONFDIR=/usr/local/etc/ncp-config.d/
++ APTINSTALL='apt-get install -y --no-install-recommends'
++ export DEBIAN_FRONTEND=noninteractive
++ DEBIAN_FRONTEND=noninteractive
+ echo 'Installing ncp'
Installing ncp
+ install
+ apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
Hit:4 http://security.debian.org bullseye-security InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://xogium.performanceservers.nl/apt bullseye InRelease
Reading package lists...
+ apt-get install -y --no-install-recommends git dialog whiptail jq file lsb-release
Reading package lists...
Building dependency tree...
Reading state information...
dialog is already the newest version (1.3-20201126-1).
file is already the newest version (1:5.39-3).
git is already the newest version (1:2.30.2-1+deb11u2).
jq is already the newest version (1.6-2.1).
lsb-release is already the newest version (11.1.0).
whiptail is already the newest version (0.52.21-4+b3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ mkdir -p /usr/local/etc/ncp-config.d/ /usr/local/bin/ncp
+ test -f /usr/bin/raspi-config
+ cat
+ chmod +x /usr/local/bin/ncc
+ cat
+ cat
+ apt-get install -y --no-install-recommends libapache2-mod-authnz-external pwauth
Reading package lists...
Building dependency tree...
Reading state information...
libapache2-mod-authnz-external is already the newest version (3.3.2-0.1+b3).
pwauth is already the newest version (2.3.11-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ a2enmod authnz_external authn_core auth_basic
Module authnz_external already enabled
Module authn_core already enabled
Considering dependency authn_core for auth_basic:
Module authn_core already enabled
Module auth_basic already enabled
+ a2dissite nextcloud
Site nextcloud disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2
+ a2ensite ncp-activation
Site ncp-activation already enabled
+ id -u ncp
+ echo -e 'ownyourbits\nownyourbits'
+ passwd ncp
New password: Retype new password: passwd: password updated successfully
+ is_docker
+ [[ -f /.dockerenv ]]
+ [[ -f /.docker-image ]]
+ [[ '' == 1 ]]
+ is_lxc
+ grep -q container=lxc /proc/1/environ
+ chsh -s /usr/sbin/nologin ncp
Password: 
chsh: PAM: Authentication failure
+ rm -rf /tmp/nextcloudpi.fE33oo

Not sure offhand, but has the ncp user shell already been previously set to/usr/sbin/nologin? Maybe by a prior run?

What appears if you do:

grep ncp /etc/passwd

What appears if you do:

grep ncp /etc/passwd

ncp:x:1001:1001::/nonexistent:/usr/sbin/nologin

Previous run is indead a topic. You mean it is not sufficient to just drop the database within mysql? To start from scratch it would mean to reimage the SD with afresh install, do the update/upgrade cycle and go for the CURL installer again. Okay, will do and come back with another attempt. It’s worth the effort :wink:

What I did now:

  • Booting off fresh image on SD
  • apt update and dist-upgrade
  • reboot
  • Download install.sh via CURL
  • uncommented the DBG=x line in install.sh
  • attached is command line output copied from ssh shell

This time the script stops at disabling a unit, but I can only guess it has to do with some smart monitoring of a storage device.
Again I have no further idea, where to look and what to search for - happy for every hint :slight_smile:

THX
Uwe

PS: I am unable to copy the complete log as I am overrunning the limits o fthis forum in terms of number of characters per post. Copying second half below.

uho@odroidm1:~$ sudo bash install.sh | tee ncp_install.log
[sudo] password for uho: 
++ mktemp -d /tmp/nextcloudpi.XXXXXX
.
.
.
Creating config file /etc/php/8.1/mods-available/gmp.ini with new version
Processing triggers for php8.1-fpm (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38) ...
NOTICE: Not enabling PHP 8.1 FPM by default.
NOTICE: To enable PHP 8.1 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.1-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Processing triggers for php8.1-cli (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38) ...
+ apt-get install -y --no-install-recommends postfix
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
  procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb
  postfix-sqlite sasl2-bin | dovecot-common libsasl2-modules | dovecot-common
  postfix-cdb mail-reader ufw postfix-doc
The following NEW packages will be installed:
  postfix
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 1,505 kB of archives.
After this operation, 4,148 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 postfix arm64 3.5.18-0+deb11u1 [1,505 kB]
Preconfiguring packages ...
Fetched 1,505 kB in 0s (8,214 kB/s)
                                   Selecting previously unselected package postfix.
(Reading database ... 45089 files and directories currently installed.)
Preparing to unpack .../postfix_3.5.18-0+deb11u1_arm64.deb ...
Unpacking postfix (3.5.18-0+deb11u1) ...
Setting up postfix (3.5.18-0+deb11u1) ...
Adding group `postfix' (GID 119) ...
Done.
Adding system user `postfix' (UID 112) ...
Adding new user `postfix' (UID 112) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (GID 120) ...
Done.
setting myhostname: odroidm1
setting alias maps
setting alias database
mailname is not a fully qualified domain name.  Not changing /etc/mailname.
setting destinations: $myhostname, odroidm1, localhost.localdomain, , localhost
setting relayhost: 
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.

Postfix (main.cf) is now set up with a default configuration.  If you need to 
make changes, edit /etc/postfix/main.cf (and others) as needed.  To view 
Postfix configuration values, see postconf(1).

After modifying main.cf, be sure to run 'systemctl reload postfix'.

Running newaliases
Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service β†’ /lib/systemd/system/postfix.service.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for rsyslog (8.2102.0-2+deb11u1) ...
+ apt-get install -y --no-install-recommends redis-server
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libjemalloc2 liblua5.1-0 liblzf1 lua-bitop lua-cjson redis-tools
Suggested packages:
  ruby-redis
The following NEW packages will be installed:
  libjemalloc2 liblua5.1-0 liblzf1 lua-bitop lua-cjson redis-server
  redis-tools
0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
Need to get 1,102 kB of archives.
After this operation, 5,171 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 libjemalloc2 arm64 5.2.1-3 [192 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 liblua5.1-0 arm64 5.1.5-8.1+b3 [99.5 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 liblzf1 arm64 3.6-3 [9,860 B]
Get:4 http://deb.debian.org/debian bullseye/main arm64 lua-bitop arm64 1.0.2-5 [6,508 B]
Get:5 http://deb.debian.org/debian bullseye/main arm64 lua-cjson arm64 2.1.0+dfsg-2.1 [16.1 kB]
Get:6 http://deb.debian.org/debian bullseye/main arm64 redis-tools arm64 5:6.0.16-1+deb11u2 [680 kB]
Get:7 http://deb.debian.org/debian bullseye/main arm64 redis-server arm64 5:6.0.16-1+deb11u2 [98.2 kB]
Fetched 1,102 kB in 0s (5,228 kB/s)
                                   Selecting previously unselected package libjemalloc2:arm64.
(Reading database ... 45281 files and directories currently installed.)
Preparing to unpack .../0-libjemalloc2_5.2.1-3_arm64.deb ...
Unpacking libjemalloc2:arm64 (5.2.1-3) ...
Selecting previously unselected package liblua5.1-0:arm64.
Preparing to unpack .../1-liblua5.1-0_5.1.5-8.1+b3_arm64.deb ...
Unpacking liblua5.1-0:arm64 (5.1.5-8.1+b3) ...
Selecting previously unselected package liblzf1:arm64.
Preparing to unpack .../2-liblzf1_3.6-3_arm64.deb ...
Unpacking liblzf1:arm64 (3.6-3) ...
Selecting previously unselected package lua-bitop:arm64.
Preparing to unpack .../3-lua-bitop_1.0.2-5_arm64.deb ...
Unpacking lua-bitop:arm64 (1.0.2-5) ...
Selecting previously unselected package lua-cjson:arm64.
Preparing to unpack .../4-lua-cjson_2.1.0+dfsg-2.1_arm64.deb ...
Unpacking lua-cjson:arm64 (2.1.0+dfsg-2.1) ...
Selecting previously unselected package redis-tools.
Preparing to unpack .../5-redis-tools_5%3a6.0.16-1+deb11u2_arm64.deb ...
Unpacking redis-tools (5:6.0.16-1+deb11u2) ...
Selecting previously unselected package redis-server.
Preparing to unpack .../6-redis-server_5%3a6.0.16-1+deb11u2_arm64.deb ...
Unpacking redis-server (5:6.0.16-1+deb11u2) ...
Setting up libjemalloc2:arm64 (5.2.1-3) ...
Setting up lua-cjson:arm64 (2.1.0+dfsg-2.1) ...
Setting up liblzf1:arm64 (3.6-3) ...
Setting up lua-bitop:arm64 (1.0.2-5) ...
Setting up liblua5.1-0:arm64 (5.1.5-8.1+b3) ...
Setting up redis-tools (5:6.0.16-1+deb11u2) ...
Setting up redis-server (5:6.0.16-1+deb11u2) ...
Created symlink /etc/systemd/system/redis.service β†’ /lib/systemd/system/redis-server.service.
Created symlink /etc/systemd/system/multi-user.target.wants/redis-server.service β†’ /lib/systemd/system/redis-server.service.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u6) ...
+ apt-get install -y --no-install-recommends -t bullseye-security php8.1-redis
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  php8.1-igbinary
The following NEW packages will be installed:
  php8.1-igbinary php8.1-redis
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 177 kB of archives.
After this operation, 769 kB of additional disk space will be used.
Get:1 https://packages.sury.org/php bullseye/main arm64 php8.1-igbinary arm64 3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca [32.0 kB]
Get:2 https://packages.sury.org/php bullseye/main arm64 php8.1-redis arm64 5.3.7++-1+0~20230619.51+debian11~1.gbp4ff337 [145 kB]
Fetched 177 kB in 0s (745 kB/s)
                               Selecting previously unselected package php8.1-igbinary.
(Reading database ... 45369 files and directories currently installed.)
Preparing to unpack .../php8.1-igbinary_3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca_arm64.deb ...
Unpacking php8.1-igbinary (3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca) ...
Selecting previously unselected package php8.1-redis.
Preparing to unpack .../php8.1-redis_5.3.7++-1+0~20230619.51+debian11~1.gbp4ff337_arm64.deb ...
Unpacking php8.1-redis (5.3.7++-1+0~20230619.51+debian11~1.gbp4ff337) ...
Setting up php8.1-igbinary (3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca) ...
Setting up php8.1-redis (5.3.7++-1+0~20230619.51+debian11~1.gbp4ff337) ...
Processing triggers for php8.1-cli (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38) ...
Processing triggers for php8.1-fpm (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38) ...
NOTICE: Not enabling PHP 8.1 FPM by default.
NOTICE: To enable PHP 8.1 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.1-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
+ local REDIS_CONF=/etc/redis/redis.conf
+ local REDISPASS=default
+ sed -i 's|# unixsocket .*|unixsocket /var/run/redis/redis.sock|' /etc/redis/redis.conf
+ sed -i 's|# unixsocketperm .*|unixsocketperm 770|' /etc/redis/redis.conf
+ sed -i 's|# requirepass .*|requirepass default|' /etc/redis/redis.conf
+ sed -i 's|# maxmemory-policy .*|maxmemory-policy allkeys-lru|' /etc/redis/redis.conf
+ sed -i 's|# rename-command CONFIG ""|rename-command CONFIG ""|' /etc/redis/redis.conf
+ sed -i 's|^port.*|port 0|' /etc/redis/redis.conf
+ echo 'maxmemory 3gb'
+ echo 'vm.overcommit_memory = 1'
+ is_lxc
+ grep -q container=lxc /proc/1/environ
+ chown redis: /etc/redis/redis.conf
+ usermod -a -G redis www-data
+ service redis-server restart
+ update-rc.d redis-server enable
+ clear_opcache
++ get_nc_config_value datadirectory
++ sudo -u www-data php -r 'include("/var/www/nextcloud/config/config.php"); echo($CONFIG["datadirectory"]);'
PHP Warning:  include(/var/www/nextcloud/config/config.php): Failed to open stream: No such file or directory in Command line code on line 1
PHP Warning:  include(): Failed opening '/var/www/nextcloud/config/config.php' for inclusion (include_path='.:/usr/share/php') in Command line code on line 1
PHP Warning:  Undefined variable $CONFIG in Command line code on line 1
PHP Warning:  Trying to access array offset on value of type null in Command line code on line 1
+ local data_dir=
+ [[ -d /var/www/nextcloud/data/.opcache ]]
+ service php8.1-fpm reload
+ mkdir -p /usr/lib/systemd/system
+ cat
+ [[ '' != 1 ]]
+ systemctl enable nc-provisioning
Created symlink /etc/systemd/system/multi-user.target.wants/nc-provisioning.service β†’ /lib/systemd/system/nc-provisioning.service.
+ return 0
+ run_app_unsafe bin/ncp/CONFIG/nc-nextcloud.sh
+ local script=bin/ncp/CONFIG/nc-nextcloud.sh
++ basename bin/ncp/CONFIG/nc-nextcloud.sh .sh
+ local ncp_app=nc-nextcloud
+ local cfg_file=/usr/local/etc/ncp-config.d/nc-nextcloud.cfg
+ local log=/var/log/ncp.log
+ [[ -f bin/ncp/CONFIG/nc-nextcloud.sh ]]
+ touch /var/log/ncp.log
+ chmod 640 /var/log/ncp.log
+ chown root:www-data /var/log/ncp.log
+ echo 'Running nc-nextcloud'
Running nc-nextcloud
++ date
+ echo '[ nc-nextcloud ] (Thu 22 Jun 2023 08:45:41 PM CEST)'
+ unset configure
+ source bin/ncp/CONFIG/nc-nextcloud.sh
++ DBADMIN=ncadmin
++ REDIS_MEM=3gb
++ APTINSTALL='apt-get install -y --no-install-recommends'
++ export DEBIAN_FRONTEND=noninteractive
++ DEBIAN_FRONTEND=noninteractive
+ [[ -f /usr/local/etc/ncp-config.d/nc-nextcloud.cfg ]]
++ cat /usr/local/etc/ncp-config.d/nc-nextcloud.cfg
+ local 'cfg={
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
++ jq '.params | length'
+ local len=4
+ (( i = 0  ))
+ (( i < len  ))
++ jq -r '.params[0].id'
+ local var=VER
++ jq -r '.params[0].value'
+ local val=26.0.1
+ eval VER=26.0.1
++ VER=26.0.1
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[1].id'
+ local var=MAXFILESIZE
++ jq -r '.params[1].value'
+ local val=10G
+ eval MAXFILESIZE=10G
++ MAXFILESIZE=10G
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[2].id'
+ local var=MEMORYLIMIT
++ jq -r '.params[2].value'
+ local val=768M
+ eval MEMORYLIMIT=768M
++ MEMORYLIMIT=768M
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[3].id'
+ local var=MAXTRANSFERTIME
++ jq -r '.params[3].value'
+ local val=3600
+ eval MAXTRANSFERTIME=3600
++ MAXTRANSFERTIME=3600
+ (( i++  ))
+ (( i < len  ))
+ tee -a /var/log/ncp.log
+ configure
+ cd /var/www/
+ local URL=https://download.nextcloud.com/server/releases/nextcloud-26.0.1.tar.bz2
+ echo 'Downloading Nextcloud 26.0.1...'
Downloading Nextcloud 26.0.1...
+ wget -q https://download.nextcloud.com/server/releases/nextcloud-26.0.1.tar.bz2 -O nextcloud.tar.bz2
+ rm -rf nextcloud
+ echo 'Installing  Nextcloud 26.0.1...'
Installing  Nextcloud 26.0.1...
+ tar -xf nextcloud.tar.bz2
+ rm nextcloud.tar.bz2
+ local ocpath=/var/www/nextcloud
+ local htuser=www-data
+ local htgroup=www-data
+ local rootuser=root
+ printf 'Creating possible missing Directories\n'
Creating possible missing Directories
+ mkdir -p /var/www/nextcloud/data
+ mkdir -p /var/www/nextcloud/updater
+ printf 'chmod Files and Directories\n'
chmod Files and Directories
+ find /var/www/nextcloud/ -type f -print0
+ xargs -0 chmod 0640
+ find /var/www/nextcloud/ -type d -print0
+ xargs -0 chmod 0750
+ printf 'chown Directories\n'
chown Directories
+ chown -R www-data:www-data /var/www/nextcloud/
+ chown -R www-data:www-data /var/www/nextcloud/apps/
+ chown -R www-data:www-data /var/www/nextcloud/config/
+ chown -R www-data:www-data /var/www/nextcloud/data/
+ chown -R www-data:www-data /var/www/nextcloud/themes/
+ chown -R www-data:www-data /var/www/nextcloud/updater/
+ chmod +x /var/www/nextcloud/occ
+ printf 'chmod/chown .htaccess\n'
chmod/chown .htaccess
+ '[' -f /var/www/nextcloud/.htaccess ']'
+ chmod 0644 /var/www/nextcloud/.htaccess
+ chown www-data:www-data /var/www/nextcloud/.htaccess
+ '[' -f /var/www/nextcloud/data/.htaccess ']'
++ '[' -f /usr/local/bin/ncp/CONFIG/nc-datadir.sh ']'
++ true
+ local OPCACHEDIR=
+ [[ -z '' ]]
+ install_template php/opcache.ini.sh /etc/php/8.1/mods-available/opcache.ini --defaults
+ local template=php/opcache.ini.sh
+ local target=/etc/php/8.1/mods-available/opcache.ini
++ mktemp
+ local bkp=/tmp/tmp.4pi4PoU1hj
+ echo 'Installing template '\''php/opcache.ini.sh'\''...'
Installing template 'php/opcache.ini.sh'...
++ dirname /etc/php/8.1/mods-available/opcache.ini
+ mkdir -p /etc/php/8.1/mods-available
+ [[ -f /etc/php/8.1/mods-available/opcache.ini ]]
+ cp -a /etc/php/8.1/mods-available/opcache.ini /tmp/tmp.4pi4PoU1hj
+ [[ --defaults == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/php/opcache.ini.sh --defaults
INFO: Restoring template to default settings
+ rm /tmp/tmp.4pi4PoU1hj
+ [[ -f /run/mysqld/mysqld.pid ]]
+ :
+ [[ -S /var/run/mysqld/mysqld.sock ]]
+ break
+ echo 'Setting up database...'
Setting up database...
++ grep password /root/.my.cnf
++ sed 's|password=||'
+ local DBPASSWD=default
+ mysql
+ echo 'Setting up Apache...'
Setting up Apache...
+ install_template nextcloud.conf.sh /etc/apache2/sites-available/nextcloud.conf --allow-fallback
+ local template=nextcloud.conf.sh
+ local target=/etc/apache2/sites-available/nextcloud.conf
++ mktemp
+ local bkp=/tmp/tmp.WAfwAvMp9x
+ echo 'Installing template '\''nextcloud.conf.sh'\''...'
Installing template 'nextcloud.conf.sh'...
++ dirname /etc/apache2/sites-available/nextcloud.conf
+ mkdir -p /etc/apache2/sites-available
+ [[ -f /etc/apache2/sites-available/nextcloud.conf ]]
+ [[ --allow-fallback == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/nextcloud.conf.sh
INFO: Metrics enabled: no
+ rm /tmp/tmp.WAfwAvMp9x
+ a2ensite nextcloud
Enabling site nextcloud.
To activate the new configuration, you need to run:
  systemctl reload apache2
+ cat
+ a2enmod proxy proxy_http proxy_wstunnel
Module proxy already enabled
Considering dependency proxy for proxy_http:
Module proxy already enabled
Enabling module proxy_http.
Considering dependency proxy for proxy_wstunnel:
Module proxy already enabled
Enabling module proxy_wstunnel.
To activate the new configuration, you need to run:
  systemctl restart apache2
++ uname -m
+ arch=aarch64
+ [[ aarch64 =~ armv7 ]]
+ install_template systemd/notify_push.service.sh /etc/systemd/system/notify_push.service
+ local template=systemd/notify_push.service.sh
+ local target=/etc/systemd/system/notify_push.service
++ mktemp
+ local bkp=/tmp/tmp.4NJ83HpXIs
+ echo 'Installing template '\''systemd/notify_push.service.sh'\''...'
Installing template 'systemd/notify_push.service.sh'...
++ dirname /etc/systemd/system/notify_push.service
+ mkdir -p /etc/systemd/system
+ [[ -f /etc/systemd/system/notify_push.service ]]
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/systemd/notify_push.service.sh
+ rm /tmp/tmp.4NJ83HpXIs
+ [[ -f /.docker-image ]]
+ systemctl enable notify_push
Created symlink /etc/systemd/system/multi-user.target.wants/notify_push.service β†’ /etc/systemd/system/notify_push.service.
+ sed -i 's|^ServerSignature .*|ServerSignature Off|' /etc/apache2/conf-enabled/security.conf
+ sed -i 's|^ServerTokens .*|ServerTokens Prod|' /etc/apache2/conf-enabled/security.conf
+ echo 'Setting up system...'
Setting up system...
+ cat
+ echo '*/5  *  *  *  * php -f /var/www/nextcloud/cron.php'
+ crontab -u www-data /tmp/crontab_http
+ rm /tmp/crontab_http
+ [[ '' != '' ]]
+ echo 'Don'\''t forget to run nc-init'
Don't forget to run nc-init
+ local ret=0
+ echo ''
+ [[ -f /usr/local/etc/ncp-config.d/nc-nextcloud.cfg ]]
+ clear_password_fields /usr/local/etc/ncp-config.d/nc-nextcloud.cfg
+ local cfg_file=/usr/local/etc/ncp-config.d/nc-nextcloud.cfg
++ cat /usr/local/etc/ncp-config.d/nc-nextcloud.cfg
+ local 'cfg={
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
++ jq '.params | length'
+ local len=4
+ (( i = 0  ))
+ (( i < len  ))
++ jq -r '.params[0].type'
+ local type=null
++ jq -r '.params[0].value'
+ local val=26.0.1
+ [[ null == \p\a\s\s\w\o\r\d ]]
++ jq -r '.params[0].value="26.0.1"'
+ cfg='{
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[1].type'
+ local type=null
++ jq -r '.params[1].value'
+ local val=10G
+ [[ null == \p\a\s\s\w\o\r\d ]]
++ jq -r '.params[1].value="10G"'
+ cfg='{
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[2].type'
+ local type=null
++ jq -r '.params[2].value'
+ local val=768M
+ [[ null == \p\a\s\s\w\o\r\d ]]
++ jq -r '.params[2].value="768M"'
+ cfg='{
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
+ (( i++  ))
+ (( i < len  ))
++ jq -r '.params[3].type'
+ local type=null
++ jq -r '.params[3].value'
+ local val=3600
+ [[ null == \p\a\s\s\w\o\r\d ]]
++ jq -r '.params[3].value="3600"'
+ cfg='{
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
+ (( i++  ))
+ (( i < len  ))
+ echo '{
  "id": "nc-nextcloud",
  "name": "Nc-nextcloud",
  "title": "nc-nextcloud",
  "description": "Install any NextCloud version",
  "info": "WARNING: this will completely wipe out your current instance",
  "infotitle": "",
  "params": [
    {
      "id": "VER",
      "name": "Version",
      "value": "26.0.1"
    },
    {
      "id": "MAXFILESIZE",
      "name": "Maximum file size",
      "value": "10G",
      "suggest": "10G"
    },
    {
      "id": "MEMORYLIMIT",
      "name": "Memory limit",
      "value": "768M",
      "suggest": "768M"
    },
    {
      "id": "MAXTRANSFERTIME",
      "name": "Maximum transfer time",
      "value": "3600",
      "suggest": "3600"
    }
  ]
}'
+ return 0
+ rm /usr/local/etc/ncp-config.d/nc-nextcloud.cfg
+ systemctl restart mysqld
+ install_app ncp.sh
+ local ncp_app=ncp.sh
+ [[ -f ncp.sh ]]
+ local script=ncp.sh
++ basename ncp.sh .sh
+ local ncp_app=ncp
+ unset install
+ source ncp.sh
++ WEBADMIN=ncp
++ WEBPASSWD=ownyourbits
++ BRANCH=master
++ BINDIR=/usr/local/bin/ncp
++ CONFDIR=/usr/local/etc/ncp-config.d/
++ APTINSTALL='apt-get install -y --no-install-recommends'
++ export DEBIAN_FRONTEND=noninteractive
++ DEBIAN_FRONTEND=noninteractive
+ echo 'Installing ncp'
Installing ncp
+ install
+ apt-get update
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://armbian.hosthatch.com/apt bullseye InRelease
Reading package lists...
+ apt-get install -y --no-install-recommends git dialog whiptail jq file lsb-release
Reading package lists...
Building dependency tree...
Reading state information...
dialog is already the newest version (1.3-20201126-1).
file is already the newest version (1:5.39-3).
file set to manually installed.
git is already the newest version (1:2.30.2-1+deb11u2).
jq is already the newest version (1.6-2.1).
lsb-release is already the newest version (11.1.0).
whiptail is already the newest version (0.52.21-4+b3).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
+ mkdir -p /usr/local/etc/ncp-config.d/ /usr/local/bin/ncp
+ test -f /usr/bin/raspi-config
+ cat
+ chmod +x /usr/local/bin/ncc
+ cat
+ cat
+ apt-get install -y --no-install-recommends libapache2-mod-authnz-external pwauth
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  libapache2-mod-authnz-external pwauth
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 36.7 kB of archives.
After this operation, 98.3 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 libapache2-mod-authnz-external arm64 3.3.2-0.1+b3 [25.1 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 pwauth arm64 2.3.11-4 [11.6 kB]
Fetched 36.7 kB in 0s (323 kB/s)
                                Selecting previously unselected package libapache2-mod-authnz-external.
(Reading database ... 45389 files and directories currently installed.)
Preparing to unpack .../libapache2-mod-authnz-external_3.3.2-0.1+b3_arm64.deb ...
Unpacking libapache2-mod-authnz-external (3.3.2-0.1+b3) ...
Selecting previously unselected package pwauth.
Preparing to unpack .../pwauth_2.3.11-4_arm64.deb ...
Unpacking pwauth (2.3.11-4) ...
Setting up libapache2-mod-authnz-external (3.3.2-0.1+b3) ...
apache2_invoke: Enable module authnz_external
Setting up pwauth (2.3.11-4) ...
Processing triggers for man-db (2.9.4-2) ...
+ a2enmod authnz_external authn_core auth_basic
Module authnz_external already enabled
Module authn_core already enabled
Considering dependency authn_core for auth_basic:
Module authn_core already enabled
Module auth_basic already enabled
+ a2dissite nextcloud
Site nextcloud disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2
+ a2ensite ncp-activation
Enabling site ncp-activation.
To activate the new configuration, you need to run:
  systemctl reload apache2
+ id -u ncp
+ useradd --home-dir /nonexistent ncp
+ echo -e 'ownyourbits\nownyourbits'
+ passwd ncp
New password: Retype new password: passwd: password updated successfully
+ is_docker
+ [[ -f /.dockerenv ]]
+ [[ -f /.docker-image ]]
+ [[ '' == 1 ]]
+ is_lxc
+ grep -q container=lxc /proc/1/environ
+ chsh -s /usr/sbin/nologin ncp
+ chsh -s /usr/sbin/nologin root
+ mkdir -p /home/www
+ chown www-data:www-data /home/www
+ chmod 700 /home/www
+ cat
+ chmod 700 /home/www/ncp-launcher.sh
+ cat
+ chmod 700 /home/www/ncp-backup-launcher.sh
+ echo 'www-data ALL = NOPASSWD: /home/www/ncp-launcher.sh , /home/www/ncp-backup-launcher.sh, /sbin/halt, /sbin/reboot'
+ mkdir -p /usr/lib/systemd/system
+ cat
+ [[ '' != 1 ]]
+ systemctl enable nextcloud-domain
Created symlink /etc/systemd/system/multi-user.target.wants/nextcloud-domain.service β†’ /lib/systemd/system/nextcloud-domain.service.
+ cat
+ chmod a+x /etc/cron.daily/ncp-check-version
+ touch /var/run/.ncp-latest-version
+ chown root:www-data /var/run/.ncp-latest-version
+ chmod g+w /var/run/.ncp-latest-version
+ ALLOW_UPDATE_SCRIPT=1
+ bin/ncp-update master
Downloading updates
Performing updates
Installing clear-php-opcache
Installing dnsmasq
+ apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org bullseye-security InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://armbian.hosthatch.com/apt bullseye InRelease
Reading package lists...
+ apt-get install --no-install-recommends -y dnsmasq
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  dnsmasq-base
Recommended packages:
  dns-root-data
The following NEW packages will be installed:
  dnsmasq dnsmasq-base
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 472 kB of archives.
After this operation, 1,066 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 dnsmasq-base arm64 2.85-1 [440 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 dnsmasq all 2.85-1 [32.0 kB]
Fetched 472 kB in 0s (3,236 kB/s)
                                 Selecting previously unselected package dnsmasq-base.
(Reading database ... 45409 files and directories currently installed.)
Preparing to unpack .../dnsmasq-base_2.85-1_arm64.deb ...
Unpacking dnsmasq-base (2.85-1) ...
Selecting previously unselected package dnsmasq.
Preparing to unpack .../dnsmasq_2.85-1_all.deb ...
Unpacking dnsmasq (2.85-1) ...
Setting up dnsmasq-base (2.85-1) ...
Setting up dnsmasq (2.85-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq.service β†’ /lib/systemd/system/dnsmasq.service.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.24-0+deb11u1) ...
+ rc=0
+ service dnsmasq status
+ is_docker
+ [[ -f /.dockerenv ]]
+ [[ -f /.docker-image ]]
+ [[ '' == 1 ]]
+ [[ 0 -eq 3 ]]
+ service dnsmasq stop
+ [[ systemd == \s\y\s\t\e\m\d ]]
+ service systemd-resolved start
+ update-rc.d dnsmasq disable
+ [[ '' == 1 ]]
+ return 0
Installing duckDNS
Installing fail2ban
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://mirrors.xtom.de/armbian bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  python3-systemd
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 35.9 kB of archives.
After this operation, 182 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 python3-systemd arm64 234-3+b4 [35.9 kB]
Fetched 35.9 kB in 0s (489 kB/s)
                                Selecting previously unselected package python3-systemd.
(Reading database ... 45471 files and directories currently installed.)
Preparing to unpack .../python3-systemd_234-3+b4_arm64.deb ...
Unpacking python3-systemd (234-3+b4) ...
Setting up python3-systemd (234-3+b4) ...
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
  mailx monit sqlite3
Recommended packages:
  python3-pyinotify
The following NEW packages will be installed:
  fail2ban whois
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 530 kB of archives.
After this operation, 2,511 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 fail2ban all 0.11.2-2 [451 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 whois arm64 5.5.10 [79.3 kB]
Fetched 530 kB in 0s (4,946 kB/s)
                                 Selecting previously unselected package fail2ban.
(Reading database ... 45489 files and directories currently installed.)
Preparing to unpack .../fail2ban_0.11.2-2_all.deb ...
Unpacking fail2ban (0.11.2-2) ...
Selecting previously unselected package whois.
Preparing to unpack .../whois_5.5.10_arm64.deb ...
Unpacking whois (5.5.10) ...
Setting up whois (5.5.10) ...
Setting up fail2ban (0.11.2-2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/fail2ban.service β†’ /lib/systemd/system/fail2ban.service.
Processing triggers for man-db (2.9.4-2) ...
Installing freeDNS
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
Hit:4 http://security.debian.org bullseye-security InRelease
Hit:5 http://mirrors.xtom.de/armbian bullseye InRelease
Hit:6 https://packages.sury.org/php bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
dnsutils is already the newest version (1:9.16.37-1~deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Installing letsencrypt
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://xogium.performanceservers.nl/apt bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  python3-acme python3-certbot python3-certifi python3-cffi-backend
  python3-chardet python3-configargparse python3-configobj
  python3-cryptography python3-distro python3-idna python3-josepy
  python3-openssl python3-parsedatetime python3-pkg-resources python3-requests
  python3-requests-toolbelt python3-rfc3339 python3-six python3-tz
  python3-urllib3 python3-zope.component python3-zope.event
  python3-zope.hookable python3-zope.interface
Suggested packages:
  python3-certbot-apache python3-certbot-nginx python-certbot-doc
  python-acme-doc python-configobj-doc python-cryptography-doc
  python3-cryptography-vectors python-openssl-doc python3-openssl-dbg
  python3-setuptools python3-socks python-requests-doc
Recommended packages:
  python3-icu
The following NEW packages will be installed:
  certbot python3-acme python3-certbot python3-certifi python3-cffi-backend
  python3-chardet python3-configargparse python3-configobj
  python3-cryptography python3-distro python3-idna python3-josepy
  python3-openssl python3-parsedatetime python3-pkg-resources python3-requests
  python3-requests-toolbelt python3-rfc3339 python3-six python3-tz
  python3-urllib3 python3-zope.component python3-zope.event
  python3-zope.hookable python3-zope.interface
0 upgraded, 25 newly installed, 0 to remove and 2 not upgraded.
Need to get 1,743 kB of archives.
After this operation, 8,539 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 python3-cffi-backend arm64 1.14.5-1 [86.0 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 python3-six all 1.16.0-2 [17.5 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 python3-cryptography arm64 3.3.2-1 [209 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 python3-openssl all 20.0.1-1 [53.7 kB]
Get:5 http://deb.debian.org/debian bullseye/main arm64 python3-pkg-resources all 52.0.0-4 [190 kB]
Get:6 http://deb.debian.org/debian bullseye/main arm64 python3-josepy all 1.2.0-2 [28.4 kB]
Get:7 http://deb.debian.org/debian bullseye/main arm64 python3-certifi all 2020.6.20-1 [151 kB]
Get:8 http://deb.debian.org/debian bullseye/main arm64 python3-chardet all 4.0.0-1 [99.0 kB]
Get:9 http://deb.debian.org/debian bullseye/main arm64 python3-idna all 2.10-1 [37.4 kB]
Get:10 http://deb.debian.org/debian bullseye/main arm64 python3-urllib3 all 1.26.5-1~exp1 [114 kB]
Get:11 http://deb.debian.org/debian bullseye/main arm64 python3-requests all 2.25.1+dfsg-2 [69.3 kB]
Get:12 http://deb.debian.org/debian bullseye/main arm64 python3-requests-toolbelt all 0.9.1-1 [41.7 kB]
Get:13 http://deb.debian.org/debian bullseye/main arm64 python3-tz all 2021.1-1 [34.8 kB]
Get:14 http://deb.debian.org/debian bullseye/main arm64 python3-rfc3339 all 1.1-2 [6,768 B]
Get:15 http://deb.debian.org/debian bullseye/main arm64 python3-acme all 1.12.0-2+deb11u1 [34.7 kB]
Get:16 http://deb.debian.org/debian bullseye/main arm64 python3-configargparse all 1.2.3-1 [25.2 kB]
Get:17 http://deb.debian.org/debian bullseye/main arm64 python3-configobj all 5.0.6-4 [35.8 kB]
Get:18 http://deb.debian.org/debian bullseye/main arm64 python3-distro all 1.5.0-1 [17.1 kB]
Get:19 http://deb.debian.org/debian bullseye/main arm64 python3-parsedatetime all 2.6-1 [41.3 kB]
Get:20 http://deb.debian.org/debian bullseye/main arm64 python3-zope.hookable arm64 5.0.1-1+b2 [12.7 kB]
Get:21 http://deb.debian.org/debian bullseye/main arm64 python3-zope.interface arm64 5.2.0-1 [141 kB]
Get:22 http://deb.debian.org/debian bullseye/main arm64 python3-zope.event all 4.4-3 [9,420 B]
Get:23 http://deb.debian.org/debian bullseye/main arm64 python3-zope.component all 4.3.0-3 [43.1 kB]
Get:24 http://deb.debian.org/debian bullseye/main arm64 python3-certbot all 1.12.0-2 [194 kB]
Get:25 http://deb.debian.org/debian bullseye/main arm64 certbot all 1.12.0-2 [49.7 kB]
Preconfiguring packages ...
Fetched 1,743 kB in 0s (6,017 kB/s)
                                   Selecting previously unselected package python3-cffi-backend:arm64.
(Reading database ... 45964 files and directories currently installed.)
Preparing to unpack .../00-python3-cffi-backend_1.14.5-1_arm64.deb ...
Unpacking python3-cffi-backend:arm64 (1.14.5-1) ...
Selecting previously unselected package python3-six.
Preparing to unpack .../01-python3-six_1.16.0-2_all.deb ...
Unpacking python3-six (1.16.0-2) ...
Selecting previously unselected package python3-cryptography.
Preparing to unpack .../02-python3-cryptography_3.3.2-1_arm64.deb ...
Unpacking python3-cryptography (3.3.2-1) ...
Selecting previously unselected package python3-openssl.
Preparing to unpack .../03-python3-openssl_20.0.1-1_all.deb ...
Unpacking python3-openssl (20.0.1-1) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../04-python3-pkg-resources_52.0.0-4_all.deb ...
Unpacking python3-pkg-resources (52.0.0-4) ...
Selecting previously unselected package python3-josepy.
Preparing to unpack .../05-python3-josepy_1.2.0-2_all.deb ...
Unpacking python3-josepy (1.2.0-2) ...
Selecting previously unselected package python3-certifi.
Preparing to unpack .../06-python3-certifi_2020.6.20-1_all.deb ...
Unpacking python3-certifi (2020.6.20-1) ...
Selecting previously unselected package python3-chardet.
Preparing to unpack .../07-python3-chardet_4.0.0-1_all.deb ...
Unpacking python3-chardet (4.0.0-1) ...
Selecting previously unselected package python3-idna.
Preparing to unpack .../08-python3-idna_2.10-1_all.deb ...
Unpacking python3-idna (2.10-1) ...
Selecting previously unselected package python3-urllib3.
Preparing to unpack .../09-python3-urllib3_1.26.5-1~exp1_all.deb ...
Unpacking python3-urllib3 (1.26.5-1~exp1) ...
Selecting previously unselected package python3-requests.
Preparing to unpack .../10-python3-requests_2.25.1+dfsg-2_all.deb ...
Unpacking python3-requests (2.25.1+dfsg-2) ...
Selecting previously unselected package python3-requests-toolbelt.
Preparing to unpack .../11-python3-requests-toolbelt_0.9.1-1_all.deb ...
Unpacking python3-requests-toolbelt (0.9.1-1) ...
Selecting previously unselected package python3-tz.
Preparing to unpack .../12-python3-tz_2021.1-1_all.deb ...
Unpacking python3-tz (2021.1-1) ...
Selecting previously unselected package python3-rfc3339.
Preparing to unpack .../13-python3-rfc3339_1.1-2_all.deb ...
Unpacking python3-rfc3339 (1.1-2) ...
Selecting previously unselected package python3-acme.
Preparing to unpack .../14-python3-acme_1.12.0-2+deb11u1_all.deb ...
Unpacking python3-acme (1.12.0-2+deb11u1) ...
Selecting previously unselected package python3-configargparse.
Preparing to unpack .../15-python3-configargparse_1.2.3-1_all.deb ...
Unpacking python3-configargparse (1.2.3-1) ...
Selecting previously unselected package python3-configobj.
Preparing to unpack .../16-python3-configobj_5.0.6-4_all.deb ...
Unpacking python3-configobj (5.0.6-4) ...
Selecting previously unselected package python3-distro.
Preparing to unpack .../17-python3-distro_1.5.0-1_all.deb ...
Unpacking python3-distro (1.5.0-1) ...
Selecting previously unselected package python3-parsedatetime.
Preparing to unpack .../18-python3-parsedatetime_2.6-1_all.deb ...
Unpacking python3-parsedatetime (2.6-1) ...
Selecting previously unselected package python3-zope.hookable.
Preparing to unpack .../19-python3-zope.hookable_5.0.1-1+b2_arm64.deb ...
Unpacking python3-zope.hookable (5.0.1-1+b2) ...
Selecting previously unselected package python3-zope.interface.
Preparing to unpack .../20-python3-zope.interface_5.2.0-1_arm64.deb ...
Unpacking python3-zope.interface (5.2.0-1) ...
Selecting previously unselected package python3-zope.event.
Preparing to unpack .../21-python3-zope.event_4.4-3_all.deb ...
Unpacking python3-zope.event (4.4-3) ...
Selecting previously unselected package python3-zope.component.
Preparing to unpack .../22-python3-zope.component_4.3.0-3_all.deb ...
Unpacking python3-zope.component (4.3.0-3) ...
Selecting previously unselected package python3-certbot.
Preparing to unpack .../23-python3-certbot_1.12.0-2_all.deb ...
Unpacking python3-certbot (1.12.0-2) ...
Selecting previously unselected package certbot.
Preparing to unpack .../24-certbot_1.12.0-2_all.deb ...
Unpacking certbot (1.12.0-2) ...
Setting up python3-pkg-resources (52.0.0-4) ...
Setting up python3-configargparse (1.2.3-1) ...
Setting up python3-parsedatetime (2.6-1) ...
Setting up python3-distro (1.5.0-1) ...
Setting up python3-zope.event (4.4-3) ...
Setting up python3-zope.interface (5.2.0-1) ...
Setting up python3-tz (2021.1-1) ...
Setting up python3-six (1.16.0-2) ...
Setting up python3-zope.hookable (5.0.1-1+b2) ...
Setting up python3-chardet (4.0.0-1) ...
Setting up python3-configobj (5.0.6-4) ...
Setting up python3-certifi (2020.6.20-1) ...
Setting up python3-idna (2.10-1) ...
Setting up python3-urllib3 (1.26.5-1~exp1) ...
Setting up python3-rfc3339 (1.1-2) ...
Setting up python3-cffi-backend:arm64 (1.14.5-1) ...
Setting up python3-zope.component (4.3.0-3) ...
Setting up python3-cryptography (3.3.2-1) ...
Setting up python3-requests (2.25.1+dfsg-2) ...
Setting up python3-requests-toolbelt (0.9.1-1) ...
Setting up python3-openssl (20.0.1-1) ...
Setting up python3-josepy (1.2.0-2) ...
Setting up python3-acme (1.12.0-2+deb11u1) ...
Setting up python3-certbot (1.12.0-2) ...
Setting up certbot (1.12.0-2) ...
Created symlink /etc/systemd/system/timers.target.wants/certbot.timer β†’ /lib/systemd/system/certbot.timer.
Processing triggers for man-db (2.9.4-2) ...
Installing metrics
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org bullseye-security InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:6 https://packages.sury.org/php bullseye InRelease
Hit:5 http://armbian.hosthatch.com/apt bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Recommended packages:
  prometheus-node-exporter-collectors
The following NEW packages will be installed:
  prometheus-node-exporter
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 3,049 kB of archives.
After this operation, 11.6 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 prometheus-node-exporter arm64 1.1.2+ds-2.1 [3,049 kB]
Fetched 3,049 kB in 0s (10.8 MB/s)
                                  Selecting previously unselected package prometheus-node-exporter.
(Reading database ... 46812 files and directories currently installed.)
Preparing to unpack .../prometheus-node-exporter_1.1.2+ds-2.1_arm64.deb ...
Unpacking prometheus-node-exporter (1.1.2+ds-2.1) ...
Setting up prometheus-node-exporter (1.1.2+ds-2.1) ...

Configuration file '/etc/default/prometheus-node-exporter'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
 ==> Keeping old config file as default.
Created symlink /etc/systemd/system/multi-user.target.wants/prometheus-node-exporter.service β†’ /lib/systemd/system/prometheus-node-exporter.service.
Processing triggers for man-db (2.9.4-2) ...
Synchronizing state of prometheus-node-exporter.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable prometheus-node-exporter
Removed /etc/systemd/system/multi-user.target.wants/prometheus-node-exporter.service.
Installing modsecurity
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://mirrors.xtom.de/armbian bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libyajl2
Suggested packages:
  lua geoip-database-contrib ruby python
The following NEW packages will be installed:
  libapache2-mod-security2 libyajl2 modsecurity-crs
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 416 kB of archives.
After this operation, 2,048 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 libyajl2 arm64 2.1.0-3 [22.9 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 libapache2-mod-security2 arm64 2.9.3-3+deb11u1 [234 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 modsecurity-crs all 3.3.0-1+deb11u1 [158 kB]
Fetched 416 kB in 0s (2,899 kB/s)
                                 Selecting previously unselected package libyajl2:arm64.
(Reading database ... 46860 files and directories currently installed.)
Preparing to unpack .../libyajl2_2.1.0-3_arm64.deb ...
Unpacking libyajl2:arm64 (2.1.0-3) ...
Selecting previously unselected package libapache2-mod-security2.
Preparing to unpack .../libapache2-mod-security2_2.9.3-3+deb11u1_arm64.deb ...
Unpacking libapache2-mod-security2 (2.9.3-3+deb11u1) ...
Selecting previously unselected package modsecurity-crs.
Preparing to unpack .../modsecurity-crs_3.3.0-1+deb11u1_all.deb ...
Unpacking modsecurity-crs (3.3.0-1+deb11u1) ...
Setting up libyajl2:arm64 (2.1.0-3) ...
Setting up libapache2-mod-security2 (2.9.3-3+deb11u1) ...
apache2_invoke: Enable module security2
apache2_reload: Your configuration is broken. Not restarting Apache 2
apache2_reload: apache2: Syntax error on line 147 of /etc/apache2/apache2.conf: Syntax error on line 12 of /etc/apache2/mods-enabled/security2.conf: Syntax error on line 5 of /usr/share/modsecurity-crs/owasp-crs.load: Could not open configuration file /etc/modsecurity/crs/crs-setup.conf: No such file or directory
Setting up modsecurity-crs (3.3.0-1+deb11u1) ...
Processing triggers for libc-bin (2.31-13+deb11u6) ...
Module security2 disabled.
To activate the new configuration, you need to run:
  systemctl restart apache2
Installing namecheapDNS
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 http://mirrors.xtom.de/armbian bullseye InRelease
Hit:6 https://packages.sury.org/php bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
dnsutils is already the newest version (1:9.16.37-1~deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Installing nc-admin
Installing nc-audit
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://armbian.hosthatch.com/apt bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
  konqueror x-www-browser | www-browser xdg-utils apt-listbugs tripwire
  samhain aide
Recommended packages:
  elfutils equivs libipc-system-simple-perl libfile-slurper-perl
  libfile-which-perl popularity-contest menu
The following NEW packages will be installed:
  debian-goodies debsecan debsums lynis
0 upgraded, 4 newly installed, 0 to remove and 2 not upgraded.
Need to get 426 kB of archives.
After this operation, 2,085 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 debian-goodies all 0.87 [87.0 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 debsecan all 0.4.20.1 [33.2 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 debsums all 3.0.2 [45.3 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 lynis all 3.0.2-1 [261 kB]
Preconfiguring packages ...
Fetched 426 kB in 0s (3,544 kB/s)
                                 Selecting previously unselected package debian-goodies.
(Reading database ... 47023 files and directories currently installed.)
Preparing to unpack .../debian-goodies_0.87_all.deb ...
Unpacking debian-goodies (0.87) ...
Selecting previously unselected package debsecan.
Preparing to unpack .../debsecan_0.4.20.1_all.deb ...
Unpacking debsecan (0.4.20.1) ...
Selecting previously unselected package debsums.
Preparing to unpack .../archives/debsums_3.0.2_all.deb ...
Unpacking debsums (3.0.2) ...
Selecting previously unselected package lynis.
Preparing to unpack .../archives/lynis_3.0.2-1_all.deb ...
Unpacking lynis (3.0.2-1) ...
Setting up lynis (3.0.2-1) ...
Created symlink /etc/systemd/system/timers.target.wants/lynis.timer β†’ /lib/systemd/system/lynis.timer.
lynis.service is a disabled or a static unit, not starting it.
Setting up debsecan (0.4.20.1) ...
Setting up debsums (3.0.2) ...
Setting up debian-goodies (0.87) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for man-db (2.9.4-2) ...
Installing nc-automount
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org bullseye-security InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://xogium.performanceservers.nl/apt bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  gdisk libatasmart4 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2
  libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2
  libgudev-1.0-0 libinotifytools0 libparted-fs-resize0 libudisks2-0
  python3-docopt udisks2
Suggested packages:
  libparted-dev libblockdev-mdraid2 mdadm nilfs-tools reiserfsprogs udftools
  udisks2-bcache udisks2-btrfs udisks2-lvm2 udisks2-zram xfsprogs
Recommended packages:
  gir1.2-gtk-3.0 gir1.2-notify-0.7 gobject-introspection notification-daemon
  python3-keyutils eject libblockdev-crypto2
The following NEW packages will be installed:
  gdisk inotify-tools libatasmart4 libblockdev-fs2 libblockdev-loop2
  libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2
  libblockdev2 libgudev-1.0-0 libinotifytools0 libparted-fs-resize0
  libudisks2-0 python3-docopt udiskie udisks2
0 upgraded, 17 newly installed, 0 to remove and 2 not upgraded.
Need to get 1,266 kB of archives.
After this operation, 5,922 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 gdisk arm64 1.0.6-1.1 [205 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 libinotifytools0 arm64 3.14-8.1 [18.2 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 inotify-tools arm64 3.14-8.1 [25.6 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 libatasmart4 arm64 0.19-5 [22.2 kB]
Get:5 http://deb.debian.org/debian bullseye/main arm64 libblockdev-part-err2 arm64 2.25-2 [6,696 B]
Get:6 http://deb.debian.org/debian bullseye/main arm64 libblockdev-utils2 arm64 2.25-2 [15.4 kB]
Get:7 http://deb.debian.org/debian bullseye/main arm64 libparted-fs-resize0 arm64 3.4-1 [219 kB]
Get:8 http://deb.debian.org/debian bullseye/main arm64 libblockdev-fs2 arm64 2.25-2 [23.0 kB]
Get:9 http://deb.debian.org/debian bullseye/main arm64 libblockdev-loop2 arm64 2.25-2 [9,380 B]
Get:10 http://deb.debian.org/debian bullseye/main arm64 libblockdev-part2 arm64 2.25-2 [17.8 kB]
Get:11 http://deb.debian.org/debian bullseye/main arm64 libblockdev-swap2 arm64 2.25-2 [11.3 kB]
Get:12 http://deb.debian.org/debian bullseye/main arm64 libblockdev2 arm64 2.25-2 [39.7 kB]
Get:13 http://deb.debian.org/debian bullseye/main arm64 libgudev-1.0-0 arm64 234-1 [13.9 kB]
Get:14 http://deb.debian.org/debian bullseye/main arm64 libudisks2-0 arm64 2.9.2-2+deb11u1 [146 kB]
Get:15 http://deb.debian.org/debian bullseye/main arm64 python3-docopt all 0.6.2-3 [26.6 kB]
Get:16 http://deb.debian.org/debian bullseye/main arm64 udisks2 arm64 2.9.2-2+deb11u1 [392 kB]
Get:17 http://deb.debian.org/debian bullseye/main arm64 udiskie all 2.3.2-2 [74.0 kB]
Fetched 1,266 kB in 0s (6,038 kB/s)
                                   Selecting previously unselected package gdisk.
(Reading database ... 47223 files and directories currently installed.)
Preparing to unpack .../00-gdisk_1.0.6-1.1_arm64.deb ...
Unpacking gdisk (1.0.6-1.1) ...
Selecting previously unselected package libinotifytools0:arm64.
Preparing to unpack .../01-libinotifytools0_3.14-8.1_arm64.deb ...
Unpacking libinotifytools0:arm64 (3.14-8.1) ...
Selecting previously unselected package inotify-tools.
Preparing to unpack .../02-inotify-tools_3.14-8.1_arm64.deb ...
Unpacking inotify-tools (3.14-8.1) ...
Selecting previously unselected package libatasmart4:arm64.
Preparing to unpack .../03-libatasmart4_0.19-5_arm64.deb ...
Unpacking libatasmart4:arm64 (0.19-5) ...
Selecting previously unselected package libblockdev-part-err2:arm64.
Preparing to unpack .../04-libblockdev-part-err2_2.25-2_arm64.deb ...
Unpacking libblockdev-part-err2:arm64 (2.25-2) ...
Selecting previously unselected package libblockdev-utils2:arm64.
Preparing to unpack .../05-libblockdev-utils2_2.25-2_arm64.deb ...
Unpacking libblockdev-utils2:arm64 (2.25-2) ...
Selecting previously unselected package libparted-fs-resize0:arm64.
Preparing to unpack .../06-libparted-fs-resize0_3.4-1_arm64.deb ...
Unpacking libparted-fs-resize0:arm64 (3.4-1) ...
Selecting previously unselected package libblockdev-fs2:arm64.
Preparing to unpack .../07-libblockdev-fs2_2.25-2_arm64.deb ...
Unpacking libblockdev-fs2:arm64 (2.25-2) ...
Selecting previously unselected package libblockdev-loop2:arm64.
Preparing to unpack .../08-libblockdev-loop2_2.25-2_arm64.deb ...
Unpacking libblockdev-loop2:arm64 (2.25-2) ...
Selecting previously unselected package libblockdev-part2:arm64.
Preparing to unpack .../09-libblockdev-part2_2.25-2_arm64.deb ...
Unpacking libblockdev-part2:arm64 (2.25-2) ...
Selecting previously unselected package libblockdev-swap2:arm64.
Preparing to unpack .../10-libblockdev-swap2_2.25-2_arm64.deb ...
Unpacking libblockdev-swap2:arm64 (2.25-2) ...
Selecting previously unselected package libblockdev2:arm64.
Preparing to unpack .../11-libblockdev2_2.25-2_arm64.deb ...
Unpacking libblockdev2:arm64 (2.25-2) ...
Selecting previously unselected package libgudev-1.0-0:arm64.
Preparing to unpack .../12-libgudev-1.0-0_234-1_arm64.deb ...
Unpacking libgudev-1.0-0:arm64 (234-1) ...
Selecting previously unselected package libudisks2-0:arm64.
Preparing to unpack .../13-libudisks2-0_2.9.2-2+deb11u1_arm64.deb ...
Unpacking libudisks2-0:arm64 (2.9.2-2+deb11u1) ...
Selecting previously unselected package python3-docopt.
Preparing to unpack .../14-python3-docopt_0.6.2-3_all.deb ...
Unpacking python3-docopt (0.6.2-3) ...
Selecting previously unselected package udisks2.
Preparing to unpack .../15-udisks2_2.9.2-2+deb11u1_arm64.deb ...
Unpacking udisks2 (2.9.2-2+deb11u1) ...
Selecting previously unselected package udiskie.
Preparing to unpack .../16-udiskie_2.3.2-2_all.deb ...
Unpacking udiskie (2.3.2-2) ...
Setting up python3-docopt (0.6.2-3) ...
Setting up libinotifytools0:arm64 (3.14-8.1) ...
Setting up gdisk (1.0.6-1.1) ...
Setting up libatasmart4:arm64 (0.19-5) ...
Setting up libblockdev-utils2:arm64 (2.25-2) ...
Setting up inotify-tools (3.14-8.1) ...
Setting up libparted-fs-resize0:arm64 (3.4-1) ...
Setting up libblockdev-part-err2:arm64 (2.25-2) ...
Setting up libgudev-1.0-0:arm64 (234-1) ...
Setting up libudisks2-0:arm64 (2.9.2-2+deb11u1) ...
Setting up libblockdev-swap2:arm64 (2.25-2) ...
Setting up libblockdev-loop2:arm64 (2.25-2) ...
Setting up libblockdev2:arm64 (2.25-2) ...
Setting up libblockdev-part2:arm64 (2.25-2) ...
Setting up libblockdev-fs2:arm64 (2.25-2) ...
Setting up udisks2 (2.9.2-2+deb11u1) ...
Created symlink /etc/systemd/system/graphical.target.wants/udisks2.service β†’ /lib/systemd/system/udisks2.service.
Setting up udiskie (2.3.2-2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.24-0+deb11u1) ...
Processing triggers for libc-bin (2.31-13+deb11u6) ...
Installing nc-autoupdate-nc
Installing nc-autoupdate-ncp
Installing nc-backup-auto
Installing nc-backup
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
Hit:4 http://security.debian.org bullseye-security InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://mirrors.xtom.de/armbian bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  pigz
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 56.2 kB of archives.
After this operation, 145 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 pigz arm64 2.6-1 [56.2 kB]
Fetched 56.2 kB in 0s (807 kB/s)
                                Selecting previously unselected package pigz.
(Reading database ... 47516 files and directories currently installed.)
Preparing to unpack .../archives/pigz_2.6-1_arm64.deb ...
Unpacking pigz (2.6-1) ...
Setting up pigz (2.6-1) ...
Processing triggers for man-db (2.9.4-2) ...
Installing nc-database
Installing nc-datadir
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://xogium.performanceservers.nl/apt bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
btrfs-progs is already the newest version (5.10.1-2).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Installing nc-encrypt
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
Hit:4 http://security.debian.org bullseye-security InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://xogium.performanceservers.nl/apt bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  gocryptfs
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 1,679 kB of archives.
After this operation, 9,648 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 gocryptfs arm64 1.8.0-1+b6 [1,679 kB]
Fetched 1,679 kB in 0s (11.1 MB/s)
                                  Selecting previously unselected package gocryptfs.
(Reading database ... 47525 files and directories currently installed.)
Preparing to unpack .../gocryptfs_1.8.0-1+b6_arm64.deb ...
Unpacking gocryptfs (1.8.0-1+b6) ...
Setting up gocryptfs (1.8.0-1+b6) ...
Processing triggers for man-db (2.9.4-2) ...
Installing nc-export-ncp
Installing nc-fix-permissions
Installing nc-format-USB
Installing nc-forward-ports
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://mirrors.xtom.de/armbian bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libminiupnpc17
Suggested packages:
  minissdpd
The following NEW packages will be installed:
  libminiupnpc17 miniupnpc
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 56.1 kB of archives.
After this operation, 136 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 libminiupnpc17 arm64 2.2.1-1 [33.4 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 miniupnpc arm64 2.2.1-1 [22.7 kB]
Fetched 56.1 kB in 0s (884 kB/s)
                                Selecting previously unselected package libminiupnpc17:arm64.
(Reading database ... 47536 files and directories currently installed.)
Preparing to unpack .../libminiupnpc17_2.2.1-1_arm64.deb ...
Unpacking libminiupnpc17:arm64 (2.2.1-1) ...
Selecting previously unselected package miniupnpc.
Preparing to unpack .../miniupnpc_2.2.1-1_arm64.deb ...
Unpacking miniupnpc (2.2.1-1) ...
Setting up libminiupnpc17:arm64 (2.2.1-1) ...
Setting up miniupnpc (2.2.1-1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u6) ...
Installing nc-hdd-monitor
Installing nc-hdd-test
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org bullseye-security InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Hit:6 http://mirrors.xtom.de/armbian bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
smartmontools is already the newest version (7.2-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Failed to disable unit: Unit file smartd.service does not exist.
+ exit 1
+ rm -rf /tmp/nextcloudpi.L6v3mV
uho@odroidm1:~$