External storage files not showing - creating new file in directory will reveal hidden files

Nextcloud version (eg, 20.0.5): 27.1.9
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): apache
PHP version (eg, 7.4): 8.1

The issue you are facing:

occasionally I’ll navigate to a directory where “No files in here” appears on the screen. If I click on “New” and create a txt file the previously “hidden” files will now show in the directory. There must be some form of refresh that occurs when a file is created. A database scan did not change results. occurs in web browser and mobile apps on ios.

Is this the first time you’ve seen this error? (Y/N): No, been happoning through a few updates.

Steps to replicate it:

  1. intermittent and directories are random

The output of your Nextcloud log in Admin > Logging:

No log entries related

Do you mean a occ files:scan?

There must be some form of refresh that occurs when a file is created.

There are multiple factors that impact how/when files created outside of Nextcloud in External Storage appear within Nextcloud. They range from global config options to storage type variations and how authentication is configured:

Thank you for helping!

correct, occ files:scan --all does not reveal files.

  • filesystem_check_changes parameter description explains it does not apply to external storage.

Interesting note: changes to directories or file data on external storage by outside systems will force nextcloud, near real time, to reveal previously hidden directories and files. The hidden dir/files are specific to the current hierarchy, meaning the file creation will only reveal the hidden item(s) in the directory in which the file was created.

What type of External Storage is this?

SMB/CIFS to another VM running OpenMediaVault