After I had some WebDAV issues I tried to do a fresh install.
I wiped the card and installed fresh Raspbian (edit: a 32-bit version via the official imager), then started the curl install script.
curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | sudo bash
That is what worked nicely for me before.
But today the script simply fails somewhere in the middle.
Here is the end of the screen output:
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) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
liblua5.1-0 liblzf1 lua-bitop lua-cjson redis-tools
Suggested packages:
ruby-redis
The following NEW packages will be installed:
liblua5.1-0 liblzf1 lua-bitop lua-cjson redis-server redis-tools
0 upgraded, 6 newly installed, 0 to remove and 4 not upgraded.
Need to get 802 kB of archives.
After this operation, 3,417 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf liblua5.1-0 armhf 5.1.5-8.1+b2 [82.8 kB]
Get:2 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf liblzf1 armhf 3.6-3 [9,268 B]
Get:3 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf lua-bitop armhf 1.0.2-5 [6,496 B]
Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf lua-cjson armhf 2.1.0+dfsg-2.1 [15.2 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf redis-tools armhf 5:6.0.16-1+deb11u2 [590 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf redis-server armhf 5:6.0.16-1+deb11u2 [98.2 kB]
Fetched 802 kB in 1s (634 kB/s)
Selecting previously unselected package liblua5.1-0:armhf.
(Reading database ... 108148 files and directories currently installed.)
Preparing to unpack .../0-liblua5.1-0_5.1.5-8.1+b2_armhf.deb ...
Unpacking liblua5.1-0:armhf (5.1.5-8.1+b2) ...
Selecting previously unselected package liblzf1:armhf.
Preparing to unpack .../1-liblzf1_3.6-3_armhf.deb ...
Unpacking liblzf1:armhf (3.6-3) ...
Selecting previously unselected package lua-bitop:armhf.
Preparing to unpack .../2-lua-bitop_1.0.2-5_armhf.deb ...
Unpacking lua-bitop:armhf (1.0.2-5) ...
Selecting previously unselected package lua-cjson:armhf.
Preparing to unpack .../3-lua-cjson_2.1.0+dfsg-2.1_armhf.deb ...
Unpacking lua-cjson:armhf (2.1.0+dfsg-2.1) ...
Selecting previously unselected package redis-tools.
Preparing to unpack .../4-redis-tools_5%3a6.0.16-1+deb11u2_armhf.deb ...
Unpacking redis-tools (5:6.0.16-1+deb11u2) ...
Selecting previously unselected package redis-server.
Preparing to unpack .../5-redis-server_5%3a6.0.16-1+deb11u2_armhf.deb ...
Unpacking redis-server (5:6.0.16-1+deb11u2) ...
Setting up lua-cjson:armhf (2.1.0+dfsg-2.1) ...
Setting up liblzf1:armhf (3.6-3) ...
Setting up lua-bitop:armhf (1.0.2-5) ...
Setting up liblua5.1-0:armhf (5.1.5-8.1+b2) ...
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+rpt2+rpi1+deb11u4) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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 4 not upgraded.
Need to get 260 kB of archives.
After this operation, 756 kB of additional disk space will be used.
Get:1 https://packages.sury.org/php bullseye/main armhf php8.1-igbinary armhf 3.2.6+2.0.8-6+0~20220131.33+debian11~1.gbp1d540e [127 kB]
Get:2 https://packages.sury.org/php bullseye/main armhf php8.1-redis armhf 5.3.7+4.3.0-1+0~20220330.42+debian11~1.gbp6fe8b7 [133 kB]
Fetched 260 kB in 1s (414 kB/s)
Selecting previously unselected package php8.1-igbinary.
(Reading database ... 108230 files and directories currently installed.)
Preparing to unpack .../php8.1-igbinary_3.2.6+2.0.8-6+0~20220131.33+debian11~1.gbp1d540e_armhf.deb ...
Unpacking php8.1-igbinary (3.2.6+2.0.8-6+0~20220131.33+debian11~1.gbp1d540e) ...
Selecting previously unselected package php8.1-redis.
Preparing to unpack .../php8.1-redis_5.3.7+4.3.0-1+0~20220330.42+debian11~1.gbp6fe8b7_armhf.deb ...
Unpacking php8.1-redis (5.3.7+4.3.0-1+0~20220330.42+debian11~1.gbp6fe8b7) ...
Setting up php8.1-igbinary (3.2.6+2.0.8-6+0~20220131.33+debian11~1.gbp1d540e) ...
Setting up php8.1-redis (5.3.7+4.3.0-1+0~20220330.42+debian11~1.gbp6fe8b7) ...
Processing triggers for php8.1-cli (8.1.11-1+0~20220929.27+debian11~1.gbpe414ce) ...
Processing triggers for php8.1-fpm (8.1.11-1+0~20220929.27+debian11~1.gbpe414ce) ...
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.
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
Created symlink /etc/systemd/system/multi-user.target.wants/nc-provisioning.service ? /lib/systemd/system/nc-provisioning.service.
Running nc-nextcloud
Downloading Nextcloud 24.0.5...
Installing Nextcloud 24.0.5...
Creating possible missing Directories
chmod Files and Directories
chown Directories
chmod/chown .htaccess
INFO: Restoring template to default settings
Setting up database...
Setting up Apache...
INFO: Metrics enabled: no
Enabling site nextcloud.
To activate the new configuration, you need to run:
systemctl reload apache2
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
Created symlink /etc/systemd/system/multi-user.target.wants/notify_push.service ? /etc/systemd/system/notify_push.service.
Setting up system...
Don't forget to run nc-init
Installing ncp
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 https://packages.sury.org/php bullseye InRelease
Get:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Fetched 15.0 kB in 6s (2,531 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
file is already the newest version (1:5.39-3).
git is already the newest version (1:2.30.2-1).
jq is already the newest version (1.6-2.1).
lsb-release is already the newest version (11.1.0+rpi1).
whiptail is already the newest version (0.52.21-4+b2).
whiptail set to manually installed.
The following NEW packages will be installed:
dialog
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 252 kB of archives.
After this operation, 1,020 kB of additional disk space will be used.
Get:1 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf dialog armhf 1.3-20201126-1 [252 kB]
Fetched 252 kB in 1s (288 kB/s)
Selecting previously unselected package dialog.
(Reading database ... 108250 files and directories currently installed.)
Preparing to unpack .../dialog_1.3-20201126-1_armhf.deb ...
Unpacking dialog (1.3-20201126-1) ...
Setting up dialog (1.3-20201126-1) ...
Processing triggers for man-db (2.9.4-2) ...
**usermod: user 'pi' does not exist**