Streamlit stuck on loading screen on Docker
See original GitHub issueSummary
When attempting to run streamlit under Docker it is stuck on the “connecting” screen.
Steps to reproduce
docker run -it --rm -p 42851:8501 python:3.7 /bin/bash
pip install streamlit
streamlit hello
- Go to http://< server IP >:42851/
- Streamlit is stuck “connecting” The issue also appears when using a Dockerfile
Expected behavior:
Streamlit should finish “connecting” and start the hello app
Actual behavior:
The application is stuck on “connecting” screen (checked for over 1h before giving up): Output from the terminal:
root@35427972d7ee:/# streamlit hello
Telemetry: As an open source project, we collect usage statistics.
We cannot see and do not store information contained in Streamlit apps.
If you'd like to opt out, add the following to ~/.streamlit/config.toml,
creating that file if necessary:
[browser]
gatherUsageStats = false
You can now view your Streamlit app in your browser.
Network URL: http://172.17.0.6:8501
External URL: http://<external server IP>:8501
Is this a regression?
no
Debug info
- Streamlit version: Streamlit, version 0.49.0
- Python version: Python 3.7.5 (same behaviour on python 3.8 and latest anaconda)
- Using Docker: Docker version 19.03.4, build 9013bf583a
- OS version: Linux myServer 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u5 (2019-08-11) x86_64 GNU/Linux
- Browser version: Edge 79.0.309.5 (Official build) dev (64-bit
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Ec2 streamlit stuck on loading screen while running streamlit ...
Hi, I exposed the 8501 port on ec2 as required but for some reason the screen is stuck on loading: Any idea how...
Read more >App is not loading when running remotely - Streamlit Docs
App is not loading when running remotely. Below are a few common errors that occur when users spin up their own solution to...
Read more >Error when using Streamlit with Docker
How can I fix this? You can find the solution here Ec2 streamlit stuck on loading screen while running streamlit hello. Using --server. ......
Read more >Streamlit app running in a docker container not loading
streamlit app running in a docker container not loading. ... Please show us at least your Dockerfile and your docker run command.
Read more >How do I set the server to 0.0.0.0 for deployment using Docker
I would like to deploy an application using docker. ... 2 Likes. Ec2 streamlit stuck on loading screen while running streamlit hello.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have a similar issue when requesting the page through the domain name instead of the ip of the server. Could they be related?
@MarcSkovMadsen I have configured the
~/.streamlit/credentials.toml
file as you described, unfortunately the issue still persists, though I tried your docker image and it worked correctly which suggests that it is some sort of configuration issue.