Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: occ files:scan --all scans the same samba share again and again for every user #46205

Open
5 of 8 tasks
PaulStogov opened this issue Jun 30, 2024 · 3 comments
Open
5 of 8 tasks
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 29-feedback bug

Comments

@PaulStogov
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

TIL that running occ files:scan --all command scans over and over again the same SMB share attached to our NC installation and being available for a number of users for every single user account.

image

I got the same pair of errors for every user connected to that one network share. Is seems like a huge overhead for me to scan the same network drive over and over again.

Steps to reproduce

  1. Add an SMB/CIFS storage in "External storage" setting.
  2. Make it "Available for" a number of users.
  3. Run occ files:scan --all command

Expected behavior

One network connected share over anyhow protocol must be scanned one time only.

Installation method

Other Community project

Nextcloud Server version

29

Operating system

Other

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

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

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@PaulStogov PaulStogov added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jun 30, 2024
@PaulStogov
Copy link
Author

Some illustrations.
Scan time with the SMB share unavailable:
image
Scan time with the SMB share connected:
image
It took 7+ hrs more.
And the contents of the SMB share is like this:
image
So it is easily calculable five times overhead.

@SystemKeeper
Copy link
Contributor

@PaulStogov
Copy link
Author

PaulStogov commented Jul 3, 2024

Depends on how the share is made available to the users. See https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/external_storage/auth_mechanisms.html#considerations-for-shared-storage

Thank you very much for the reply, I read the doc you provided. But it seems for me that my case does not include "user specific authorization":

image

Or it should be "all people" checked?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 29-feedback bug
Projects
None yet
Development

No branches or pull requests

3 participants