I’ve recently deployed an app to Streamlit Cloud. It works fine for a while, but eventually always crashes and returns this error message:
[14:53:51] The service has encountered an error while checking the health of the Streamlit app: Get “http://localhost:8501/healthz”: read tcp 127.0.0.1:52740->127.0.0.1:8501: read: connection reset by peer
[14:55:21] Streamlit server consistently failed status checks
I’m not seeing any more details than this, and the only solution I’ve found so far is to reboot or redeploy the entire app, but that isn’t a long-term fix.
My app does use a significant amount of memory when performing certain functions, and the app crash always seems to happen when using those functions, but I’m not sure what to make of that. I would have thought that if it was a memory issue, I would have a memory specific error message.
If anyone has any advice, I’d greatly appreciate it.