Nag about .ncdata not existing, then this!

Hi All,

New this community, I’m running Nextcloud on a Raspberry Pi 4 (w/o Docker) with external storage. Things appeared to be working but that is degrading quickly. I’m not an IT or Linux expert by any means, so I may need some hand-holding.

I created an empty .ncdata file at the root or my data directory

I’m trying to resolve these recent error messages:

performing a “sudo chmod -R 777 /mnt/ produces this error

image

performing a “sudo chmod -R 770 /mnt/ produces this error

Hello @saycoda,

welcome to the Nextcloud community! :handshake:

please use search the topic is discussed many times already. basically the right commands are

#chown -R www-data:www-data ./files
find ./app ./config ./data -type d -exec sudo chown -R www-data:www-data '{}' \;
find ./app ./config ./data -type d -exec sudo chmod 750 '{}' \;
find ./app ./config ./data -type f -exec sudo chmod 640 '{}' \;

where www-data is the user running your webserver and app, config and data are directories used for respective data.

As you are missing basic knowledge I recommend to review 101: Self-hosting information for beginners