Cloud Computing

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

theocode
4w ago
Environment

Environment

MinIO running in gateway mode to AWS S3 on Ubuntu 22.04 VM (systemd), object store region us-east-1, gateway configured with custom multipart_part_size=16MB; clients download via HTTP(S) through nginx reverse proxy.

Symptoms

Symptoms

Clients downloading objects larger than ~64MB get a 'checksum mismatch' or truncated file; small objects (<multipart_part_size) download fine. Some clients receive 200 OK with corrupted payload.

Observations

Observations

MinIO logs show entries 'checksum mismatch assembling multipart object' during GET; nginx access logs show 200/206 responses; aws s3 console lists object with expected size and ETag; tcpdump on MinIO host shows repeated ranged GETs and reassembled responses; no network packet errors captured.

Already attempted

Already attempted

Restarted MinIO and nginx, reverted multipart_part_size to default and restarted, re-uploaded the object via aws cli (multipart upload), cleared nginx proxy_cache, re-tried downloads from multiple clients — issue persists for some objects indexed before configuration change.

Question

Question

Why are large multipart GETs returning checksum mismatches after part_size reconfiguration and how can I recover/serve intact objects without data loss or full reupload of large archive?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
oscaronline Answer
user
Posted 4w ago • 0 confirmations

First, confirm whether the gateway or an intermediary is changing byte ranges: bypass nginx and curl the object directly from MinIO with a single-range and a set of Range headers. Compare the downloaded bytes to aws s3 cp of the same key (or to a freshly uploaded copy). If a direct GET still fails, stop MinIO and move its multipart/temp cache directory aside, then restart and retry (this is reversible). If that fixes it, corrupted temp parts were likely. If direct GETs work but proxyed GETs fail, reconfigure nginx to pass-through Range headers and disable chunked transfer encoding. If those checks don't help, capture MinIO debug logs during a failing download and open a support ticket with MinIO including the logs and tcpdump; avoid deleting original objects until you have a verified recovery path.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 4w ago• Trouble ID

Most likely 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%

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.

Suggested Fixes

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.
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.
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.

Continue troubleshooting

Matched from the title, description and tags