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 <https://www.nginx.com/blog/websocket-nginx/>.

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
​

On Mon, May 22, 2017 at 7:03 AM, <[email protected]> wrote:

> 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
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/0e2ee5c9-b42c-425b-b5f2-74b15c9535f6%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/0e2ee5c9-b42c-425b-b5f2-74b15c9535f6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAHNn8BUpF2%2BGfgfE8Z%3DkiLUXuWJ82Q86tjbrUwNj4GhtAjnOOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to