R
RunPod•4mo 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•4mo ago
Never mind. It works normally after mapping port 8000 to TCP instead of HTTP in the Pod settings.
Jason
Jason•4mo ago
It'd weird tho should work Normally.., maybe you should report this to support With the pod id
czapajev
czapajev•4mo ago
hi, `i have the same problem could you tell me what comment i must put in window in pods settings?
No description
Jason
Jason•4mo ago
It doest work in the http port?
czapajev
czapajev•4mo ago
nope
Jason
Jason•4mo ago
So what happens when you try this? And open in your browser
czapajev
czapajev•4mo ago
I removed port 8000 all others seemingly work and it stands still nothing continues to happen with it 🙂
No description
Jason
Jason•4mo 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•4mo ago
@Nureongi
Escalated To Zendesk
The thread has been escalated to Zendesk!
czapajev
czapajev•4mo ago
I removed 8000 😛 and still same problem - NOTHING
Jason
Jason•4mo ago
Nothing what do you mean
czapajev
czapajev•4mo ago
stable diffusion application under which I am doing this pod does not turn on
Jason
Jason•4mo ago
If you try to create a pod with no ns just for testing does it works Check for logs too
czapajev
czapajev•4mo ago
I am noob... sorry but are you able to write how to do it?
Nureongi
NureongiOP•4mo 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.
Jason
Jason•4mo 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?