.ocdata missing fixed now lost permissionsc

Hi,

I had the .ocdata missing error this morning, solved it by creating new file with sudo touch command. Now I can log on to my Nextcloud and see all folders and files but can’t do anything with them, not open, not download/upload. Same for all users and their files. I currently get the Internal server error message and 503 Service not available.

Checked the user rights to the folders:

/var/log/apache2# ls -alh /srv/dev-disk-by-uuid-19d9dd75-753a-453d-9103-5292de9c61e3/nextcloud/data
total 1.5M
drwxrwx---  7 www-data www-data 4.0K Apr  5 18:20 .
drwxr-xr-x  3 www-data www-data 4.0K Apr  3 01:24 ..
-rw-r--r--  1 www-data www-data  542 Apr  5 12:46 .htaccess
-rw-r--r--  1 www-data www-data    0 Apr  5 07:06 .ocdata
drwxr-xr-x  3 www-data www-data 4.0K Apr  5 07:06 A
drwxr-xr-x  3 www-data www-data 4.0K Apr  5 07:46 a
drwxr-xr-x 10 www-data www-data 4.0K Apr  5 17:17 appdata_oc6p8n6wyhua
-rw-r--r--  1 www-data www-data    0 Apr  5 12:46 index.html
-rw-r-----  1 www-data www-data 1.5M Apr  5 18:49 nextcloud.log
drwxr-xr-x  4 www-data www-data 4.0K Apr  5 12:46 updater-oc6p8n6wyhua
-rw-r--r--  1 www-data www-data  13K Apr  5 12:46 updater.log

root@raspberrypi:

Can’t find anything in the errorlogs.
I have tried to search the web to no avail. I have all files synced so I don’t risk loosing anything and have a copy of the Pi image. Anyone with any advice how to solve the issue with permissions.

Chers,
Ake

The internal error messages are difficult because they are very generic.
Logfiles from Nextcloud: https://docs.nextcloud.com/server/stable/admin_manual/issues/general_troubleshooting.html#id1

and also webserver, php, database can reveal more information.

Cause already found, the .ocdata fix destroyed my raid. Already installing everything again, think I need to find something more reliable.