I'm assuming my container is not
I'm assuming my container is not starting in dev because
onStart
is not called (and docker ps
returns nothing) but it is impossible to debug. I'm not getting any logs or error messages from inside the container, only the fetch error from the worker to the container?
When deploying it is the same but I do get some messages (e.g. Error checking 4848: The container is not listening in the TCP address 10.0.0.1:4848
) but still nothing useful...
How can I access the logs from what is happening inside the container?24 Replies
Hey - if you set observability to true in your wrangler config, you should be able to get logs in the UI
is that not working?
Cloudflare Docs
Configuration
Use a configuration file to customize the development and deployment setup for your Worker project and other Developer Platform products.
The container had log level set to info, so I wasn't getting the logs I expected. No problem here!
👍
how did you resolve the issue @Gerbuuun?
I am experiencing the exact same thing
Error checking 8000: The container is not listening in the TCP address 10.0.0.1:8000
I had set the wrong port. At least I think that that was the problem
The error just suddenly stopped appearing
In my case I am calling the container from a queue and first time the task is called I get this error repeteadly, once the task fails and it's retried, it just works
Actually... maybe using a larger size container? I went from
dev
to basic
any suggestions @Mike Nomitch
@cdrpico prod or local dev?
Oh sorry prob prod given the queue
hrm...
Nothing jumps out, but I'll put this on team's queue to look at
It's on prod as you mentioned. It looks a little unstable atm. These are logs I am getting recurrently, in case they are useful.
It keeps failing until at some point, it seems the container is deployed (I am assuming this from container logs) and the request gets successfully processed

^ Where are you seeeing these logs? I'm hitting an issue where my container won't start and I just can't figure out what's going on. Wrangler tail, logs in the web ui - they're not showing me anything useful
I get the same thing as above as well. Works on local dev, just doesn't work live and the errors aren't really helpful in anyway.
These errors are coming from the worker logs in my case, you should try checking the container logs as well @kooliebwoykg @Phatso
I did. Don't think I can do anything at this point. It's working on local. Will just give it sometime and continue monitoring the chat since it seems like others have the same issue as me.
Yeah, I am taking the same path atm
I am going to add some more context here for the CF team to have a look whenever you have a chance. This is from my personal experience, I can provide more details in case it's needed
From logs, I can see my worker is receiving the request to spin up the container, and the container seems to be alive almost instantly after receiving this request. However, the problem, from timestamps, is that the application inside the container takes almost 2 minutes to become ready to start receiving requests, in my case, it is python-fastapi application
So, of course, in the meantime the container is not ready to receive requests, I get these errors
Error checking 8000: The container is not listening in the TCP address 10.0.0.1:8000
I am attaching the logs from the worker and the container instance itself.
@Mike Nomitch @frolic I took the liberty of tagging you since I noticed you have been replying to comments from people in this channel. Thanks in advance for any help you can provide

Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
I tried both approaches, none of them have worked so far though
I was seeing identical issues with my setup. in my case the issue seems to have been in my entrypoing (even when i was very sure it wasn't)
my container runs python fast api, and I have the exact same config they have used in this demo
https://www.youtube.com/watch?v=ILXqT-ddIFw
Nothing seems to work for me 🙄
Cloudflare Developers
YouTube
Use Cloudflare Containers to create a Sandbox to execute any code
Craig makes use of the new Containers feature of the Cloudflare Developer stack to create a uniquely named virtual sandbox.
Repo: https://github.com/craigsdennis/sandboxing-day-containers
Create an account on Cloudflare today for free: https://dash.cloudflare.com/sign-up
Tools mentioned:
https://developers.cloudflare.com
https://developers.c...
yeah, i haven’t yet seen a fastapi cloudflare container that actually deploys and responds successfully.
was really excited about this but i guess beta really does mean beta. will be using other providers for the time being.
I'm having the same issue, does anyone have it resolve?

