lately I’ve been having the problem that my users randomly get kicked out of my app. This can happen any time while using the app and is not connected to any user action.
I tried it a few times by just letting it sit in the background - sometimes you get kicked out after a few seconds, sometimes you get to use it for 30 minutes or longer, but you always get kicked at some point.
The logs show that Streamlit seems to pull the code from GitHub and restart the app at random times even though no changes have been committed to the repository.
Besides a commit to the repo, what triggers an update of the code in Streamlit?
Here’s an example of the log. The first two entries are expected outputs of my app. I didn’t touch the app or uploaded anything to GitHub. After a while I get kicked out and the log show the cloning of the repo and the restart of the app.
2022-07-27 06:33:06.853 Processing request DwdObservationRequest(parameter=[(v_n/cloudiness)], resolution=hourly, period=[None], start_date=2020-01-01 00:00:00+01:00, end_date=2020-12-31 23:59:00+01:00, humanize=True, tidy=True, si_units=False) 2022-07-27 06:33:06.897 Processing request DwdObservationRequest(parameter=[(v_te100/soil_temperature)], resolution=hourly, period=[None], start_date=2020-01-01 00:00:00+01:00, end_date=2020-12-31 23:59:00+01:00, humanize=True, tidy=True, si_units=False) [06:29:12] 🚀 Starting up repository: 'grafische_datenauswertung', branch: 'master', main module: '🔑_login.py' [06:29:12] 🐙 Cloning repository... [06:29:22] 🐙 Cloning into '/app/grafische_datenauswertung'... [06:29:22] 🐙 Cloned repository! [06:29:22] 🐙 Pulling code changes from Github... [06:29:23] 📦 Processing dependencies... ──────────────────────────────────────── pip ─────────────────────────────────────────── Collecting deta==1.1.0 Downloading deta-1.1.0-py3-none-any.whl (8.7 kB) [...]
I hope someone can help me, because I have no clue how to fix this.
If you want, you can try it out yourself:
username: guest password: guest2207