Getting "Failed to create session: 500" when trying to start containers

Hi! I'm trying to use Cloudflare Containers with the @cloudflare/sandbox SDK but getting a "Failed to create session: 500" error when my Worker tries to start a container. What's working: - wrangler deploy succeeds ✓ - Container image builds and pushes successfully ✓ - Container application registered (Application ID: a033a220-ac81-4d51-8105-0427956c4828) ✓ - Worker code runs fine ✓ What's failing: - When I call sandbox.writeFile() or any sandbox operation, it fails with: Job failed: Failed to create session: 500 - The sandbox handle is created successfully, but the actual container won't start
1 Reply
christianklotz
christianklotz2mo ago
I ran into a similar issue, see https://discord.com/channels/595317990191398933/1387061528016195684/1427777612524163163 I get the 'failed to create session' before, on exec but it might just be whatever API call is made first. @Sunil Pai does this sound in any way plausible to you? Happy to help with more info/debugging but don't know where to start at this point Investigated a bit more, seems like instance_type must be set to at least basic.

Did you find this page helpful?