Skip to content

S3 and compatible storage

The tab of an S3 session is a console. It prints the endpoint (S3 at https://<host>:<port> (addressing …, region …)), the DNS answer and a TCP connect, where the credentials come from, then the first request: GET /<bucket>?list-type=2&max-keys=1 for a start bucket, otherwise the bucket list (GET /). Fields: S3 sessions.

An S3 error is printed as

S3 <method> HTTP <status> <code>: <message> (<usual cause>) [request id <id>]

The code and message are the server’s; the cause in brackets is KryoDesk’s note for that code.

Code Note printed What to check
SignatureDoesNotMatch the secret key does not match the access key ID (or a proxy changed the request) The secret key. A saved key that fails: The secret key saved in Keychain was rejected; it stays there until you save a new one., then up to 3 typed keys.
InvalidAccessKeyId the server does not know this access key ID The key ID, and that the endpoint is the provider that issued it.
RequestTimeTooSkewed this computer’s clock differs from the server’s by more than 15 minutes date -u on this Mac; System Settings → General → Date & Time → Set time and date automatically.
AccessDenied, Forbidden the key’s policy (IAM, bucket policy, ACL or Block Public Access) does not allow this request The policy of the key and the bucket. When listing buckets is denied and no start bucket is set, the connection stays open: type /bucket-name in the Files window’s path field.
PermanentRedirect, AuthorizationHeaderMalformed, IllegalLocationConstraintException the bucket is in another region than the request was signed for Region in the session (empty = us-east-1; on AWS the region of each bucket is then found from its replies). Console command region <bucket> prints the bucket’s region.
NoSuchBucket the bucket does not exist on this endpoint The bucket name and the endpoint.
NotImplemented, MethodNotAllowed the server does not support this request (S3-compatible servers implement a subset of S3) The provider’s list of supported S3 calls.
XAmzContentSHA256Mismatch, BadDigest, InvalidDigest the body arrived different from what was sent (a proxy or a network fault) A proxy or TLS inspection on the path.
ExpiredToken, TokenRefreshRequired the temporary session token has expired Refresh the profile’s aws_session_token.
BucketNotEmpty a bucket must be emptied before it can be deleted —
Message Cause and fix
DNS lookup of <host> failed: …, TCP <ip:port>: … As for FTP: name, port, firewall. With virtual-hosted addressing the bucket name becomes part of the host name (<bucket>.<host>); a provider without wildcard DNS needs Addressing = Path-style.
GET: connection failed: …, GET: timeout: … The HTTP request after the TCP check failed; the system error follows.
The certificate of <host> is not trusted by macOS (self-signed, expired, another host name or an unknown CA). (Windows: not trusted by Windows) then Trust this certificate for <host:port> (pin its SHA-256)? [y/N] The certificate does not pass the macOS trust check: openssl s_client -connect <host>:443 -servername <host> </dev/null. Compare the SHA-256 shown with the server’s own (openssl x509 -noout -fingerprint -sha256 -in <certificate>); y pins it in s3_known_hosts.json.
TLS: CERTIFICATE CHANGED for <host:port>: pinned …, now … The server sends another certificate than the pinned one: a renewed certificate or someone between you and the server. A pin is checked before the macOS trust, so this also appears for a certificate macOS trusts; y replaces the pin, removing the entry from s3_known_hosts.json returns the host to the macOS check.
certificate SHA-256 … does not match the pinned … With virtual-hosted addressing <bucket>.<host> sent another certificate than <host>; use Addressing = Path-style.
…; retrying in N ms (attempt 2 of 4). A transient failure (5xx, SlowDown, a broken connection) of a request that can be repeated. Changes from the Permissions dialog are never repeated automatically.
Clock: server … UTC, this computer … UTC, difference +N s. Signing with the server's time … RequestTimeTooSkewed over HTTPS with a difference up to 24 h: requests are signed with the server’s time from then on; set this computer’s clock.
Clock: … difference +N s. Not signing with the server's time: … The difference is over 24 h, or the connection is plain HTTP (the server’s time is not authenticated there). The request fails and is not resent; set this computer’s clock.
Plain HTTP: requests, file contents and session tokens travel unencrypted (the secret key itself is never sent). HTTPS is off in the session.
Message Cause and fix
HEAD <key> denied (…): a write-only key. … The key may write but not read: the object is replaced without its headers, metadata and tags (Content-Type from the name).
HEAD <key> (to keep the headers, metadata and tags of the object it replaces) failed; nothing was written Any other HEAD failure (400 for an SSE-C object, 5xx after the retries, a timeout): nothing was replaced.
reading the N tag(s) of <key> (to keep them on the new version) failed; nothing was written GetObjectTagging failed other than with AccessDenied. With AccessDenied the write goes on without the tags and says so.
<key>: the write carried the object's tags (x-amz-tagging, which needs s3:PutObjectTagging) and was denied; nothing was written. … The key may write but not tag. Allow s3:PutObjectTagging for it; the write is not sent again without the tags.
Message Cause and fix
cannot read ~/.aws/credentials: … AWS profile is set but the file is missing or unreadable.
profile [<name>] not found in ~/.aws/credentials The section [<name>] does not exist in the file (~/.aws/config is not read).
profile [<name>] has no aws_access_key_id —
profile [<name>] has no aws_secret_access_key (SSO, credential_process and role profiles are not supported) The profile must hold static keys (and optionally aws_session_token).
Credentials: none, requests are sent unsigned (anonymous, public buckets only). Empty access key ID: only public buckets work.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close