Installation on Raspi4b using curl fails

Hi there,

I am trying to install nextcloud using
curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | sudo bash

On a fresh Raspi OS, this worked like a charm and the configuration wizard came up.
Recently, I re-flashed the Raspi OS and setup Pi-Hole and Wireguard.
Now, the installation of Nextcloud does not complete and ends with

Site nextcloud disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Site ncp-activation already enabled
New password: Retype new password: passwd: password updated successfully
Downloading updates
Performing updates
/usr/local/etc/library.sh: line 263: [: v0: integer expression expected
/usr/local/etc/library.sh: line 265: [: v0: integer expression expected
/usr/local/etc/library.sh: line 267: [: v0: integer expression expected
/usr/local/etc/library.sh: line 263: [: v0: integer expression expected
/usr/local/etc/library.sh: line 265: [: v0: integer expression expected
/usr/local/etc/library.sh: line 267: [: v0: integer expression expected
/usr/local/etc/library.sh: line 263: [: v0: integer expression expected
/usr/local/etc/library.sh: line 265: [: v0: integer expression expected
/usr/local/etc/library.sh: line 267: [: v0: integer expression expected

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.

When trying to manually reload apache2, I get the following message:

pi@raspberrypi:~ $ systemctl reload apache2
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to reload ‘apache2.service’.
Authenticating as: , (pi)
Password:
==== AUTHENTICATION COMPLETE ===
apache2.service is not active, cannot reload.

So I guess the existing Pi-Hole and/or Wireguard-Installations interfere with apache2?!
Any ideas about that are greatly appreciated! :slight_smile:

yep, a clean and minimal Debian Buster is expected

Can try to run the docker image tho, and have ncp listen on alternate ports.

Thanks for your reply.

So you would suggest the following installation order?

  1. Nextcloud
  2. Pi-Hole
  3. Wireguard

Will my nextcloud be accessible through the wireguard tunnel in this case?

Dont know Pi-Hole, never tried it.
PiVPN/Wireguard runs fine on top of ncp, in my experience.

This actually worked.

Anyhow, I had to replace the default lighttpd-port of Pi-Hole because the webinterfaces of Nextcloud and Pi-Hole interfered…

Thank you again!