question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Streamlit stuck on loading screen on Docker

See original GitHub issue

Summary

When attempting to run streamlit under Docker it is stuck on the “connecting” screen.

Steps to reproduce

  1. docker run -it --rm -p 42851:8501 python:3.7 /bin/bash
  2. pip install streamlit
  3. streamlit hello
  4. Go to http://< server IP >:42851/
  5. 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): image 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
mneira10commented, Dec 11, 2019

I have a similar issue when requesting the page through the domain name instead of the ip of the server. Could they be related?

2reactions
PALuczakcommented, Nov 1, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found