Nureongi
Nureongi
RRunPod
Created by Nureongi on 1/9/2025 in #⛅|pods
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?
24 replies