Skip to content

[Bug]: ScanFiles job triggers a scan of the root storage for each and every user #61510

Description

@akhil1508

⚠️ This issue respects the following points: ⚠️

Bug description

  • The ScanFiles background job tries to scan the entire root storage along with the home storage of each user it detects as unscanned
  • This includes the appdata folder and it scans these for each and every user once
  • This can lead to extremely long running jobs (>24h sometimes)

Steps to reproduce

  1. Have a few unscanned entries in filecache table for your user and also for the appdata folder
  2. Trigger the ScanFiles background job

Expected behavior

  • Each user with unscanned files should be scanned and not the root folder which contains appdata directory

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

No response

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap32-feedbackbug

    Type

    No fields configured for Bug.

    Projects

    Status
    Triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions