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

Possibility to go above the quota #48789

Closed
3 of 8 tasks
sowjanyakch opened this issue Oct 18, 2024 · 2 comments
Closed
3 of 8 tasks

Possibility to go above the quota #48789

sowjanyakch opened this issue Oct 18, 2024 · 2 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug feature: trashbin

Comments

@sowjanyakch
Copy link

sowjanyakch commented Oct 18, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

The system is incorrectly calculating the quota usage when performing file delete and restore operations. This can lead to exceeding the allocated quota, potentially saturating the S3 storage.

Steps to reproduce

  1. Create a test user with 1GB quota.
  2. Upload a file of 500MB to S3.
  3. Copy the uploaded file and delete the original file.
  4. Create another copy of the file and delete the original copied file.
  5. Create another copy of the file.
  6. Restore the first two delete files.
  7. Quota is shown as 2GB, exceeding the allocated limit.

Expected behavior

The quota should not exceed 1 GB in any given case.

Nextcloud Server version

28

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

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

@sowjanyakch sowjanyakch added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Oct 18, 2024
@sorbaugh
Copy link
Contributor

@Pytal can you check if this is related to the trash-restoration functionality? 🙏

@Pytal
Copy link
Member

Pytal commented Oct 24, 2024

Deleted files are automatically cleaned up by a background job whenever the quota is exceeded until the quota is met.

Although the quota may be exceeded temporarily, the next run of the background job, see https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html for setting the interval between jobs, will remedy this.

@Pytal Pytal closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2024
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 28-feedback bug feature: trashbin
Projects
None yet
Development

No branches or pull requests

5 participants