Streamlit App Fails Health Check (connection refused on /healthz)

Hi all,

I’m running a Streamlit app locally (no Docker) using:

bash

CopyEdit

streamlit run app/main.py

But I get this error:

vbnet

CopyEdit

The service has encountered an error while checking the health of the Streamlit app: 
Get "http://localhost:8501/healthz": dial tcp 127.0.0.1:8501: connect: connection refused

What I’ve tried:

  • Python 3.13 → same error
  • Downgraded to Python 3.11 → still same
  • Streamlit is installed and dependencies processed using uv
  • App doesn’t open in browser and nothing runs on port 8501

Question:

  • Any idea why the server won’t start or fails silently?
  • Any workaround or logs I can check?

Appreciate your help! :folded_hands: