I am running my JupyterHub on a Virtual Machine hosted at my university. The VM is running on Ubuntu 20.04 LTS. When I launch JupyterHub from the LMS of my university it opens the hub successfully. But when I try to create a new notebook (Python 3) it shows a broken/dead kernel. And also I cannot open the terminal from the hub.
Getting all the way to starting a kernel, but then failing to connect usually points to a proxy not handling websockets. Is there perhaps an nginx/apache/other gateway between you and JupyterHub? Are you able to start a terminal? If no, proxied websockets are almost certainly the issue.
We are using Capistrano to build our Jupyterhub on the VM using the docker then create the single-user instance for each user. Also, we are using LTI for authentication. We are using some of the motivation from this for technical aspects: Marvin Kastner / minimal-jupyterhub-docker-config · GitLab
@minrk , I kind of get the idea now where the issue is from. Can you please provide some more details on how this issue could be fixed? Is it inside a Jupyter config file or on the VM?
It shouldn’t be in anything Jupyter-related. It will depend on what the proxy is, but it will need to support websockets. Searching the proxy name and websockets might be the way to go.
Just to clarify the solution in case someone else faces the issue.
As it finally turned out, the Nginx proxy configuration was not yet adapted to handling websockets. The admin only added the two options to the Nginx configuration:
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “Upgrade”;
That solved the problem.
I’ve already found problem is " 500 : Internal Server Error" when i want to create new python in jupyter notebook.Cound you please tell me how to fixed? (result is in snap 1