Occ files:scan-app-data and S3 primary storage


Nextcloud version (eg, 20.0.5): 20.0.6
Operating system and version (eg, Ubuntu 20.04): Arch
Apache or nginx version (eg, Apache 2.4.25): nginx 1.18.0-2
PHP version (eg, 7.4): 7.4.14-1
S3 storage provider: Wasabi

The issue you are facing:

Running occ files:scan-app-data on S3 storage finds 0 files.

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

php occ files:scan-app-data
Scanning AppData for files

| Folders | Files | Elapsed time |
| 0       | 0     | 00:00:00     |

I first noticed this when trying to work around the Deleting e2e folder issue which I discovered later is fixed with https://github.com/nextcloud/desktop/pull/2799.

Nothing relevant shows up in the logs.

I know there are over 30000 files in appdata. I got e2e working again by manually deleting records from oc_filecache, which doesn’t give warm fuzzies…

Is occ files:scan* expected to handle S3 storage?

1 Like

I am also wondering how to uptake the files in a S3 to a new installation after occ adding the users. Before I use nextcloud I am testing my ability to do disaster recovery with it. So far, if I restore the webroot and database, I get 500 errors.