R
RunPod•3w ago
Nureongi

The pod is not exposed externally.

I followed RunPod's documentation to run a web server using FastAPI + Uvicorn on port 8000. I also specified port 8000 in the Expose HTTP Ports field in the Pod config. RUN uvicorn main:app --reload --host 0.0.0.0 --port 8000 The logs show that the command executed successfully:
2025-01-09T02:39:28.064562664Z INFO: Will watch for changes in these directories: ['/app']
2025-01-09T02:39:28.074297308Z INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
2025-01-09T02:39:28.075157822Z INFO: Started reloader process [825] using StatReload
2025-01-09T02:39:28.064562664Z INFO: Will watch for changes in these directories: ['/app']
2025-01-09T02:39:28.074297308Z INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
2025-01-09T02:39:28.075157822Z INFO: Started reloader process [825] using StatReload
However, when I click the Connect button, it shows "HTTP Service [PORT 8000] Not Ready", and when I try to access https://{POD_ID}-8000.proxy.runpod.net/ directly, it displays a 502 bad gateway error page. Can you help me identify what might be the problem? I'm using a Community Pod rather than a Secure Pod - could this be the issue?
16 Replies
Nureongi
NureongiOP•3w ago
Never mind. It works normally after mapping port 8000 to TCP instead of HTTP in the Pod settings.
nerdylive
nerdylive•3w ago
It'd weird tho should work Normally.., maybe you should report this to support With the pod id
czapajev
czapajev•2w ago
hi, `i have the same problem could you tell me what comment i must put in window in pods settings?
No description
nerdylive
nerdylive•2w ago
It doest work in the http port?
czapajev
czapajev•2w ago
nope
nerdylive
nerdylive•2w ago
So what happens when you try this? And open in your browser
czapajev
czapajev•2w ago
I removed port 8000 all others seemingly work and it stands still nothing continues to happen with it 🙂
No description
nerdylive
nerdylive•2w ago
Hmm weird so no exposed port? At all and this showed up? Or just removed 8000, from the list with all of those ports
Poddy
Poddy•2w ago
@Nureongi
Escalated To Zendesk
The thread has been escalated to Zendesk!
czapajev
czapajev•2w ago
I removed 8000 😛 and still same problem - NOTHING
nerdylive
nerdylive•2w ago
Nothing what do you mean
czapajev
czapajev•2w ago
stable diffusion application under which I am doing this pod does not turn on
nerdylive
nerdylive•2w ago
If you try to create a pod with no ns just for testing does it works Check for logs too
czapajev
czapajev•2w ago
I am noob... sorry but are you able to write how to do it?
Nureongi
NureongiOP•2w ago
Have you tried clicking on any of those 'Ready HTTP Service'? One of those is likely linked to the web GUI maybe you're looking for.
nerdylive
nerdylive•2w ago
I'll try to use the template later and check if everything works normally You can also create a new pod without attaching your network storage Just create a new one

Did you find this page helpful?