Jupyterhub with dockerspawner does not run – error 502

I’m trying to set up a multiuser jupyter setup. For this case I’ve set up an jupyterhub with RemoteCSVAuthenticator and DockerSpawner.

Authentication seems to work fine and also if I log in, a docker-container is started. But after logging in I only get an 502 Error-Message:

  • How to program with docker? [closed]
  • How do I move where Docker Images are stored under Windows 2016
  • How to expose docker container's ip and port to outside docker host without port mapping?
  • increase max_allowed_packet size in mysql docker
  • How do I connect the Postgres database running on the local machine to the docker container
  • Docker-machine how to chose IP with virtualbox driver
  • 502 : Bad Gateway
    The error was:
    Failed to check authorization (upstream problem)
    

    The jupyterhost logfile shows no errors. The dockercontainer is the plain
    jupyterhub/singleuser.

    Can anyone tell me where to start?


    After trying to digg deeper into the problem I found that if I try to access the jupyter-process inside the docker container (e.g. http://172.17.0.36:8888/) it always throws error 404 – page not found. I don’t think this is normal. Maybe this is the cause for the configurable-http-proxy to throw the “Bad Gateway” error.

  • Docker command to fetch dockerfile from registry
  • Tagging docker images and adding variables in docker-compose
  • Which java 8 docker image contains jmap?
  • Restcomm Docker container exits after few seconds - restcommautomate.sh failed
  • Dockerizing Delayed Job
  • Docker on fedora 20(32-bit) not working
  • One Solution collect form web for “Jupyterhub with dockerspawner does not run – error 502”

    Finally I found the problem. Since in our company we need to set a proxy I set $http_proxy and $https_proxy inside the Docker-Container. This made the jupyterhub-single running inside docker unable to open the connection to the host. My solution was to setup an local proxy on my host and forward local conenctions to the host everything else goes through the company’s proxy.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.