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:
intermittent and directories are random
The output of your Nextcloud log in Admin > Logging:
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:
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.
i have now updated to 29. Was hoping that would help with the issue but I was 100% wrong…
I see defferent results depending on lable
All files = No files in here - ‘+ New’ button grey
Personal files = No personal files here - ‘+ New’ button grey
Recent = Shows recent files however some are accessible others are not
Favorites = Shows a folder I labled as favorite, will not show contents of folder - No Favorites yet
Shares = Shows shared directories, no content in directories
External Storage = ’ ! There was an error with this external storage ’ on directories and others are missing.
Checked external storage in Administration Setting and each external share had a ’ red ! '. Clicked and the shares mounted. I navigated back to files and “no files in here” error presented again. logs are now showing;
no app in contex Exception
dirty table reads: SELECT size, unencrypted_size FROM PREFIX filecache WHERE parent = :dcValue1
Original still exists where some directories have no content even though there is content on the external storage. These directories will indicate a 0 kb size. Creating a file in the directory by either through Nextcloud or directly on the external storage will produce an accurate contents list of directory.
Second issues was no files was displayed at all. This was corrected by removing the check mark on Show folder description in file settings at bottom of files page.
Any help or tips on where to focus attention to find a solution to the original issue would be greatly appreciated.