Nextcloud not installed using NCP curl installer on Armbian Odroid HC4

Install of Nextcloud via NextCloudPi curl command results in incomplete installation on Armbian running on an Odroid HC4.
Full bash output (with two warnings/errors between **):

Zusammenfassung
# sudo curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash
>>> WARNING: existing mysqld configuration will be changed <<<
Getting build code...
OK:1 http://deb.debian.org/debian buster InRelease
Holen:2 http://deb.debian.org/debian buster-updates InRelease [51,9 kB]
Holen:3 http://deb.debian.org/debian buster-backports InRelease [46,7 kB]
Holen:4 http://security.debian.org buster/updates InRelease [65,4 kB]
OK:5 https://download.docker.com/linux/debian buster InRelease
Holen:7 http://deb.debian.org/debian buster-backports/main arm64 Packages.diff/Index [36,9 kB]
Holen:8 http://deb.debian.org/debian buster-backports/main armhf Contents (deb).diff/Index [37,0 kB]
Holen:9 http://deb.debian.org/debian buster-backports/main arm64 Contents (deb).diff/Index [37,0 kB]
Holen:10 http://deb.debian.org/debian buster-backports/main arm64 Packages 2020-12-07-2000.54.pdiff [4.246 B]
Holen:11 http://deb.debian.org/debian buster-backports/main armhf Contents (deb) 2020-12-07-2000.54.pdiff [590 B]
Holen:10 http://deb.debian.org/debian buster-backports/main arm64 Packages 2020-12-07-2000.54.pdiff [4.246 B]
Holen:11 http://deb.debian.org/debian buster-backports/main armhf Contents (deb) 2020-12-07-2000.54.pdiff [590 B]
Holen:12 http://deb.debian.org/debian buster-backports/main arm64 Contents (deb) 2020-12-07-2000.54.pdiff [779 B]
Holen:12 http://deb.debian.org/debian buster-backports/main arm64 Contents (deb) 2020-12-07-2000.54.pdiff [779 B]
Holen:13 http://security.debian.org buster/updates/main arm64 Packages [311 kB]
Holen:14 http://security.debian.org buster/updates/main armhf Packages [311 kB]
Holen:6 https://beta.armbian.com buster InRelease [18,3 kB]
Holen:15 https://beta.armbian.com buster/main arm64 Packages [818 kB]
Holen:16 https://beta.armbian.com buster/main armhf Packages [677 kB]
Holen:17 https://beta.armbian.com buster/main armhf Contents (deb) [11,7 MB]
Holen:18 https://beta.armbian.com buster/main arm64 Contents (deb) [6.565 kB]
Es wurden 20,7 MB in 35 s geholt (598 kB/s).
Paketlisten werden gelesen... Fertig
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
lsb-release ist schon die neueste Version (10.2019051400).
sudo ist schon die neueste Version (1.8.27-1+deb10u2).
wget ist schon die neueste Version (1.20.1-1.1).
ca-certificates ist schon die neueste Version (20200601~deb10u1).
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  libavahi-core7
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
/tmp/nextcloudpi.zzJdJt /var/www/nextcloud/config
/var/www/nextcloud/config

Installing NextCloudPi...
Installing lamp
OK:1 http://security.debian.org buster/updates InRelease
OK:2 http://deb.debian.org/debian buster InRelease
OK:3 https://download.docker.com/linux/debian buster InRelease
OK:4 http://deb.debian.org/debian buster-updates InRelease
OK:5 http://deb.debian.org/debian buster-backports InRelease
OK:6 https://beta.armbian.com buster InRelease
Paketlisten werden gelesen... Fertig
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
apt-utils ist schon die neueste Version (1.8.2.1).
cron ist schon die neueste Version (3.0pl1-134+deb10u1).
curl ist schon die neueste Version (7.64.0-4+deb10u1).
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  libavahi-core7
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
apache2 ist schon die neueste Version (2.4.38-3+deb10u4).
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  libavahi-core7
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Hinweis: »php7.3-common« wird an Stelle von »php7.3-fileinfo« gewählt.
php7.3 ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-bz2 ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-cli ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-common ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-curl ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-fpm ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-gd ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-intl ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-json ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-ldap ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-mbstring ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-opcache ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-xml ist schon die neueste Version (7.3.19-1~deb10u1).
php7.3-zip ist schon die neueste Version (7.3.19-1~deb10u1).
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  libavahi-core7
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
mariadb-server ist schon die neueste Version (1:10.3.27-0+deb10u1).
php7.3-mysql ist schon die neueste Version (7.3.19-1~deb10u1).
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  libavahi-core7
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
Module http2 already enabled
Conf http2 already enabled
Considering dependency proxy for proxy_fcgi:
Module proxy already enabled
Module proxy_fcgi already enabled
Module setenvif already enabled
Conf php7.3-fpm already enabled
Module rewrite already enabled
Module headers already enabled
Module dir already enabled
Module mime already enabled
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
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
ssl-cert ist schon die neueste Version (1.0.39).
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  libavahi-core7
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.

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
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

stty: Standardeingabe: Unpassender IOCTL (I/O-Control) für das Gerät
Enter current password for root (enter for none):
stty: Standardeingabe: Unpassender IOCTL (I/O-Control) für das Gerät
OK, successfully used password, moving on...

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

You already have a root password set, so you can safely answer 'n'.

Change the root password? [Y/n] stty: Standardeingabe: Unpassender IOCTL (I/O-Control) für das Gerät
New password:
Re-enter new password:
stty: Standardeingabe: Unpassender IOCTL (I/O-Control) für das Gerät
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!
Installing nc-nextcloud
Running nc-nextcloud
Downloading Nextcloud 20.0.2...
Installing  Nextcloud 20.0.2...
Creating possible missing Directories
chmod Files and Directories
chown Directories
chmod/chown .htaccess
Setting up database...
Setting up Apache...
Enabling site nextcloud.
To activate the new configuration, you need to run:
  systemctl reload apache2
Setting up system...
Don't forget to run nc-init
**Warning: The unit file, source configuration file or drop-ins of mysqld.service changed on disk. Run 'systemctl daemon-reload' to reload units.**
Installing ncp
OK:1 http://security.debian.org buster/updates InRelease
OK:2 http://deb.debian.org/debian buster InRelease
OK:3 http://deb.debian.org/debian buster-updates InRelease
OK:4 http://deb.debian.org/debian buster-backports InRelease
OK:5 https://download.docker.com/linux/debian buster InRelease
OK:6 https://beta.armbian.com buster InRelease
Paketlisten werden gelesen... Fertig
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
dialog ist schon die neueste Version (1.3-20190211-1).
file ist schon die neueste Version (1:5.35-4+deb10u1).
git ist schon die neueste Version (1:2.20.1-2+deb10u3).
jq ist schon die neueste Version (1.5+dfsg-2+b1).
lsb-release ist schon die neueste Version (10.2019051400).
whiptail ist schon die neueste Version (0.52.20-8).
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  libavahi-core7
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
libapache2-mod-authnz-external ist schon die neueste Version (3.3.2-0.1+b1).
pwauth ist schon die neueste Version (2.3.11-0.2).
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  libavahi-core7
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
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
Site nextcloud disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2
Site ncp-activation already enabled
Geben Sie ein neues Passwort ein: Geben Sie das neue Passwort erneut ein: passwd: Passwort erfolgreich geändert
Downloading updates
Performing updates


  **There are no commands defined in the "config:system" namespace.**


Running nc-init
Setting up a clean Nextcloud instance... wait until message 'NC init done'
Setting up database...
Setting up Nextcloud...
Set an admin password.

Has anyone got a clue how to fix this or why it is happening?

Solution to the problem (do everything with root / sudo):

  1. Run install.sh
  2. Start ncp-config --> CONFIG
  3. Run nc-init
  4. Run nc-trusted-domains
  5. Run nc-webui
  6. Go to https://YOURIP/activate and click activate

Now you can go to https://YOURIP:443 to reach Nextcloud and to https://YOURIP:4443 to reach NCP WebUI.

Warning: NCP has the “_” character pre-filled in password form fields of nc-admin and nc-passwd. You have to actively remove it, otherwise your passwords won’t be correct.