jupyterhub: kernel starts but notebook cannot connect

33 views
Skip to first unread message

hokie...@gmail.com

unread,
May 22, 2017, 10:03:18 AM5/22/17
to Project Jupyter
Hi Everyone,

I am running jupyterhub within a Docker container behind an nginx proxy and it's been working really well for several months.

I now have a user who can launch a python2 or python3 kernel but then cannot connect. I don't see any errors in either the jupyterhub or nginx logs.

Any recommendations as to how to troubleshoot this further?

--John

MinRK

unread,
May 27, 2017, 8:55:29 PM5/27/17
to Project Jupyter

When an additional proxy is in front, such an error generally means that the proxy isn’t proxying websocket connections correctly, which requires some extra configuration.

In nginx config, this can look like:

map $http_upgrade $connection_upgrade {
  default upgrade;
  '' close;
}
...
location / {
  ...
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection $connection_upgrade;
}

-Min


--
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+unsubscribe@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/0e2ee5c9-b42c-425b-b5f2-74b15c9535f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages