You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: There is no container instance that can be provided to this Durable Object, try again later #45
Container instances are not available on production Cloudflare Workers account, causing all container-related operations to fail with error: "There is no container instance that can be
provided to this Durable Object, try again later"
Environment Details
Account: Production Cloudflare Workers account (can share per request)
Wrangler Version: 4.23.0
Container Config: instance_type: "dev" with @cloudflare/containers SDK
Deployment: Working locally and in tutorial examples, failing in production
Error Details
ERROR: There is no container instance that can be provided to this Durable Object, try again later
I think this might be an issue where "max_instances" being unset accidentally defaults it to 0, and then you "hit your limit" before any are deployed.
I'd try with a max_instances of 10 and see if it resolves. - Note that it'll take a little bit on first deploy to prep your containers, so wait until you don't see "provisioning" in the Container index of the UI.
We've got a fix coming for max_instances and nicer UI + errors here if you do hit the limit.
If that's not it, let me know and we can debug more!
Hey @mikenomitch! Thanks for the Discord response about container issues - I tried your suggestion to add max_instances but unfortunately it didn't resolve the problem.
Quick Context: Building https://claudeportable.dev, which allows users to run Claude Code from Slack. The full flow works locally but fails in production due to container startup issues.
Core Issue: Intermittent container provisioning failures with the error:
Error: There is no container instance that can be provided to this Durable Object, try again later
What I've Tested:
✅ Created minimal test container (297MB FastAPI vs 1.26GB main container) - same issue
✅ Added max_instances: 5 per your suggestion - no improvement
✅ Implemented proper manual start pattern with lifecycle hooks
Experiencing intermittent container startup failures when deploying a test container to Cloudflare Workers. The container fails with "There is no container instance that can be
provided to this Durable Object" errors, but occasionally succeeds after multiple retries.
Issue Description
Error Pattern (from latest logs):
Container fails to start ~80% of the time
Multiple consecutive failures, then occasionally succeeds
When it fails: "no container instance" → "not listening on TCP" → "blockConcurrencyWhile() timeout"
When it succeeds: Normal startup sequence and works perfectly
Key Observations:
Issue affects both large (1.26GB) and small (297MB) containers equally
Success rate is unpredictable - sometimes works after 10+ retries
When successful, containers perform flawlessly
Exit codes 137/143 suggest container termination during startup
Setup Details
Architecture
Main Container: Claude Code SDK container (1.26GB)
Test Container: Basic FastAPI container (297MB)
Both use Cloudflare Container API with Durable Objects
Manual start pattern with per-instance environment variables
Discovered errors have remote property indicating infrastructure-level failures
Latest production logs show consistent pattern:
1:32:49 PM - GET /test-container
Attempt 1: Failed after 4.5s - Error properties: ["stack", "message", "remote"]
Attempt 2: Failed after 4.5s - Error properties: ["stack", "message", "remote"]
Attempt 3: Failed after 4.5s - Error properties: ["stack", "message", "remote"]
Attempt 4: Failed after 4.5s - Error properties: ["stack", "message", "remote"]
Attempt 5: Failed after 4.5s - Error properties: ["stack", "message", "remote"]
Result: All retry attempts exhausted
Key findings:
The remote property on errors confirms this is a platform-level issue
Each attempt fails after ~4.5 seconds (likely internal timeout)
Retry logic is working correctly but cannot overcome infrastructure unavailability
Same behavior with both 297MB test container and 1.26GB production container
Current impact: 100% failure rate for container provisioning in production. The retry mechanism confirms containers are consistently unavailable rather than experiencing transient
failures.
Logs:
ClaudeCodeContainerDO.start - Ok @ 7/8/2025, 1:33:05 PM
(warn) Error checking if container is ready: There is no container instance that can be provided to this Durable Object, try again later
(warn) Error checking if container is ready: There is no container instance that can be provided to this Durable Object, try again later
✘ [ERROR] Error: There is no container instance that can be provided to this Durable Object, try again later
✘ [ERROR] Error: There is no container instance that can be provided to this Durable Object, try again later
Alarm @ 7/8/2025, 1:33:09 PM - Ok
(warn) Error checking if container is ready: There is no container instance that can be provided to this Durable Object, try again later
✘ [ERROR] Error: There is no container instance that can be provided to this Durable Object, try again later
Alarm @ 7/8/2025, 1:33:10 PM - Ok
Alarm @ 7/8/2025, 1:33:15 PM - Ok
(warn) Error checking if container is ready: There is no container instance that can be provided to this Durable Object, try again later
(warn) Error checking if container is ready: There is no container instance that can be provided to this Durable Object, try again later
✘ [ERROR] Error: There is no container instance that can be provided to this Durable Object, try again later
✘ [ERROR] Error: There is no container instance that can be provided to this Durable Object, try again later
Alarm @ 7/8/2025, 1:33:16 PM - Ok
(warn) Error checking if container is ready: There is no container instance that can be provided to this Durable Object, try again later
(warn) Error checking if container is ready: There is no container instance that can be provided to this Durable Object, try again later
✘ [ERROR] Error: There is no container instance that can be provided to this Durable Object, try again later
✘ [ERROR] Error: There is no container instance that can be provided to this Durable Object, try again later
ClaudeCodeContainerDO.start - Ok @ 7/8/2025, 1:33:14 PM
(warn) Error checking if container is ready: There is no container instance that can be provided to this Durable Object, try again later
(warn) Error checking if container is ready: There is no container instance that can be provided to this Durable Object, try again later
✘ [ERROR] Error: There is no container instance that can be provided to this Durable Object, try again later
✘ [ERROR] Error: There is no container instance that can be provided to this Durable Object, try again later
GET https://claude-code-portable.azuev.workers.dev/test-container - Ok @ 7/8/2025, 1:32:49 PM
(log) [INFO] App - Test container route called
(log) [INFO] Domain - User Claude config created | {"userId":"test-user-123","repoUrl":"https://github.com/alexander-zuev/supabase-mcp-server.git"}
(log) [INFO] App - Starting container fortest
(log) [INFO] ContainerService:Domain - Starting container | {"userId":"test-user-123","repoUrl":"https://github.com/alexander-zuev/supabase-mcp-server.git"}
(log) [INFO] ContainerService:Domain - Calling containerDO.start() with env vars | {"userId":"test-user-123","hasAnthropicKey":true,"hasGithubToken":true,"repoUrl":"https://github.com/alexander-zuev/supabase-mcp-server.git"}
(log) [INFO] ContainerService:Domain - Attempting container start | {"userId":"test-user-123","attempt":1,"maxRetries":5}
(error) [ERROR] ContainerService:Domain - containerDO.start() failed - detailed error analysis | {"userId":"test-user-123","attempt":1,"maxRetries":5,"errorType":"Error","errorMessage":"there is no container instance that can be provided to this durable object","errorString":"Error: there is no container instance that can be provided to this durable object","errorProperties":["stack","message","remote"],"isRetryable":true}
(warn) [WARN] ContainerService:Domain - Retrying container start after delay | {"userId":"test-user-123","attempt":1,"nextAttempt":2,"delayMs":539}
(log) [INFO] ContainerService:Domain - Attempting container start | {"userId":"test-user-123","attempt":2,"maxRetries":5}
(error) [ERROR] ContainerService:Domain - containerDO.start() failed - detailed error analysis | {"userId":"test-user-123","attempt":2,"maxRetries":5,"errorType":"Error","errorMessage":"there is no container instance that can be provided to this durable object","errorString":"Error: there is no container instance that can be provided to this durable object","errorProperties":["stack","message","remote"],"isRetryable":true}
(warn) [WARN] ContainerService:Domain - Retrying container start after delay | {"userId":"test-user-123","attempt":2,"nextAttempt":3,"delayMs":1014}
(log) [INFO] ContainerService:Domain - Attempting container start | {"userId":"test-user-123","attempt":3,"maxRetries":5}
(error) [ERROR] ContainerService:Domain - containerDO.start() failed - detailed error analysis | {"userId":"test-user-123","attempt":3,"maxRetries":5,"errorType":"Error","errorMessage":"there is no container instance that can be provided to this durable object","errorString":"Error: there is no container instance that can be provided to this durable object","errorProperties":["stack","message","remote"],"isRetryable":true}
(warn) [WARN] ContainerService:Domain - Retrying container start after delay | {"userId":"test-user-123","attempt":3,"nextAttempt":4,"delayMs":2112}
(log) [INFO] ContainerService:Domain - Attempting container start | {"userId":"test-user-123","attempt":4,"maxRetries":5}
(error) [ERROR] ContainerService:Domain - containerDO.start() failed - detailed error analysis | {"userId":"test-user-123","attempt":4,"maxRetries":5,"errorType":"Error","errorMessage":"there is no container instance that can be provided to this durable object","errorString":"Error: there is no container instance that can be provided to this durable object","errorProperties":["stack","message","remote"],"isRetryable":true}
(warn) [WARN] ContainerService:Domain - Retrying container start after delay | {"userId":"test-user-123","attempt":4,"nextAttempt":5,"delayMs":4054}
(log) [INFO] ContainerService:Domain - Attempting container start | {"userId":"test-user-123","attempt":5,"maxRetries":5}
(error) [ERROR] ContainerService:Domain - containerDO.start() failed - detailed error analysis | {"userId":"test-user-123","attempt":5,"maxRetries":5,"errorType":"Error","errorMessage":"there is no container instance that can be provided to this durable object","errorString":"Error: there is no container instance that can be provided to this durable object","errorProperties":["stack","message","remote"],"isRetryable":true}
(error) [ERROR] ContainerService:Domain - All retry attempts exhausted | {"userId":"test-user-123","finalAttempt":5,"error":"Error: there is no container instance that can be provided to this durable object"}
(error) [ERROR] ContainerService:Domain - Failed to start container | {"userId":"test-user-123","error":"Error: there is no container instance that can be provided to this durable object","stack":"Error: there is no container instance that can be provided to this durable object\n at async _ContainerService.startContainerWithRetry (index.js:16876:29)\n at async _ContainerService.startContainer (index.js:16938:7)\n at async Array.<anonymous> (index.js:18880:5)"}
(error) [ERROR] App - Test container failed | {"error":"Error: there is no container instance that can be provided to this durable object"}
Alarm @ 7/8/2025, 1:33:17 PM - Ok
(warn) Error checking if container is ready: There is no container instance that can be provided to this Durable Object, try again later
✘ [ERROR] Error: There is no container instance that can be provided to this Durable Object, try again later
Alarm @ 7/8/2025, 1:33:18 PM - Ok
UPD2: I've tried trimming down docker image from 1200MB to 700MB but it didn't solve the issue. Not sure if image size plays a role (but a smaller test container was eventually run). I am not sure I can cut size any further though
separate Container class and SQLite Durable Object namespace
max instances: 1
no location hint
same immutable image
Both applications reach ready, but requests return either:
Failed to start container: undefined
or:
Failed to start container: The container is not running, consider calling start()
For both applications, the read-only dashboard instances API returns success=true and instances=[]. Durable Object rows contain id and name
but no deployment_id or placement_id; Wrangler consequently shows them as
inactive with unknown location/version.
We also tested:
raising the original application to max_instances: 4;
fresh Durable Object identities;
removing the APAC location hint;
the 0.3.7 concurrent-start and stale-state fixes;
explicit start and bounded retry experiments; and
a genuinely separate application/namespace.
None received a deployment attachment. The diagnostic retry/routing changes
were removed; the separate application is retained inert for provider
inspection.
Could a maintainer inspect account-side scheduler/placement logs for the two
application IDs above? I can provide the account ID privately if needed.
application API: version 2, healthy: 1, no reported errors
actual instance a6e180d04abde534623cb2f3b9bded616df4934d12cc917912f3b2f5fb4a4197: inactive, location: null, version: null
wrangler containers ssh returns Instance ... not found
The same image/config is also attached to the two dev2 applications from the previous comment; fresh named Durable Objects still become inactive without location/version. Wrangler 4.120.0 JSON output confirms the same state, and releases 4.115–4.120 contain no scheduler/startup fix.
This now reproduces across three applications/namespaces, including the production application. Could a maintainer inspect account-side placement/deployment-attachment logs for these application IDs?
Activity
alexander-zuev commentedon Jul 7, 2025
Container image runs locally

In prod they fail with the error described above and never start
mikenomitch commentedon Jul 7, 2025
Hey @alexander-zuev,
I think this might be an issue where "max_instances" being unset accidentally defaults it to 0, and then you "hit your limit" before any are deployed.
I'd try with a max_instances of 10 and see if it resolves. - Note that it'll take a little bit on first deploy to prep your containers, so wait until you don't see "provisioning" in the Container index of the UI.
We've got a fix coming for max_instances and nicer UI + errors here if you do hit the limit.
If that's not it, let me know and we can debug more!
alexander-zuev commentedon Jul 8, 2025
Hey @mikenomitch! Thanks for the Discord response about container issues - I tried your suggestion to add max_instances but unfortunately it didn't resolve the problem.
Quick Context: Building https://claudeportable.dev, which allows users to run Claude Code from Slack. The full flow works locally but fails in production due to container startup issues.
Core Issue: Intermittent container provisioning failures with the error:
Error: There is no container instance that can be provided to this Durable Object, try again later
What I've Tested:
IDs:
basic-test-container: a0371fca-5bab-4bc6-8923-787d6282f468 (deleted)claude-code-container: a03db2e8-6c9f-4183-b8b1-06727249bf29Error summary
Experiencing intermittent container startup failures when deploying a test container to Cloudflare Workers. The container fails with "There is no container instance that can be
provided to this Durable Object" errors, but occasionally succeeds after multiple retries.
Issue Description
Error Pattern (from latest logs):
Key Observations:
Setup Details
Architecture
Configuration (wrangler.jsonc)
{ "containers": [ { "name": "claude-code-container", "class_name": "ClaudeCodeContainerDO", "image": "./Dockerfile", "instance_type": "basic", "max_instances": 1 }, { "name": "basic-test-container", "class_name": "BasicTestContainerDO", "image": "./basic_container/Dockerfile", "instance_type": "basic", "max_instances": 1 } ] }What We Tried
alexander-zuev commentedon Jul 8, 2025
UPD: Implemented retry logic which wraps
.start()- still experiencing 100% failure rateWhat I added:
Latest production logs show consistent pattern:
1:32:49 PM - GET /test-container
Attempt 1: Failed after 4.5s - Error properties: ["stack", "message", "remote"]
Attempt 2: Failed after 4.5s - Error properties: ["stack", "message", "remote"]
Attempt 3: Failed after 4.5s - Error properties: ["stack", "message", "remote"]
Attempt 4: Failed after 4.5s - Error properties: ["stack", "message", "remote"]
Attempt 5: Failed after 4.5s - Error properties: ["stack", "message", "remote"]
Result: All retry attempts exhausted
Key findings:
Current impact: 100% failure rate for container provisioning in production. The retry mechanism confirms containers are consistently unavailable rather than experiencing transient
failures.
Logs:
alexander-zuev commentedon Jul 8, 2025
UPD2: I've tried trimming down docker image from 1200MB to 700MB but it didn't solve the issue. Not sure if image size plays a role (but a smaller test container was eventually run). I am not sure I can cut size any further though
mikenomitch commentedon Jul 8, 2025
@alexander-zuev thanks for all the updates and the app ID. We'll take a look and see if there's something we can learn in our logs.
Really appreciate the details!
alexander-zuev commentedon Jul 17, 2025
Hey, @mikenomitch - just checking if there is any workaround / news on the above that I could try to resolve this issue? Really appreciate your help!
feat(container): retry cold starts on .get()/.any() handles
feat(container): retry cold starts on .get()/.any() handles
lee90-creator commentedon Aug 6, 2026
We are seeing the same production-only placement failure on two independent
Container applications in one account.
Environment:
4.114.0@cloudflare/containers0.3.7requests
max_instanceson both applicationsOriginal application:
a033d3c3-79fe-40ea-8824-b51d95ab0d5dIndependent canary application:
a037396d-4ce3-4f65-b621-baafd0b071c2Both applications reach
ready, but requests return either:or:
For both applications, the read-only dashboard instances API returns
success=trueandinstances=[]. Durable Object rows containidandnamebut no
deployment_idorplacement_id; Wrangler consequently shows them asinactive with unknown location/version.
We also tested:
max_instances: 4;None received a deployment attachment. The diagnostic retry/routing changes
were removed; the separate application is retained inert for provider
inspection.
Could a maintainer inspect account-side scheduler/placement logs for the two
application IDs above? I can provide the account ID privately if needed.
lee90-creator commentedon Aug 9, 2026
Update with a third affected production application after a fully verified cutover:
92ff1d4b329cc98e4b3fdb2297fea1b450f4784ea03db4fb-1258-490e-9854-f13ebfa9dc30kch-land-runtime@sha256:92651e191260f33bd644ef37109b13331fa6131eab8e52931a94ebd5b728e594healthy: 1, no reported errorsa6e180d04abde534623cb2f3b9bded616df4934d12cc917912f3b2f5fb4a4197:inactive,location: null,version: nullwrangler containers sshreturnsInstance ... not foundThe same image/config is also attached to the two dev2 applications from the previous comment; fresh named Durable Objects still become inactive without location/version. Wrangler 4.120.0 JSON output confirms the same state, and releases 4.115–4.120 contain no scheduler/startup fix.
This now reproduces across three applications/namespaces, including the production application. Could a maintainer inspect account-side placement/deployment-attachment logs for these application IDs?
Record two distinct capacity failures, not one
humanonlytenzeros commentedon Nov 11, 2026
Also getting this repeatedly when deploying with cf at a frustratingly high rate, maybe one in 3 ci jobs. Is fixing this on the roadmap?
We love cloudflare and are willing to tolerate hiccups if we have some timeline we can plan around. Thanks for making an awesome tool!!