Consistent app crash - "Streamlit server consistently failed status checks"

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] :exclamation: 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] :exclamation: 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.

Thanks!

Hi @KCpremo,

Thanks for posting!

Can you share the link to the deployed app? Memory limit errors will display a specific error message usually, but if your app seg-faults or something or crashes due to memory usage, the error message won’t necessarily mention memory usage.

Caroline :balloon:

Hello, thanks! Here is the link https://cpremoshis-state-media-database-dashboard-j3my7m.streamlitapp.com

I have not rebooted it since the last crash.

Hi @KCpremo,

It looks like it is memory issues that’s causing the app to crash. Here’s a graph of the app’s memory usage over the past 24 hours:

Check out this blog post for some tips on reducing memory usage.

Caroline

1 Like

Thank you for checking!

1 Like