I’m trying to use the Python3 kernel in JupyterHub.
I created a notebook and entered print("test") in the first cell.
When I run this cell, nothing happens; I just get an In[*] and no execution.
Here is the error message that was displayed.
Connection failed
A connection to the notebook server could not be established.
The notebook will continue trying to reconnect.
Check your network connection or notebook server configuration.
The console of the browser (Chrome) showed the following error message.
WebSocket connection to ‘ws://192.168.100.100:8000/user/test_user/api/kernels/f286a223-bf52-4aff-839c-16aa55908a3a/channels?session_id=f20fe0e8c6cb443abf10d4a74054d04d’ failed:
Thank you for your confirmation.
There is no Proxy in the network path, but I have checked if there is anything else that cannot handle WebSocket.
The JupyterHub server is built on AWS EC2.
The client where the error occurred is also on EC2 and is accessed from a different VPC than the JupyterHub server via VPC peering.
I built JupyterHub in October, and it was working fine at that time.
After that, I did not use it for about a month, so I stopped EC2. Recently, when I started EC2 and accessed JupyterHub, I got an error and it is still continuing.
JupyterHub was installed using pip according to GitHub’s Installation.
I used “ldapauthenticator” for authentication, but since I can login to JupyterHub, I think it is not related to this error.
If JupyterHub was previously working and nothing has changed in JupyterHub then it’ll most likely be a change to the networking somewhere, or perhaps something changed on the client (e.g. perhaps a change to the browser, or anti-virus software getting in the way?)
Thank you for your confirmation.
I have since been able to isolate the problem as occurring only with some clients.
I believe that there is no problem with JupyterHub or the network, as some clients are available on the same network.
I am still investigating the client side of the problem.
Thank you very much for your help.