question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot connect to kernels & terminals error 400

See original GitHub issue

I have setup tljh on ubuntu server 18.04 on a new virtual machine (running on VMWare). There is no https (yet), it is in a local network. No user can connect to terminals nor kernels.

This is the error in the browser for a notebook: Firefox kann keine Verbindung zu dem Server unter ws://<ipaddress>/user/<user>/api/kernels/<token-id>/channels?session_id=<session-id> aufbauen.

same thing for a terminal: Firefox kann keine Verbindung zu dem Server unter ws://<ipaddress>/user/test/terminals/websocket/1 aufbauen.

User logs show 400 GET regarding above-mentioned addresses. I don’t see anything interesting in the jupyterhub logs nor the user logs nor traefik logs. Besides, my “what does the Installer do?” mentions configurable-http-proxy. Well it isn’t present on my install.

This isn’t about tornado as mentioned in https://github.com/jupyterhub/the-littlest-jupyterhub/issues/290 , both “hub” and “user” conda list version 5.1.1. Other similar posts of this error with jupyterhub mentions configuration of Nginx or Apache. What could it be with tljh?

I have done exactly the same install on a VirtualBox VM, and it still works perfectly there. I don’t see any difference in the two installs (both don’t have the configurable-http-proxy service). I installed both following http://tljh.jupyter.org/en/latest/install/custom-server.html to the letter.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hyamanieucommented, Sep 21, 2021

@GeorgianaElena FYI I don’t have this issue anymore for the past year. I don’t know what changed since, sorry for not keeping up with this. A ubuntu update? I guess it can be reopened if necessary. Ping to @jdkruzr

0reactions
jdkruzrcommented, Sep 21, 2021

@GeorgianaElena FYI I don’t have this issue anymore for the past year. I don’t know what changed since, sorry for not keeping up with this. A ubuntu update? I guess it can be reopened if necessary. Ping to @jdkruzr

Thanks for updating - I haven’t looked at it in quite a while but may dive in again in the coming weeks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Websocket 400 connection failed - JupyterHub
When I look at the webpage, right click, inspect - console I see the following for the Terminal and Python3 kernel (for example...
Read more >
Configuration for Jupyter Notebook on a home Ubuntu server
After a full day of attempts I found a solution. In the notebook configuration I uncommented the certificate lines.
Read more >
How to fix Kernel Error or broken Python in Jupyter Notebook
TL;DW BELOW! If you delete or upgrade your python version, you might get a Kernel Error when trying to use Jupyter Notebooks!
Read more >
jupyterhub/jupyterhub - Gitter
The notebook loads but then can't connect to the Python kernel ... failed: Error during WebSocket handshake: Unexpected response code: 400
Read more >
How to Fix Kernel Error in Jupyter Notebook
A kernel error occurs basically when you try opening a python 3 file in the wrong directory. The truth is Jupyter and Python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found