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?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.