Nextcloud doesn't work after restoration

What app is this about, and its version: Nextcloud, 32.0.6~ynh2
What YunoHost version are you running: 12.1.39
What type of hardware are you using: VPS bought online

Describe your issue

After restoring from backups, it does not started working when I open my Nextcloud dashboard it returns this error:

Share relevant logs or error messages

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Can you share your backup_restore log ?

There you go: https://paste.yunohost.org/raw/yesiyigemi

Can you share the output of namei -l /var/log/nextcloud

Update: I’ve solved the internal server error but I can’t upgrade to the lastest version right now. Right now the issue I want to solve is to upgrade the Nextcloud to the lastest version. Here is the output of namei -l /var/log/nextcloud:

f: /var/log/nextcloud
drwxr-xr-x root root /
drwxr-xr-x root root var
drwxr-xr-x root root log
drwxrwxrwx nextcloud nextcloud nextcloud

And here are the logs of the upgrade:

https://paste.yunohost.org/raw/sobuyoteni

Did you check the permissions on these folders :

ls -la /var/www/nextcloud
ls -la /home/yunohost.app/nextcloud

Yeah also I’ve gave some permissions to /var/ folder.

root@atakan:/home/yunohost.app# ls -la /var/www/nextcloud
total 1268
drwxr-x— 15 nextcloud www-data 4096 Apr 11 12:31 .
drwxr-xr-x+ 13 root root 4096 Apr 11 12:56 ..
drwxr-xr-x 42 nextcloud www-data 4096 Feb 12 05:45 3rdparty
drwxr-xr-x 63 nextcloud www-data 4096 Mar 2 09:56 apps
-rw-r–r-- 1 nextcloud www-data 26395 Feb 12 05:37 AUTHORS
-rw-r–r-- 1 nextcloud www-data 2611 Feb 12 05:37 composer.json
-rw-r–r-- 1 nextcloud www-data 3409 Feb 12 05:37 composer.lock
drwxr-xr-x 2 nextcloud www-data 4096 Apr 11 12:32 config
-rw-r–r-- 1 nextcloud www-data 3814 Feb 12 05:37 console.php
-rw-r–r-- 1 nextcloud www-data 34520 Feb 12 05:37 COPYING
drwxr-xr-x 25 nextcloud www-data 4096 Feb 12 05:45 core
-rw-r–r-- 1 nextcloud www-data 8233 Feb 12 05:37 cron.php
drwxr-xr-x 2 nextcloud www-data 32768 Feb 12 05:37 dist
-rw-r–r-- 1 nextcloud www-data 128 Apr 11 12:36 .htaccess
-rw-r–r-- 1 nextcloud www-data 331 Feb 12 05:37 index.html
-rw-r–r-- 1 nextcloud www-data 3695 Feb 12 05:37 index.php
drwxr-xr-x 7 nextcloud www-data 4096 Feb 12 05:37 lib
drwxr-xr-x 2 nextcloud www-data 4096 Feb 12 05:37 LICENSES
drwxr-xr-x 3 nextcloud www-data 4096 Apr 11 12:16 .local
-rw-r–r-- 1 nextcloud www-data 596 Feb 12 05:37 occ
drwxr-xr-x 2 nextcloud www-data 4096 Feb 12 05:37 ocs
drwxr-xr-x 2 nextcloud www-data 4096 Feb 12 05:37 ocs-provider
-rw-r–r-- 1 nextcloud www-data 7123 Feb 12 05:37 package.json
-rw-r–r-- 1 nextcloud www-data 1025738 Feb 12 05:37 package-lock.json
-rw-r–r-- 1 nextcloud www-data 3059 Feb 12 05:37 public.php
-rw-r–r-- 1 nextcloud www-data 4760 Feb 12 05:37 remote.php
drwxr-xr-x 4 nextcloud www-data 4096 Feb 12 05:37 resources
-rw-r–r-- 1 nextcloud www-data 36503 Feb 12 05:37 REUSE.toml
-rw-r–r-- 1 nextcloud www-data 26 Feb 12 05:37 robots.txt
-rw-r–r-- 1 nextcloud www-data 1490 Feb 12 05:37 status.php
drwxr-xr-x 3 nextcloud www-data 4096 Feb 12 05:37 themes
drwxr-xr-x 2 nextcloud www-data 4096 Feb 12 05:39 updater
-rw-r–r-- 1 nextcloud www-data 306 Feb 12 05:37 .user.ini
-rw-r–r-- 1 nextcloud www-data 446 Feb 12 05:45 version.php
root@atakan:/home/yunohost.app# ls -la /home/yunohost.app/nextcloud
total 12
drwxr-x— 3 nextcloud nextcloud 4096 Apr 11 08:07 .
drwxr-xr-x 9 root root 4096 Apr 11 08:07 ..
drwxr-x— 3 nextcloud nextcloud 4096 Apr 11 12:36 data

And more precisely namei -l /home/yunohost.app/nextcloud/data/appdata_ocqu1a192jnp/text/documents ?
Your server doesn’t run out of space, right ?

No it doesn’t run out of space still there are lots of space and there is no related folder that you mentioned.

2026-04-11 12:51:08,855: DEBUG - Repair error: Could not move /appdata_ocqu1a192jnp/text/documents to /appdata_ocqu1a192jnp/text/documents_old_1775926268
root@atakan:/home/yunohost.app# namei -l /home/yunohost.app/nextcloud/data/appdata_ocqu1a192jnp/text/documents
f: /home/yunohost.app/nextcloud/data/appdata_ocqu1a192jnp/text/documents
drwxr-xr-x root      root      /
drwxr-xr-x root      root      home
drwxr-xr-x root      root      yunohost.app
drwxr-x--- nextcloud nextcloud nextcloud
drwxr-x--- nextcloud nextcloud data
                               appdata_ocqu1a192jnp - No such file or directory

What do return cat /var/www/nextcloud/config/config.php | grep instanceid ? and ls /home/yunohost.app/nextcloud/data/

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