ml-tooling / ml-hub

🧰 Multi-user development platform for machine learning teams. Simple to setup within minutes.
Apache License 2.0
301 stars 64 forks source link

Upstream Error when running via docker #3

Closed gurjmatharu closed 4 years ago

gurjmatharu commented 4 years ago

Hi,

Thanks for this awesome tooling-set! Really cool. I'm running into an issue trying to launch ml-hub via docker.

Expected behaviour:

ML-Hub launches and is able to accept connections.

Steps to reproduce the issue:

From https://github.com/ml-tooling/ml-workspace#multi-user-setup

Run the following docker command:

docker run -p 8080:8080 --name mlhub -v /var/run/docker.sock:/var/run/docker.sock mltooling/ml-hub:latest

Technical details:

Possible Fix: N/A

Additional context:

Output from docker:


Start JupyterHub
2019/11/29 23:12:28 [error] 736#0: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "localhost:8080"
2019/11/29 23:12:28 [warn] 736#0: *4 upstream server temporarily disabled while connecting to upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "localhost:8080"
2019/11/29 23:12:28 [error] 736#0: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "localhost:8080"
2019/11/29 23:12:28 [warn] 736#0: *4 upstream server temporarily disabled while connecting to upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "localhost:8080"
2019/11/29 23:12:28 [error] 736#0: *4 open() "/resources/5xx.html" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "localhost:8080"```
raethlein commented 4 years ago

Hey @gurjmatharu,

thanks for the feedback!

Could you try the following please:

docker rm mlhub;
docker run \
    -d \
    -p 8080:8080 \
    -v /var/run/docker.sock:/var/run/docker.sock \
    mltooling/ml-hub:0.1.10

It's always best to use a dedicated version instead of latest. Further, unfortunately, the hub documentation you linked is not up-to-date, so for the newest documentation, check the mlhub page. Sorry for the inconvenience!

gurjmatharu commented 4 years ago

@raethlein

Works great!

Thank you!