Operation is blocked by access control (Raspi 4, Dietpi with Nextcloud)

Hello everyone,

I am currently trying to setup my Raspberry Pi 4 as a NAS using Nextcloud and Dietpi as the OS.
I installed everything, I can log into the Nextcloud interface in my home network without problems. After connecting the drive that is connected to the Raspi to Nextcloud (External storage), I gave it maximum permissions (all users) and tried to upoad a small file. It did not work.

Error message: “Operation is blocked by access control”

These are some details about the environment:

  • Nextcloud Server Version 31.0.7
  • OS: Current Dietpi OS
  • PHP version 8.2
  • Is this the first time you’ve seen this error? Yes .
  • When did this problem seem to first start? After configuration and trying to upload for the first time.
  • Are you using CloudfIare, mod_security, or similar? No.

Steps to replicate it (hint: details matter!):

  1. Open Nextcloud.
  2. Setup a folder.
  3. Upload any file.
  4. Error. Access blocked.

Log entries

Not available (empty)

Help would be highly appreciated!

Cheers,
Kai

Your mean the file access control app from Nextcloud? So if you disable it, it works?

Or some access control of the external storage. Then a
sudo -u www-data ls -l /path/to/external/storage
shows you the storage?

Even though I don’t have the file access control app installed, I’m getting the same error message when attempting to add files to an external storage folder within NextCloud AIO. Running sudo -u www-data ls -l /path/to/external/storage within my Linux Mint terminal allows me to see my files.

I’ll make a separate support post with more details about my configuration, but just wanted to mention that I’m getting this error without the external storage app.