Troubleshooting
When diagnosing failed S3 or SQL requests, record the timestamp, gateway host, binary commit, HTTP status and S3 error code (or SQLSTATE), request ID, bucket, key, and versionId. Strip Authorization headers, presigned URL query strings, passwords, DSNs, and KMS/SSE-C keys before sharing logs.
First checks
Inspect the gateway service status and recent journal logs on Linux:
Then check the database-aware health endpoints (/minio/health/cluster/read and /minio/health/cluster) and verify PostgreSQL recovery and read-only state directly using a protected libpq service entry (~/.pg_service.conf with sslmode=verify-full):
Symptoms, root causes, and actions
| Symptom | Check first | Resolution |
|---|---|---|
| TLS certificate or hostname verification failure | SILO_PG_DSN hostname, certificate SANs, /etc/silo/postgres-ca.crt, and file ownership (root:silo) | Fix certificate SANs or file permissions; keep sslmode=verify-full enabled |
| Gateway refuses to start due to storage setting mismatch | Persisted SILO_PG_SEGMENT_SIZE and SILO_PG_MAX_OBJECT_SIZE in silo.meta | Match the gateway’s environment variables to the initialized store settings; never edit silo.meta manually |
| Read-only standby gateway refuses to start | schema_version on the standby and replication replay lag | Migrate the primary from a writable gateway first and wait for the standby to replay the migration WAL |
HTTP 503 SlowDown (or HTTP 429 TooManyRequests on builds before 1d387725c) under concurrency | Concurrent request limit (min(SILO_PG_MAX_CONNS, memlimit / (2 * segment_size))) and SILO_PG_QUEUE_TIMEOUT | Increase SILO_PG_MAX_CONNS (e.g., to 72 for 64 concurrent clients), ensure gateway RAM and PostgreSQL max_connections are sufficient, and use 1d387725c or later so bursts queue up to SILO_PG_QUEUE_TIMEOUT (5s) |
/minio/health/live is 200, but /minio/health/cluster returns 503 | PostgreSQL connectivity, pg_is_in_recovery(), connection pool exhaustion, or SILO_PG_READ_ONLY=on | Inspect PostgreSQL logs, pg_stat_activity, and minio_pg_* metrics |
S3 AccessDenied | IAM policy Allow/Deny, service-account/STS session policy, SILO_PG_READ_ONLY=on, and iam_and_pg role bindings | Verify IAM permissions on the target key/version and check silo.native_auth_principals and silo_bucket grants if iam_and_pg is enabled |
SQL SQLSTATE 42501 | session_user (whether SET ROLE was used), USAGE on silo_api/silo_bucket, function EXECUTE, and bucket ACL table grants | Connect directly as the application SQL login (app_sql) and grant the required function and bucket ACL privileges |
SQL SQLSTATE 0A000 | Transaction isolation level (Repeatable Read / Serializable), SSE-encrypted object, or unsynchronized bucket policy | Run SQL writes under Read Committed; use the S3 API to read/write encrypted objects |
CompleteMultipartUpload fails | Total assembled size vs. SILO_PG_MAX_OBJECT_SIZE, part sizes (>= 5 MiB except last part), part order, and ETags | Ensure the combined object does not exceed SILO_PG_MAX_OBJECT_SIZE (default 256 MiB, max 1 GiB) |
| IAM requests fail across gateways after failover | Old-primary fencing, revision_token reload, standby replication heartbeats, and host clock skew (<= 500 ms) | Ensure a writable gateway is connected to the promoted primary, writing heartbeats, and NTP keeps primary/standby clocks within 500 ms |
Database disk size stays high after DELETE | Retained historical versions, incomplete multipart uploads, minio_pg_annotation_garbage_bytes, long SQL transactions, and VACUUM | Delete old versions or abort incomplete uploads, verify minio_pg_lifecycle_leader == 1, and check pg_stat_activity for long-running snapshots blocking VACUUM |
HTTP 503 SlowDown vs. HTTP 429 TooManyRequests
Each gateway limits active S3 requests to min(SILO_PG_MAX_CONNS, memlimit / (2 * SILO_PG_SEGMENT_SIZE), api requests_max). With the default SILO_PG_MAX_CONNS=32, bursts above 32 concurrent requests hit admission control:
- Starting with
1d387725confeat/pg-backend(2026-11-08), excess requests wait in an admission queue for up toSILO_PG_QUEUE_TIMEOUT(5sby default) without holding a database connection. If the wait expires, the gateway returns HTTP 503SlowDown, whichboto3and AWS SDK for Go v2 automatically retry with backoff. - In earlier builds, including
299378band the frozen October 8, 2026 local checkpoint (3c7fdc03), admission queueing does not exist: excess requests immediately receive HTTP 429TooManyRequests, which standard S3 SDKs do not retry by default.
See Configuration: Concurrent request limit for capacity sizing steps.
Uncertain writes after network timeouts
A network drop or request timeout can occur after PostgreSQL commits the transaction but before the client receives the HTTP or SQL response. Blindly retrying an unconditional PutObject in a versioned bucket creates a duplicate version.
- Before retrying a timed-out write, check whether the expected key,
versionId, ETag, or business operation ID already exists. - When writing application rows and objects together in one SQL transaction via
silo_api, record an application idempotency key in your business table inside the same transaction so you can query its commit status deterministically.
