Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tornado.websocket.WebSocketClosedError #3359

Open
zhijunyuu opened this issue Feb 7, 2024 · 1 comment
Open

tornado.websocket.WebSocketClosedError #3359

zhijunyuu opened this issue Feb 7, 2024 · 1 comment

Comments

@zhijunyuu
Copy link

zhijunyuu commented Feb 7, 2024

Hello!

I am using jupyterlab connect conda R env, every time I got error like:
[W 2024-02-07 23:03:48.349 ServerApp] kernel bcceed27-d986-4ab6-a8b5-95b3f741e0c7 restarted [E 2024-02-07 23:03:48.349 ServerApp] KernelRestarter: restart callback <bound method ZMQChannelsWebsocketConnection.on_kernel_restarted of <jupyter_server.services.kernels.connection.channels.ZMQChannelsWebsocketConnection object at 0x7f839fcba5e0>> failed Traceback (most recent call last): File "/hpc/miniconda3/envs/python3.9/lib/python3.9/site-packages/jupyter_client/restarter.py", line 105, in _fire_callbacks callback() File "/hpc/miniconda3/envs/python3.9/lib/python3.9/site-packages/jupyter_server/services/kernels/connection/channels.py", line 798, in on_kernel_restarted self._send_status_message("restarting") File "/hpc/miniconda3/envs/python3.9/lib/python3.9/site-packages/jupyter_server/services/kernels/connection/channels.py", line 793, in _send_status_message self.write_message(json.dumps(msg, default=json_default)) File "/hpc/miniconda3/envs/python3.9/lib/python3.9/site-packages/tornado/websocket.py", line 331, in write_message raise WebSocketClosedError() tornado.websocket.WebSocketClosedError

When I connect jupyterlab with conda python env, there is no errors.
I was trouble shooting for few days, but no luck.
anyone maybe have some idea how could I solve this issue?

Best,
Zhijun

@bdarnell
Copy link
Member

There's not much to go on here - looks like the browser/client has closed the connection. This is more likely to be a jupyterlab-specific issue than something in Tornado.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants