Trying to install Nextcloud Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
jason_a69
Posts: 11
Joined: Thu Apr 05, 2018 7:30 am

Trying to install Nextcloud

Post by jason_a69 »

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)

Code: Select all

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
Then

Code: Select all

dietpi-software install 114
First warning I get is

Code: Select all

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

Code: Select all

- 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 https://github.com/MichaIng/DietPi/issues
 for investigation.

Unable to continue, DietPi-Software will now terminate.
Any ideas please?
jason_a69
Posts: 11
Joined: Thu Apr 05, 2018 7:30 am

Re: Trying to install Nextcloud

Post by jason_a69 »

I fixed it with

Code: Select all

ncc maintenance:install
All I had to do was supply an admin password.
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Trying to install Nextcloud

Post by MichaIng »

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.
jason_a69
Posts: 11
Joined: Thu Apr 05, 2018 7:30 am

Re: Trying to install Nextcloud

Post by jason_a69 »

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?
Post Reply