Error AtlasError Documentation and Resolution

Cloud Run returns HTTP 500 because no instance was available

HTTP 500 The request was aborted because there was no available instance.

Cloud Run returned an internal server error because the platform could not keep up with the incoming rate of traffic or request processing demand.

HTTP 500 The request was aborted because there was no available instanceruntime
HTTP 500 The request was aborted because there was no available instance.
  • The service experienced a sudden traffic increase and could not scale quickly enough.
  • Request processing time is too long, which reduces the pool of available instances.
  • Cold starts or max-instances constraints contributed to an instance shortage.
  1. Inspect Cloud Monitoring and Cloud Logging around the failure window for traffic spikes, cold starts, and capacity limits.
  2. Implement retries with exponential backoff for clients that can safely retry transient failures.
  3. Improve startup and request handling performance, and review whether the current max-instances setting is too restrictive.
Google Cloud: Troubleshoot Cloud Run issues
Cloud Run HTTP 500 no available instance: causes and fixes | Error Atlas