nextcloud uninstall failed Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
ARV187
Posts: 7
Joined: Sun Mar 07, 2021 1:45 pm

nextcloud uninstall failed

Post by ARV187 »

Hi,
I uninstalled nextcloud but the process was hungup. Now when I try install again nextcloud it say me that is already installed.
If I try uninstall it see this message:

Code: Select all

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Uninstalling Nextcloud: File sync, sharing and collaboration platform

ERROR 1396 (HY000) at line 1: Operation DROP USER failed for 'oc_admin'@'localhost'
mysqladmin: DROP DATABASE nextcloud failed;
error: 'Can't drop database 'nextcloud'; database doesn't exist'
I created the user ac_admin and nextcloud database to do work the uninstall proccess, but again hungup and return to start point.

How I can reinstall again nextcloud?
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud uninstall failed

Post by Joulinar »

Hi,

to purge the entire installation and remove all data, you could do following

Code: Select all

G_AGP mariadb-server 
G_AGA 
rm -Rf /var/www/nextcloud /mnt/dietpi_userdata/nextcloud_data 
rm -Rf /{mnt/dietpi_userdata,var/lib,var/log,etc}/mysql 
sed -i '/aSOFTWARE_INSTALL_STATE\[88\]/c\aSOFTWARE_INSTALL_STATE\[88\]=0' /boot/dietpi/.installed 
sed -i '/aSOFTWARE_INSTALL_STATE\[114\]/c\aSOFTWARE_INSTALL_STATE\[114\]=0' /boot/dietpi/.installed
NC can be installed using dietpi-software again
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
ARV187
Posts: 7
Joined: Sun Mar 07, 2021 1:45 pm

Re: nextcloud uninstall failed

Post by ARV187 »

Hi, I got this output:

Code: Select all

dietpi@DietPi:~$ sudo G_AGP mariadb-server
sudo: G_AGP: command not found
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud uninstall failed

Post by Joulinar »

Can you try running this as user root pls
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
ARV187
Posts: 7
Joined: Sun Mar 07, 2021 1:45 pm

Re: nextcloud uninstall failed

Post by ARV187 »

Thanks Joulinar!

Solved!
DevSkyWalker
Posts: 4
Joined: Tue Mar 09, 2021 11:04 pm

Re: nextcloud uninstall failed

Post by DevSkyWalker »

Joulinar wrote: Sun Mar 07, 2021 4:19 pm Can you try running this as user root pls
I had this same issue unfortunately I had to d a fresh install. What server are you using and are you initiating multiple servers such as Nginx mariadb and Nginx SQLite? or apache.

I found it is best to install software packages 1 at a time so you can configure them. if you are switching sevral servers on at once it could cause conflicts. Many of the packages are Git repos that are constantly being worked on so dependencies change.

Check you services and check if MariaDB is failed. If it is go try uninstalling things that depend on it to see if it fires back up after a reboot. This will help you pinpoint the issue. It might be less time consuming to do a fresh install though?
Post Reply