Permissions for storage folder have changed

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

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

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: