-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Large data files left in S3 object storage after bad uploads #29841
Comments
Afaics the My object storage ballooned to almost four times the size of my users' accumulated used storage due to this issue. To at the very least get rid of some stuff from my object storage, i ran |
I had the same issue I published it here: https://github.com/otherguy/nextcloud-cleanup It's extremely simple and for now only works with Scaleway's S3 Object storage and MySQL/MariaDB but I'm happy to accept PRs to make it more versatile. The changes required for Amazon's S3 storage would be minimal. |
This comment was marked as resolved.
This comment was marked as resolved.
@szaimen Thanks for communicating what you need to move forward with this issue. I appreciate the effort to clean-up the backlog, as I had forgotten about this issue after I fixed the problem that was causing connections to be dropped. I am not sure if I will have time to reproduce this in the foreseeable future, so for anyone interested in confirming whether this issue is still affecting Nexcloud here's what I think is needed to reproduce the issue:
I wrote this from memory, so if anyone spots a mistake, let me know and I'll update the steps |
@szaimen is there a changelog that mentions this? |
Ah sorry, closed this by accident. In which nc version did you reproduce the issue? |
Definitely up to 24.x |
|
This comment was marked as resolved.
This comment was marked as resolved.
@szaimen you asked previously to verify on 24 or 25. I have verified it still happens on 24. Could you link to a PR or Changelog entry since then that should fix it? |
Same issue on 29.0.6 |
How to use GitHub
Steps to reproduce
Expected behaviour
Server should notice that upload is aborted and should delete this badly uploaded files from object storage.
Actual behaviour
Server leaves objects on object storage (OVH S3) in 500MB files. Cannot clear them using
occ files:scan --all
andocc files:cleanup
.Server configuration
Operating system: Ubuntu 20.04 LTS
Web server: Apache/2.4.41
Database: MySQL 10.3.31
PHP version: 7.4.3
Nextcloud version: 22.2.0.2
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
Where did you install Nextcloud from: zip file
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: S3 Object Storage as default nextcloud data storage
Are you using encryption: no
Are you using an external user-backend, if yes which one: Not sure, probably no
Client configuration
Browser: Chromium-based 95.0.1020.53
Operating system: Windows 10, Windows 11, GNU/Linux
Desktop client version: 3.3.6 (Windows)
Logs
Web server error log
Server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
The text was updated successfully, but these errors were encountered: