How can I troubleshoot intermittent 500 Internal Error responses from Amazon S3?
Last updated: 2019-12-20
When I try to upload objects to my Amazon Simple Storage Service (Amazon S3) bucket, I intermittently get 500 Internal Error responses. How can I troubleshoot this?
If you get intermittent 500 Internal Error responses from Amazon S3, you can retry the requests. These errors are rare and can occur during normal use of the service. It's a best practice to implement retry logic for requests that receive server or throttling errors (5xx errors). For better flow control, use an exponential backoff algorithm. Each AWS SDK uses automatic retry logic and an exponential backoff algorithm.
To monitor the number of 500 Internal Error responses that you're getting, you can use one of these options:
- You can enable Amazon CloudWatch metrics. Amazon S3 CloudWatch request metrics include a metric for 5xx server errors.
- You can enable Amazon S3 server access logging. Server access logging captures all requests, so you can filter for the requests that got a 500 Internal Error response. You can also parse logs using Amazon Athena.