After some hours or days, one of my streamlit apps on share.streamlit.io crashes without any error message in the logs. I wonder why this might be happening and how to troubleshoot the issue.
What happens if the cache of an app gets so full that the resource constraints are exceeded? Would this trigger and error in the log or fail silently?
I believe we used to automatically restart apps but they were then getting into crash loops as they reached the resource limits over and over.
So currently, if an app crashed due to hitting resource limits it won’t automatically restart.
We do have plans in our roadmap to notify the developer if an app that they successfully deployed goes down at some later time due to reaching resource limits, but at the moment I can’t give you a time estimate on that (we are still in the midst of planning 2021!)
I wanted to ask whether there are any updates regarding a time estimate for the mentioned notification in the meantime @Marisa_Smith. For our app, it keeps happening that the app crashes after a couple of days so that website visitors are just faced with a meaningless error message.
Restarting the app manually fixes the problem for a few days but it’s very annoying to manually need to keep checking whether things are still alright. An automated solution to catch this would be highly useful.
The team is working on the next version of the Sharing platform that addresses this. I just asked them if we have a time estimate for this feature I will get back to you as soon as I know more!
Just got confirmation from our engineering team that this is scheduled to launch this quarter!!!
They are not exactly sure of the date just yet, as I believe it still needs to go through some more beta testing, but you can expect this to be released before the end of Q2!
Hi @Marisa_Smith, Was the feature of notifying the app owner if an app crashes ever rolled out. Periodically, my apps (that have very low memory usage) will crash after running for weeks without issue. Would be great to set up an alerting system so I can reboot them when this happens.
Streamlit Community Cloud does email a notification when the app has crashed owing to exceeding memory, here’s an example screenshot of such notification email:
I am not seeing the alert@streamlit.io email, but I would like notifications based on all instances of the app going down. For example, I have apps embedded on a webpage and I visited them this morning and they were down due to inactivity. Is there a way to get an email notification whenever the app is no longer live/accessible?