Nextcloud installation fail

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.11
What app is this about: Nextcloud

Describe your issue

I am trying to re-install Nextcloud, after previously using it on this Yunohost, then removing it. Now I want to reinstall it :slight_smile:

But the installer fails… I tried twice and get the same result each time

Here’s the pastebin logs: https://paste.yunohost.org/raw/enotazemac and https://paste.yunohost.org/raw/micowiradi

ANy help much appreciated. THank you

Share relevant logs or error messages

https://paste.yunohost.org/raw/micowiradi
https://paste.yunohost.org/raw/enotazemac

Here you can’t reinstall it beacause the folder /home/yunohost.app/nextcloud/data is still here

2025-02-23 11:20:13,113: DEBUG - Login is invalid because files already exist for this user

Have you keep a backup of the previous nextcloud ?? Is better restore a backup.

Or if no backups, you can rename the folder with the data, install a new fresh nextcloud and try move files of the users folders, but like this only files will be saved…

All commands are connected on ssh and with root user
Once connected to a shell to get root shell

sudo -i

Then these steps

  • Rename the data folder
mv /home/yunohost.app/nextcloud/data  data-BKP
  • Install nextcloud
yunohost app install nextcloud
  • Give correct permissions on the backup folder
chown -R nextcloud: data-BKP
  • Copy files for user from backup to new folder data => user => files
cp -a data-BKP/user/files/. /home/yunohost.app/nextcloud/data/user/files/
  • Rescan the folder needed for the database
yunohost app shell nextcloud
php occ files:scan user 
1 Like

Thank you @rodinux ! Your solution worked perfectly fr me.

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