Trying to install Nextcloud

Hi there,

I tried to install Nextcloud but it failed because I ran out of disk space. I am trying to install it again so I run these commands first (as root)

sed -i "\|cp '/var/www/nextcloud/config/config.sample.php'|d" /DietPi/dietpi/dietpi-software
rm /var/www/nextcloud/config/config.php
rm /var/www/nextcloud/occ
mysqladmin drop nextcloud


dietpi-software install 114

First warning I get is

Existing Nextcloud Lighttpd configuration found, will preserve the old one and save the new one for review and 
comparison to: /etc/lighttpd/conf-available/99-dietpi-nextcloud.conf.dietpi-new

I hit ok on that then I get

- Command: ncc maintenance:install
 - Exit code: 1
 - DietPi version: v6.28.0 (MichaIng/master) | HW_MODEL:12 | HW_ARCH:3 | DISTRO:4
 - Image creator: DietPi Core Team
 - Pre-image: Meveric
 Log file content:
 Username is invalid because files already exist for this user

 If problems persist, please report at
 for investigation.

Unable to continue, DietPi-Software will now terminate.

Any ideas please?

I fixed it with

ncc maintenance:install

All I had to do was supply an admin password.

Okay, clean solution would be:

  1. Revert changes in dietpi-software
  2. rm -Rf /var/www/nextcloud /mnt/dietpi_userdata/nextcloud_data
  3. mysql -e ‘drop user oc_admin@localhost’
  4. mysql -e ‘drop user oc_admin’
  5. mysqladmin drop nextcloud -f
  6. dietpi-software install 114

Especially because our setup includes some enhancements done after where your install failed.

Strange that you ran out out of space since dietpi-software checks for 500M being available before doing installs.

I am a bit reluctant to reinstall again as it is all working now. Can you point me in the direction of the enhancements it does so I can check if they are in place?