External storage (local) does not refresh trashbin

Hello Team,

we just deployed our new Nextcloud setup with local external storage. We observe the following problem: when a user deletes a file on the external storage, it goes to the user’s recycle bin. In the GUI the just deleted file is not shown. Only after an occ files:scan the deleted file becomes visible in the GUI.

The log file says:
Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#378

A look into the code did not bring any insight for us.

Does anyone have an idea what is causing the problem?

  • Nextcloud 27.0.1. (Docker)
  • File and folder permissions are correct

It turned out that this behaviour is only by using external storage which is a smb/cifs mount on the server.