Docs

Error codes

chili returns errors in the S3 API format. Existing error handling in SDKs and tools therefore works unchanged. This page lists the most common error codes with HTTP status, typical cause and fix.

Error format

On an error, chili responds with an HTTP status code of 400 or higher and an XML document in the body:

<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>NoSuchKey</Code>
  <Message>The specified key does not exist.</Message>
  <Resource>/my-bucket/report.pdf</Resource>
  <RequestId>0a1b2c3d4e5f6789</RequestId>
</Error>

Field

Meaning

Code

Machine-readable error code, this is what your application reacts to

Message

Human-readable description, the wording may change

Resource

Affected bucket or object

RequestId

Unique identifier of the request

Responses to HEAD requests have no body. There you only see the status code, for example 404 for HeadObject on a missing key.

Request ID

Every response contains the headers x-amz-request-id and x-amz-id-2. They identify a request in the chili logs. Note both values together with the time, bucket and operation when you contact chili support.

With the AWS CLI you see the status code, headers and request ID in the debug log:

aws s3api head-object --bucket my-bucket --key report.pdf \
  --endpoint-url https://s3-ch-east.chilistorage.com --debug 2>&1 | grep -i -E 'x-amz-request-id|x-amz-id-2'

Error codes

Authentication and access

Code

HTTP

Typical cause

Fix

AccessDenied

403

The key's access level does not allow the operation, a bucket policy denies it, or the object version is locked by Object Lock

Check the access level in the chili Console, check the bucket policy, wait for the lock to expire

InvalidAccessKeyId

403

Access key mistyped or deleted in the Console

Check the key in the Console, create a new key if needed

SignatureDoesNotMatch

403

Wrong secret key, region is not ch-east, a proxy modifies headers, or virtual-hosted style is active

Re-enter the secret key, region ch-east, enable path style

AuthorizationHeaderMalformed

400

Region in the signature is not ch-east, for example us-east-1

Set the region in the tool or SDK to ch-east

RequestTimeTooSkewed

403

Client clock is off by more than 15 minutes

Synchronise the time via NTP

Buckets

Code

HTTP

Typical cause

Fix

NoSuchBucket

404

Bucket name misspelled or wrong endpoint

Check the name, use the endpoint shown in the Console

BucketAlreadyExists

409

Bucket name is already taken in your account

Choose another name

BucketAlreadyOwnedByYou

409

Bucket already exists in your account

Use the existing bucket

BucketNotEmpty

409

Bucket still contains object versions or delete markers

Delete all versions and delete markers

InvalidBucketName

400

Name breaks the naming rules

Follow the rules under Limits

You create buckets in the chili Console. The wizard checks the name right away.

Objects and versions

Code

HTTP

Typical cause

Fix

NoSuchKey

404

Key does not exist or the current version is a delete marker

Check the key, look for older versions with ListObjectVersions

NoSuchVersion

404

Version ID does not exist for this key

Take the version ID from ListObjectVersions

InvalidObjectState

403

Operation does not fit the current state of the object

Check the state with HeadObject and ListObjectVersions

InvalidRange

416

Byte range in the Range header lies outside the object

Get the object size with HeadObject

PreconditionFailed

412

Condition such as If-Match or If-None-Match not met

Read the ETag again, check the condition logic

EntityTooLarge

400

Single PUT over 5 GB or object over 5 TB

Use multipart upload

Multipart upload

Code

HTTP

Typical cause

Fix

NoSuchUpload

404

Upload ID unknown, upload completed or aborted

Start the upload again

InvalidPart

400

Part missing or ETag does not match the uploaded part

Use the ETags from the UploadPart responses

InvalidPartOrder

400

Parts in CompleteMultipartUpload are not in ascending order

Sort parts by PartNumber

EntityTooSmall

400

A part other than the last is below the minimum size

Increase the part size

Requests and configuration

Code

HTTP

Typical cause

Fix

InvalidArgument

400

Parameter or header has an invalid value

Check the value against the API reference

InvalidRequest

400

Request is not allowed in this form, for example a required header such as Content-MD5 is missing or Object Lock is not enabled for the bucket

Check required headers and bucket settings

InvalidDigest

400

Value in the Content-MD5 header is invalid

Send the Base64-encoded MD5 of the body

BadDigest

400

Content-MD5 does not match the transferred data

Repeat the upload, check the network path

MalformedXML

400

XML in the body is broken or does not match the schema

Compare the XML with the examples in the reference

MissingContentLength

411

Content-Length header missing

Send the length or use an SDK

MethodNotAllowed

405

HTTP method is not allowed for this resource

Check method and path

NotImplemented

501

Feature is not offered by chili

Check the compatibility matrix

NoSuchLifecycleConfiguration

404

Bucket has no lifecycle rules

Expected result when no rules are set

NoSuchBucketPolicy

404

Bucket has no bucket policy

Expected result when no policy is set

NoSuchCORSConfiguration

404

Bucket has no CORS rules

Expected result when no rules are set

ObjectLockConfigurationNotFoundError

404

Bucket has no Object Lock configuration

Object Lock is enabled when creating the bucket in the Console

Server and load

Code

HTTP

Typical cause

Fix

SlowDown

503

Too many requests in a short time

Lower the request rate, retry with backoff

ServiceUnavailable

503

Service temporarily unavailable

Retry with backoff

InternalError

500

Unexpected server-side error

Retry with backoff, contact support with the request ID if it happens repeatedly

Retries

Errors with status 500 and 503 as well as SlowDown are temporary. Retry the request with exponential backoff: the wait time doubles with each attempt, plus a random component (jitter) so that not all clients retry at the same moment.

  • Do not retry 4xx errors unchanged. They point to a problem in the request.
  • The AWS SDKs and the AWS CLI already retry 500 and 503 errors themselves. The adaptive mode also lowers the request rate when SlowDown occurs repeatedly.
  • With many parallel uploads, reduce the number of concurrent connections, for example --transfers in rclone.
# ~/.aws/config
[default]
retry_mode = adaptive
max_attempts = 10
request_checksum_calculation = when_required
response_checksum_validation = when_required

Next