Rescanning files in Nextcloud 31

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.0
  • Operating system and version (e.g., Ubuntu 24.04):
    • TrueNas Scale Dragonfish 24.04
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Cloudflared
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Right now
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • TrueNas Scale App
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Yes

Summary of the issue you are facing:

I uploaded around ~6Tb of data to my nextcloud /data//files directory and it wont show up in nextcloud. When doing research on the issue people are saying to run ‘occ files:scan’ but nextcloud 31 doesn’t have that anymore. I’m unsure of what to do to get all my files to show up.

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

  1. Install Nextcloud 31
  2. Run occ files:scan --all

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

files:scan isnt a subcommand

Available commands for the "files" namespace:
...
  files:scan                          rescan filesystem

This is still valid. Maybe you’re executing occ wrong? What happens if you just execute occ?

How did you upload it?

I used Rsync to sync files from a different place on my operating system. I made sure all of the permissions were right and verified it was successful using a dry-run