@Cys Just create the .ncdata file in /home/yunohost.app/nextcloud/data/
yunohost app shell nextcloud
nano /home/yunohost.app/nextcloud/data/.ncdata
# You can add the following content : # Nextcloud data directory
exit
sudo chmod 640 /home/yunohost.app/nextcloud/data/.ncdata
OK, I should have try this but I wasn’t sure an empty file could work.
So I went a bit ahead ans here is the ouput of php occ maintenance:repair :
(…)
Clean tags and favorites
ERROR: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘nextcloud.oc_vcategory’ doesn’t exist
Repair invalid shares
ERROR: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘nextcloud.oc_share’ doesn’t exist
Move .step file of updater to backup location
(…)
Invalidation not required
Cache the user display names
ERROR: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘nextcloud.oc_talk_attendees’ doesn’t exist
Fix the namespace in database tables
ERROR: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘nextcloud.oc_talk_attendees’ doesn’t exist
Regenerate signaling keys
(…)
I tried again Nextcloud upgrade after that but it failed. I’m afraid missing tables are required to run the upgrade (but why are they missing in the backup ?..).
I tried to access the Nextcloud URL but I only have a 404 Not Found of nginx displayed.
I don’t want to waste your time (thank again for your help), I think I will restart from scratch and tell my users (not professional ones hopefully) they will need to use their backups for fresh accounts.