The Basics
- Nextcloud Server version:
31.0.7 - Operating system and version:
Ubuntu 22.04 LTS (WSL2) - Web server and version:
Apache 2.4.52 - Reverse proxy and version:
No reverse proxy - PHP version:
8.1 - Is this the first time you’ve seen this error?:
Yes - When did this problem seem to first start?:
After re-installing NextCloud due to a 3rdparty app error - Installation method:
Manual install from tarball (archive) - Are you using Cloudflare, mod_security, or similar?:
No
Summary of the issue you are facing:
I reinstalled my NextCloud instance manually (had this “Composer autoloader not found, unable to continue. Check the folder “3rdparty”. Running “git submodule update --init” will initialize the git submodule that handles the subfolder “3rdparty”.” ) and restored backups of the data/ and config/ directories.
The files exist on disk under /mnt/storage/www/data/mazal/files/, but in the NextCloud Web UI I only see folders, not the files inside them.
File names look correct now (e.g. Document.docx, not Document.docx.d123456789) and permissions are www-data:www-data.
The datadirectory is correctly set to /mnt/storage/www/data, and file ownership is correct.
I’ve run:
sudo -u www-data php occ files:scan --all
It scanned millions of files with no errors.
Still, no files show up in the UI — just empty folders.
Steps to replicate it:
- Install NextCloud manually
- Restore backups of
config/anddata/directories (only these two were backed up) - Set correct permissions for all files/folders
- Run
occ files:scan --all - Visit the Web UI — folders show up, but all are empty
Log entries
Nextcloud log (/mnt/storage/www/data/nextcloud.log)
{"reqId":"...","level":2,"time":"2025-08-02T23:11:34+00:00","remoteAddr":"...","user":"mazal","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/mazal/","message":"File with name ... could not be located","userAgent":"Mozilla/...","version":"31.0.7.1"}
(Repeats with different paths)
Web Browser Console
Only HTTP 207 multi-status requests. No errors in Console or Network tab.
UI just shows folders, but no files inside.
Web server logs
No relevant errors. Apache is serving correctly. PHP-FPM also OK.
Configuration
config.php
'datadirectory' => '/mnt/storage/www/data',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'installed' => true,
...
occ config:list system
(Truncated for brevity — matches above)
Apps
sudo -u www-data php occ app:list
Enabled (excerpt):
- files: 2.3.1
- files_versions: 1.24.0
- files_trashbin: 1.21.0
- theming: 2.6.1
- workflowengine: 2.13.0
Disabled:
- encryption: 2.19.0
- admin_audit
- photos
Things I’ve already tried
- Verified datadirectory path is correct
- Fixed all file permissions (
www-data:www-data) - Removed
.d123456789suffixes from files - Verified presence of
.ocdatafile indata/ - Ran
occ files:scan --allseveral times - Confirmed disk usage shows correct data (~360GB)
- Checked
user:infoshows valid paths
The question
How can I get NextCloud to recognize the actual files on disk (which are in the correct place) and make them appear in the web UI?
Did restoring only config/ and data/ cause metadata mismatches? Do I need to repopulate the database in some way beyond files:scan?
Thank you! ![]()