Skip to content

Very slow often on bash, sometimes hangs #149

Description

@eyalk11

I can only provide samples of logs. It happens most of the times.

jupyter                       1.1.1
jupyter_ai                    2.29.0
jupyter_ai_magics             2.29.0
jupyter_client                8.6.3
jupyter-console               6.6.3
jupyter_core                  5.7.2
jupyter-events                0.11.0
jupyter-lsp                   2.2.5
jupyter_packaging             0.12.3
jupyter_server                2.15.0
jupyter_server_terminals      0.5.3
jupyterlab                    4.3.5
jupyterlab_pygments           0.3.0
jupyterlab-scenes             2.0.0
jupyterlab_server             2.27.3
jupyterlab_widgets            3.0.13
bash_kernel                   0.10.0
W 2025-02-25 05:34:40.025 ServerApp] Timeout waiting for kernel_info reply from ed08951e-39f9-42bb-b0ab-accbe68344f0
2025-02-25 05:34:40,028 - ServerApp - ERROR - Uncaught exception GET /api/kernels/bd331e82-7685-4e8d-bdc5-d01463594867/channels?session_id=c411998f-3af8-42d2-a9b5-23f70197e45a (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8812', method='GET', uri='/api/kernels/bd331e82-7685-4e8d-bdc5-d01463594867/channels?session_id=c411998f-3af8-42d2-a9b5-23f70197e45a', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
  File "/home/ekarni/.local/lib/python3.11/site-packages/tornado/websocket.py", line 940, in _accept_connection
    await open_result
  File "/home/ekarni/.local/lib/python3.11/site-packages/jupyter_server/services/kernels/websocket.py", line 75, in open
    await self.connection.connect()
TimeoutError: Timeout
2025-02-25 05:34:40,028 - ServerApp - ERROR - Uncaught exception GET /api/kernels/ed08951e-39f9-42bb-b0ab-accbe68344f0/channels?session_id=21796ca0-45ca-4da4-bd33-f411e1ba46b4 (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8812', method='GET', uri='/api/kernels/ed08951e-39f9-42bb-b0ab-accbe68344f0/channels?session_id=21796ca0-45ca-4da4-bd33-f411e1ba46b4', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
  File "/home/ekarni/.local/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute
    result = await result
             ^^^^^^^^^^^^
  File "/home/ekarni/.local/lib/python3.11/site-packages/jupyter_server/services/kernels/websocket.py", line 66, in get
    await super().get(kernel_id=kernel_id)
  File "/home/ekarni/.local/lib/python3.11/site-packages/tornado/websocket.py", line 273, in get
    await self.ws_connection.accept_connection(self)
  File "/home/ekarni/.local/lib/python3.11/site-packages/tornado/websocket.py", line 863, in accept_connection
    await self._accept_connection(handler)
  File "/home/ekarni/.local/lib/python3.11/site-packages/tornado/websocket.py", line 903, in _accept_connection
    self.selected_subprotocol = handler.select_subprotocol(subprotocols)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ekarni/.local/lib/python3.11/site-packages/jupyter_server/services/kernels/websocket.py", line 88, in select_subprotocol
    preferred_protocol = self.connection.kernel_ws_protocol
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'kernel_ws_protocol'
[E 2025-02-25 05:34:40.037 ServerApp] {
      "Host": "localhost:8812",
      "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"
    }
[E 2025-02-25 05:34:40.038 ServerApp] 500 GET /api/kernels/ed08951e-39f9-42bb-b0ab-accbe68344f0/channels?session_id=21796ca0-45ca-4da4-bd33-f411e1ba46b4 (f6b8cab139e4404eab15af5c28728d9c@127.0.0.1) 63633.61ms referer=None
[W 2025-02-25 05:34:59.524 ServerApp] Timeout waiting for kernel_info reply from bd331e82-7685-4e8d-bdc5-d01463594867
[I 2025-02-25 05:34:59.526 ServerApp] Connecting to kernel bd331e82-7685-4e8d-bdc5-d01463594867.
[W 2025-02-25 05:35:23.877 ServerApp] Nudge: attempt 10 on kernel bd331e82-7685-4e8d-bdc5-d01463594867
[W 2025-02-25 05:36:01.227 ServerApp] Nudge: attempt 20 on kernel bd331e82-7685-4e8d-bdc5-d01463594867
[W 2025-02-25 05:36:01.228 ServerApp] Timeout waiting for kernel_info reply from ed08951e-39f9-42bb-b0ab-accbe68344f0
2025-02-25 05:36:01,231 - ServerApp - ERROR - Uncaught exception GET /api/kernels/bd331e82-7685-4e8d-bdc5-d01463594867/channels?session_id=922c1a45-92c5-42b4-83c3-e6d62849ec63 (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8812', method='GET', uri='/api/kernels/bd331e82-7685-4e8d-bdc5-d01463594867/channels?session_id=922c1a45-92c5-42b4-83c3-e6d62849ec63', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
  File "/home/ekarni/.local/lib/python3.11/site-packages/tornado/websocket.py", line 940, in _accept_connection
    await open_result
  File "/home/ekarni/.local/lib/python3.11/site-packages/jupyter_server/services/kernels/websocket.py", line 75, in open
    await self.connection.connect()
TimeoutError: Timeout
[I 2025-02-25 05:36:01.232 ServerApp] Connecting to kernel ed08951e-39f9-42bb-b0ab-accbe68344f0.
[W 2025-02-25 05:36:36.350 ServerApp] Nudge: attempt 10 on kernel ed08951e-39f9-42bb-b0ab-accbe68344f0
[I 2025-02-25 05:36:39.215 ServerApp] Connecting to kernel 4c07a83a-083c-41e8-9275-0c00dbee3a4a.
[I 2025-02-25 05:36:39.230 ServerApp] Client connected. ID: 5263787459384a93bed4d187dcecf319
[I 2025-02-25 05:36:39.230 ServerApp] Starting buffering for 4c07a83a-083c-41e8-9275-0c00dbee3a4a:944ffa4f-75ef-4f2a-99c0-0b31f67fa6d9
[W 2025-02-25 05:36:39.254 ServerApp] Replacing stale connection: bd331e82-7685-4e8d-bdc5-d01463594867:922c1a45-92c5-42b4-83c3-e6d62849ec63
Exception in callback _chain_future.<locals>._set_state(<Future finished result={}>, <Future at 0x...returned dict>) at /usr/lib/python3.11/asyncio/futures.py:381
handle: <Handle _chain_future.<locals>._set_state(<Future finished result={}>, <Future at 0x...returned dict>) at /usr/lib/python3.11/asyncio/futures.py:381>
Traceback (most recent call last):
  File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/lib/python3.11/asyncio/futures.py", line 383, in _set_state
    _copy_future_state(other, future)
  File "/usr/lib/python3.11/asyncio/futures.py", line 353, in _copy_future_state
    assert not dest.done()
           ^^^^^^^^^^^^^^^
AssertionError
Exception in callback _chain_future.<locals>._set_state(<Future finished result={}>, <Future at 0x...returned dict>) at /usr/lib/python3.11/asyncio/futures.py:381
handle: <Handle _chain_future.<locals>._set_state(<Future finished result={}>, <Future at 0x...returned dict>) at /usr/lib/python3.11/asyncio/futures.py:381>
Traceback (most recent call last):
  File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/lib/python3.11/asyncio/futures.py", line 383, in _set_state
    _copy_future_state(other, future)
  File "/usr/lib/python3.11/asyncio/futures.py", line 353, in _copy_future_state
    assert not dest.done()
           ^^^^^^^^^^^^^^^
AssertionError
Exception in callback _chain_future.<locals>._set_state(<Future finished result={}>, <Future at 0x...returned dict>) at /usr/lib/python3.11/asyncio/futures.py:381
handle: <Handle _chain_future.<locals>._set_state(<Future finished result={}>, <Future at 0x...returned dict>) at /usr/lib/python3.11/asyncio/futures.py:381>
Traceback (most recent call last):
  File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/lib/python3.11/asyncio/futures.py", line 383, in _set_state
    _copy_future_state(other, future)
  File "/usr/lib/python3.11/asyncio/futures.py", line 353, in _copy_future_state
    assert not dest.done()
           ^^^^^^^^^^^^^^^
AssertionError
Exception in callback _chain_future.<locals>._set_state(<Future finished result={}>, <Future at 0x...returned dict>) at /usr/lib/python3.11/asyncio/futures.py:381
handle: <Handle _chain_future.<locals>._set_state(<Future finished result={}>, <Future at 0x...returned dict>) at /usr/lib/python3.11/asyncio/futures.py:381>
Traceback (most recent call last):
  File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/lib/python3.11/asyncio/futures.py", line 383, in _set_state
    _copy_future_state(other, future)
  File "/usr/lib/python3.11/asyncio/futures.py", line 353, in _copy_future_state
    assert not dest.done()
           ^^^^^^^^^^^^^^^
AssertionError
Exception in callback _chain_future.<locals>._set_state(<Future finished result={}>, <Future at 0x...returned dict>) at /usr/lib/python3.11/asyncio/futures.py:381
handle: <Handle _chain_future.<locals>._set_state(<Future finished result={}>, <Future at 0x...returned dict>) at /usr/lib/python3.11/asyncio/futures.py:381>
Traceback (most recent call last):
  File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/lib/python3.11/asyncio/futures.py", line 383, in _set_state
    _copy_future_state(other, future)
  File "/usr/lib/python3.11/asyncio/futures.py", line 353, in _copy_future_state
    assert not dest.done()
           ^^^^^^^^^^^^^^^
AssertionError
[I 2025-02-25 05:37:38.128 ServerApp] Connecting to kernel bd331e82-7685-4e8d-bdc5-d01463594867.
[I 2025-02-25 05:37:38.147 ServerApp] Connecting to kernel ed08951e-39f9-42bb-b0ab-accbe68344f0.
[I 2025-02-25 05:37:38.164 ServerApp] Connecting to kernel bd331e82-7685-4e8d-bdc5-d01463594867.
[IPKernelApp] WARNING | Unknown message type: 'comm_open'
[IPKernelApp] WARNING | Unknown message type: 'comm_msg'
[I 2025-02-25 05:37:38.186 ServerApp] Connecting to kernel 4c07a83a-083c-41e8-9275-0c00dbee3a4a.
[IPKernelApp] WARNING | Unknown message type: 'comm_open'
[IPKernelApp] WARNING | Unknown message type: 'comm_msg'
[IPKernelApp] WARNING | Unknown message type: 'comm_open'
[IPKernelApp] WARNING | Unknown message type: 'comm_msg'
[I 2025-02-25 05:38:40.557 ServerApp] Saving file at /pods.ipynb

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions