[Bug]: Large file upload with an S3 backend always fails with 423 LOCKED #48823
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
28-feedback
bug
feature: dav
feature: locking
feature: object storage
Bug description
I'm trying to upload a 60GB file to a managed nextcloud instance running with an S3 backend. I'm using rclone as a client. The upload constantly fails for many reasons (judging by the stack traces in the logs) but the client-facing error is always
"REDACTED/REDACTED/REDACTED.REDACTED" is locked, existing lock on file: exclusive: OCA\DAV\Connector\Sabre\Exception\FileLocked: 423 Locked
.Steps to reproduce
Expected behavior
A successful upload with a 2XX status code or an actual 4XX/5XX error explaining what failed.
Nextcloud Server version
28
Operating system
None
PHP engine version
PHP 8.2
Web server
None
Database engine version
MySQL
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?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
Additional info
More context :
move
to assemble the file part. The upload toward NC is fine, it fails when pushing the parts from the virtually assembled stream to the S3 bucket (judging by the traces I've seen)sorry can't fix that
at this pointSome investigations :
chunkv2
scenario : the chunk are uploaded to some tmp directory and then moved to the S3 bucket as they are virtually assembledwriteMultiPart
of theS3ObjectTrait
MultipartUploader
that triggers the problem or if the timing also plays a role : the whole upload process takes up to an hour.The text was updated successfully, but these errors were encountered: