Skip to content

Troubleshooting

Common failures, HTTP 429 and 503, and how to resolve them.

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:

sudo systemctl status silo --no-pager
sudo journalctl -u silo --since '15 minutes ago' --no-pager

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):

PGSERVICE=silo-ops psql -X -v ON_ERROR_STOP=1 \
  -c 'SELECT current_database(), session_user, pg_is_in_recovery();' \
  -c 'SHOW transaction_read_only;'

Symptoms, root causes, and actions

SymptomCheck firstResolution
TLS certificate or hostname verification failureSILO_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 mismatchPersisted SILO_PG_SEGMENT_SIZE and SILO_PG_MAX_OBJECT_SIZE in silo.metaMatch the gateway’s environment variables to the initialized store settings; never edit silo.meta manually
Read-only standby gateway refuses to startschema_version on the standby and replication replay lagMigrate 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 concurrencyConcurrent request limit (min(SILO_PG_MAX_CONNS, memlimit / (2 * segment_size))) and SILO_PG_QUEUE_TIMEOUTIncrease 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 503PostgreSQL connectivity, pg_is_in_recovery(), connection pool exhaustion, or SILO_PG_READ_ONLY=onInspect PostgreSQL logs, pg_stat_activity, and minio_pg_* metrics
S3 AccessDeniedIAM policy Allow/Deny, service-account/STS session policy, SILO_PG_READ_ONLY=on, and iam_and_pg role bindingsVerify 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 42501session_user (whether SET ROLE was used), USAGE on silo_api/silo_bucket, function EXECUTE, and bucket ACL table grantsConnect directly as the application SQL login (app_sql) and grant the required function and bucket ACL privileges
SQL SQLSTATE 0A000Transaction isolation level (Repeatable Read / Serializable), SSE-encrypted object, or unsynchronized bucket policyRun SQL writes under Read Committed; use the S3 API to read/write encrypted objects
CompleteMultipartUpload failsTotal assembled size vs. SILO_PG_MAX_OBJECT_SIZE, part sizes (>= 5 MiB except last part), part order, and ETagsEnsure the combined object does not exceed SILO_PG_MAX_OBJECT_SIZE (default 256 MiB, max 1 GiB)
IAM requests fail across gateways after failoverOld-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 DELETERetained historical versions, incomplete multipart uploads, minio_pg_annotation_garbage_bytes, long SQL transactions, and VACUUMDelete 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 1d387725c on feat/pg-backend (2026-11-08), excess requests wait in an admission queue for up to SILO_PG_QUEUE_TIMEOUT (5s by default) without holding a database connection. If the wait expires, the gateway returns HTTP 503 SlowDown, which boto3 and AWS SDK for Go v2 automatically retry with backoff.
  • In earlier builds, including 299378b and the frozen October 8, 2026 local checkpoint (3c7fdc03), admission queueing does not exist: excess requests immediately receive HTTP 429 TooManyRequests, 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.
Scan to open this page
https://mimus.pgsty.com/docs/s3/operations/troubleshooting/