Jupyterhub network and/or Configuration errors

61 views
Skip to first unread message

Lance Smith

unread,
Oct 16, 2017, 10:39:49 AM10/16/17
to Project Jupyter

 I think I have a simple configuration error, but I can't figure it out. I have a Jupyterhub installation that uses SSL via a certificate that was given to my by our systems administrator. I have a VM that runs jupyterhub remotely and I've configured it by following the instructions
from the install guide. The only changes to jupyterhub_config.py are below.

I have a DNS name, jupyterhub.<mydomain>.org assigned to 10.2.1.52 The hub starts without any errors to the console. When I try to go to the URL, it just hangs and eventually errors out.

If I try to go directly to the Hub API at http://10.2.1.52:443/hub/, I’ll get the login page but I will get caught in a redirect loop and kicked out

 

Error message:

 

Detected possible direct connection to Hub's private ip: http://10.2.1.52:443/hub/user/smithla, bypassing proxy.

                        This will result in a redirect loop.


As far as I can tell, ports 443, 8000 and 8001 are open

root@jupyterhub:/home/smithla/jupyterconfig# netstat -tulnp | grep 443
tcp        0      0 10.2.1.52:443           0.0.0.0:*               LISTEN      4169/python3

root@jupyterhub:/home/smithla/jupyterconfig# netstat -tulnp | grep 8000
tcp6       0      0 :::8000                 :::*                    LISTEN      4173/node

root@jupyterhub:/home/smithla/jupyterconfig# netstat -tulnp | grep 8001
tcp        0      0 127.0.0.1:8001          0.0.0.0:*               LISTEN      4173/node


Thanks,
  Lance Smith


jupyterhub_config.py file

## The ip for this process
c.JupyterHub.hub_ip = '10.2.1.52'

## The port for this process
c.JupyterHub.hub_port = 443




Charles Forelle

unread,
Oct 16, 2017, 11:11:21 AM10/16/17
to jup...@googlegroups.com
I think you want c.JupyterHub.ip and c.JupyterHub.port, not hub_ip and hub_port

Does that help?

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d3a8d654-a95b-43c3-80e6-95c3e91496fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Lance Smith

unread,
Oct 17, 2017, 10:47:43 PM10/17/17
to Project Jupyter
Yes, that was it. Once I switched to the correct ip/port config, I restarted and got:

Proxy appears to be running at http://*:8000/, but I can't access it (HTTP 403: Forbidden)
Did CONFIGPROXY_AUTH_TOKEN change
But one google search later and I found out I had to kill the node process with:

sudo pkill node

One restart after that and all is running. Thanks for your help. 
Reply all
Reply to author
Forward
0 new messages