FULL AI ANALYSIS

MinIO S3 gateway returns checksum mismatch on GETs for large multipart objects after changing part_size

Generated Oct 25, 2026, 9:44:56 AM

Analysis summary

MinIO gateway must map S3 multipart parts to its own multipart assembly logic; changing multipart_part_size can change how part boundaries and internal checksums are computed. Likely causes include: gateway attempting to reassemble older objects produced with a different part-size scheme, a local cache or temp file corruption during reassembly, or HTTP reverse proxy modifying chunk boundaries. Another possibility is the object's ETag being the multipart MD5 combination (not a simple MD5) and the gateway validating against an expected composite checksum that no longer matches after a config change. Network-level chunking or intermediate proxy buffering can also interfere with byte ranges during reassembly.

Possible causes

MinIO gateway reassembly algorithm now uses a different part-size expectation and fails to compute composite ETag for objects uploaded under the previous part_size

78%

Local temporary cache or on-disk multipart parts on MinIO host corrupted (partial writes) causing checksum failure during streaming assembly

60%

Reverse proxy (nginx) or an HTTP accelerator altering Range/Content-Length boundaries or applying chunked encoding that breaks reassembly

40%

Underlying S3 object changed (partial overwrite) or server-side copy produced mismatched part metadata on S3 itself

25%

Suggested fixes

1

Diagnostic step 1

Capture a failing GET with tcpdump (server side) and compare byte ranges to a successful GET of same object uploaded freshly via aws cli; check for missing/duplicated ranges.

2

Diagnostic step 2

Use aws s3api head-object to inspect ETag and Content-Length on S3; locally compute expected multipart ETag pattern from part sizes to validate whether ETag semantics match.

3

Diagnostic step 3

Put MinIO into read-only or maintenance mode on a test copy and run MinIO with debug logging for gateway reassembly to capture the exact checksum failure point; rotate logs off to a separate disk.

4

Diagnostic step 4

Bypass nginx for a direct GET to MinIO to rule out proxy-induced chunking; if direct GETs succeed for freshly uploaded objects, reintroduce proxy and compare behavior.

5

Diagnostic step 5

If cached temporary parts are suspected, stop MinIO, move its multipart temp/cache directory to a backup location, restart MinIO and re-test (this is reversible by restoring the moved directory). If the issue persists for specific objects, consider reuploading those objects with a consistent part_size as a last resort or schedule re-copy from S3 to a new key server-side (aws s3 cp) to avoid client-side reupload.