External Storage CMB/CIFS empty file issue

The Basics

Summary of the issue you are facing:

  1. Empty file editor pending

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

  1. Setup external storage (SMB/CIFS) using log-in credentials authentication method, mount directory with drwxr-xr-x user:group.
  2. Using Nextcloud web, create a new text file.
  3. Then you will see a pending editor.

  1. If I write some content via external storage, and reopen the file, you will see the file has been changed outside the editor, but the two versions are the identical content.

Log entries

Nextcloud

log level: warning.
no log at the time trigger bug.

Web Browser

Console

Autofocus processing was blocked because a document already has a focused element.

Network

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

not related.

Apps

related apps

  • files_external: 1.22.0

Given you are mentioning permissions at the OS level, this almost sounds like you’re using the OS to mount the SMB/CIFS volume. Which is fine. But, if so, External Storage has no awareness of this being SMB. It’s just a Local volume.

There’s clearly more to your configuration than you posted. :slight_smile:

Even more so since that image does not have native SMB support in it. :wink:

Please share more details.

I was unsure whether permission mattered, so I mentioned that.
Instead of using the OS to mount the SMB/CIFS, I use external storage.

To install smbclient, I use the following commands:

docker compose exec app bash -c 'apt update && apt install -y smbclient'

I manually set two attributes in config.php:

'filesystem_check_changes' => 1,                                                                                                                
'skeletondirectory' => '',

I then set up the test external storage with advanced configuration as the default (only enabling previews).

Regardless of whether I create an empty file from the underlying filesystem or create an empty file from Nextcloud, I encounter the same issue.