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 |
|---|---|
| Machine-readable error code, this is what your application reacts to |
| Human-readable description, the wording may change |
| Affected bucket or object |
| 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 |
|---|---|---|---|
| 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 |
| 403 | Access key mistyped or deleted in the Console | Check the key in the Console, create a new key if needed |
| 403 | Wrong secret key, region is not | Re-enter the secret key, region |
| 400 | Region in the signature is not | Set the region in the tool or SDK to |
| 403 | Client clock is off by more than 15 minutes | Synchronise the time via NTP |
Buckets
Code | HTTP | Typical cause | Fix |
|---|---|---|---|
| 404 | Bucket name misspelled or wrong endpoint | Check the name, use the endpoint shown in the Console |
| 409 | Bucket name is already taken in your account | Choose another name |
| 409 | Bucket already exists in your account | Use the existing bucket |
| 409 | Bucket still contains object versions or delete markers | Delete all versions and delete markers |
| 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 |
|---|---|---|---|
| 404 | Key does not exist or the current version is a delete marker | Check the key, look for older versions with ListObjectVersions |
| 404 | Version ID does not exist for this key | Take the version ID from ListObjectVersions |
| 403 | Operation does not fit the current state of the object | Check the state with HeadObject and ListObjectVersions |
| 416 | Byte range in the | Get the object size with HeadObject |
| 412 | Condition such as | Read the ETag again, check the condition logic |
| 400 | Single PUT over 5 GB or object over 5 TB | Use multipart upload |
Multipart upload
Code | HTTP | Typical cause | Fix |
|---|---|---|---|
| 404 | Upload ID unknown, upload completed or aborted | Start the upload again |
| 400 | Part missing or ETag does not match the uploaded part | Use the ETags from the UploadPart responses |
| 400 | Parts in CompleteMultipartUpload are not in ascending order | Sort parts by |
| 400 | A part other than the last is below the minimum size | Increase the part size |
Requests and configuration
Code | HTTP | Typical cause | Fix |
|---|---|---|---|
| 400 | Parameter or header has an invalid value | Check the value against the API reference |
| 400 | Request is not allowed in this form, for example a required header such as | Check required headers and bucket settings |
| 400 | Value in the | Send the Base64-encoded MD5 of the body |
| 400 |
| Repeat the upload, check the network path |
| 400 | XML in the body is broken or does not match the schema | Compare the XML with the examples in the reference |
| 411 |
| Send the length or use an SDK |
| 405 | HTTP method is not allowed for this resource | Check method and path |
| 501 | Feature is not offered by chili | Check the compatibility matrix |
| 404 | Bucket has no lifecycle rules | Expected result when no rules are set |
| 404 | Bucket has no bucket policy | Expected result when no policy is set |
| 404 | Bucket has no CORS rules | Expected result when no rules are set |
| 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 |
|---|---|---|---|
| 503 | Too many requests in a short time | Lower the request rate, retry with backoff |
| 503 | Service temporarily unavailable | Retry with backoff |
| 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
adaptivemode also lowers the request rate whenSlowDownoccurs repeatedly. - With many parallel uploads, reduce the number of concurrent connections, for example
--transfersin rclone.
# ~/.aws/config
[default]
retry_mode = adaptive
max_attempts = 10
request_checksum_calculation = when_required
response_checksum_validation = when_requiredNext
- Authentication: signature and region
- Endpoints and regions: endpoint, region and path style
- Limits: limits and features not offered
- Object Lock (API):
AccessDeniedon locked versions