Permissions for storage folder have changed


#1

I am running nextcloud through snap on my server. After installation, I changed the external storage to an external HD in /media according to these instructions. This worked fine for some days, but since yesterday I sometimes get notifications about storage ‘not accessible’. I restarted the server, now I can log-in, but I’m unable to upload or download files. I changed some files locally and the client reports a couple of errors like “423 Locked” or “503 Service unavailable”, see attachmentScreenshot%20from%202019-03-16%2020-00-47

When I try to download files via the mobile client, I get “Server is in maintenance mode”.

The permissions for the storage folder, which is always mounted to the same position, look as follows:

drwxr-x--- 6 root root 4096 Mär 14 18:37 nextcloud_data

How can I solve this?

thanks in advance


#2

Take this:
sudo chown -R www-data:www-data nextcloud_data


#3

as far as I know, snap requires root to be the owner. I now did a complete reinstall and changed the storage folder in autoconfig.php before creating the admin user. Now I try to figure out how to close this tread :slight_smile: