Raspberry Pi 5 - curl twice... raspi-config with doubled NC entry

Hi NextCloud Support Team,

In short: the curl command failed (my mistake with the setup of my SD card vs. SSD - but not rebooted to activate the /boot/firmware FS correctly)
The log file indicated this error and installation stopped:

raspi-firmware: missing /boot/firmware, did you forget to mount it?)

(my second mistake: simply re-run the curl command getting this error:

WARNING: existing mysqld configuration will be changed <<<
The ‘nextcloud’ database already exists. Aborting

But let’s start with some basics first:
++++++++

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31
  • Operating system and version (e.g., Ubuntu 24.04):
    • Raspberry Pi 5 latest version
  • Web server and version (e.g, Apache 2.4.25):
    • whatever comes with the curl command
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • whatever comes with the curl command
  • PHP version (e.g, 8.3):
    • I assume 8.3 - whatever comes with the curl command
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • installation procedure
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • curl
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • it is a Raspberry Pi 5 fresh image (NOT the NC image)
      ++++++++++++

Summary of the issue I am facing:

I installed the latest version of NC (31) via curl command on Raspberry Pi 5 which is up-to-date (08-JUL-2025)
(sudo apt update => sudo apt upgrade)

+++ just some examples from log file +++

git is already the newest version (1:2.39.5-0+deb12u2).
ca-certificates is already the newest version (20230311+deb12u1).
sudo is already the newest version (1.9.13p3-1+deb12u2).
lsb-release is already the newest version (12.0-1).
wget is already the newest version (1.21.3-1+deb12u1).
jq is already the newest version (1.6-2.1).
gnupg2 is already the newest version (2.2.40-1.1).

php8.3 is already the newest version (8.3.23-1+0~20250703.64+debian12~1.gbp5e3ea4).

As my first try of installation failed (details below), I followed an instruction here from support to remove nextcloud - however, second try did not make it…

So, I search for help to completely de-install nextcloud to allow a fresh “curl” installation.

++++++++++++++++++++++++++++++++++

This was my starting point:

curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | sudo bash

++++++

Installing NextCloudPi…
PHP Warning: Undefined variable $CONFIG in Command line code on line 1
PHP Warning: Trying to access array offset on null in Command line code on line 1
Installing lamp
++++++

avahi-daemon is already the newest version (0.8-10+deb12u1).
The following package was automatically installed and is no longer required:
liblua5.1-0
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Running nc-init
Setting up a clean Nextcloud instance… wait until message ‘NC init done’
Setting up database…
*** FATAL CONFIG FILE ERROR (Redis 7.0.15) ***
Reading the configuration file, at line 2277

‘maxmemory’
wrong number of arguments

++++++
(I missed to enlarge the FS with switch from SD Card to SSD via raspi-config - done &
This is my second try…
++++++
I removed the “/var/www/” sub-directoy named “nextcloud”.
(stopped / restarted the services)
I removed the mysql database (sudo mysql => show databases; => drop database nextcloud;).
(reboot Pi 5)
+++++++++++
I restarted the curl command.
++++++++++
My next error is:

avahi-daemon is already the newest version (0.8-10+deb12u1).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
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.

but nothing more… I can not connect to “nextcloud.local:4443”

I can not connect with WayVNC on port 5900 anymore.

In raspi-config I have three entries (with equal name) for the nextcloud config - so, I need to eliminate NC from this config as well.

I have no data at all in this NC instance.
I do not have any web server or other “valuable” data and config - however, before I start from the “Raspberry Pi” imager, it would be great to hear that you have some specific steps to take to un-install NC.
Thanks for your help.
Cheers, Sir Toby

Welcome SirToby,
it is not quite clear what you want to achieve.
But uninstalling seens not an option in this case.
Decide what device should be boot device and start from scratch.

so, there is no end-2-end un-install instruction after execution of the curl command?

I’m not aware of such command, maybe you can give a link.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.