You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: buildx failed with: ERROR: failed to solve: failed to touch file: operation error S3: CopyObject,
https response error StatusCode: 400, RequestID: T5TBZT4GG16YVFWR, HostID: /E7Ab6HtmB4mirRGrbve8dmVvEZqnyRrO19i/eWacbsFguCAsdXwYTJ1Q0Hm7413DcoKGZE29X8=,
api error InvalidRequest: The specified copy source is larger than the maximum allowable size for a copy source: 5368709120
and can be corrected by making use of multi-part uploads, or, alternatively, it's my understanding that renaming a file in S3 to have the exact same name as it currently has will effectively 'touch' the file while avoiding the overhead of copy.
The text was updated successfully, but these errors were encountered:
Seems like this is supported by S3 client, but different methods need to be called. If you understand this logic, feel free to propose a PR.
I have a fix that's not super-efficient (it basically does a multi-part copy when the file size is >5GB), but it does follow the pattern of the existing code. I'm doing some additional testing on it, but so far it has solved my problem. I'll get a PR ready.
I suspect the problem lies here:
buildkit/cache/remotecache/s3/s3.go
Lines 445 to 458 in d7f7786
and can be corrected by making use of multi-part uploads, or, alternatively, it's my understanding that renaming a file in S3 to have the exact same name as it currently has will effectively 'touch' the file while avoiding the overhead of copy.
The text was updated successfully, but these errors were encountered: