IJulia.jl icon indicating copy to clipboard operation
IJulia.jl copied to clipboard

JupyterLab stopped working for Julia 1.9 (404 GETs)

Open bingis-khan opened this issue 1 year ago • 13 comments

versioninfo()

Julia Version 1.9.0
Commit 8e63055292* (2023-05-07 11:25 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores

Installation

I used pacman. Also removed any dotfiles/directories for jupyter and julia. The issue still occurs. Everything is up-to-date.

Julia 1.8 would run without issues.


I try to create a Julia 1.9 notebook and try to run a simple code block, like:

println("asd")

This is the output:

[I 2023-05-29 11:57:00.673 ServerApp] Package jupyterlab took 0.0000s to import
[I 2023-05-29 11:57:00.676 ServerApp] Package jupyter_server_fileid took 0.0031s to import
[I 2023-05-29 11:57:00.697 ServerApp] Package jupyter_server_ydoc took 0.0207s to import
[I 2023-05-29 11:57:00.698 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-05-29 11:57:00.698 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-05-29 11:57:00.701 ServerApp] jupyter_server_fileid | extension was successfully linked.
[I 2023-05-29 11:57:00.705 ServerApp] jupyter_server_ydoc | extension was successfully linked.
[I 2023-05-29 11:57:00.711 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-05-29 11:57:00.875 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-05-29 11:57:00.889 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-05-29 11:57:00.889 FileIdExtension] Configured File ID manager: ArbitraryFileIdManager
[I 2023-05-29 11:57:00.890 FileIdExtension] ArbitraryFileIdManager : Configured root dir: /home/bob
[I 2023-05-29 11:57:00.890 FileIdExtension] ArbitraryFileIdManager : Configured database path: /home/bob/.local/share/jupyter/file_id_manager.db
[I 2023-05-29 11:57:00.890 FileIdExtension] ArbitraryFileIdManager : Successfully connected to database file.
[I 2023-05-29 11:57:00.890 FileIdExtension] ArbitraryFileIdManager : Creating File ID tables and indices with journal_mode = DELETE
[I 2023-05-29 11:57:00.890 FileIdExtension] Attached event listeners.
[I 2023-05-29 11:57:00.890 ServerApp] jupyter_server_fileid | extension was successfully loaded.
[I 2023-05-29 11:57:00.891 ServerApp] jupyter_server_ydoc | extension was successfully loaded.
[I 2023-05-29 11:57:00.891 LabApp] JupyterLab extension loaded from /usr/lib/python3.11/site-packages/jupyterlab
[I 2023-05-29 11:57:00.891 LabApp] JupyterLab application directory is /usr/share/jupyter/lab
[I 2023-05-29 11:57:00.891 LabApp] Extension Manager is 'pypi'.
[I 2023-05-29 11:57:00.893 ServerApp] jupyterlab | extension was successfully loaded.
[I 2023-05-29 11:57:00.894 ServerApp] Serving notebooks from local directory: /home/bob
[I 2023-05-29 11:57:00.894 ServerApp] Jupyter Server 2.6.0 is running at:
[I 2023-05-29 11:57:00.894 ServerApp] http://localhost:8888/lab?token=cd74d35ec702a5d2153dd7a8b6e9d5abbaaf7a8ad7f26d49
[I 2023-05-29 11:57:00.894 ServerApp]     http://127.0.0.1:8888/lab?token=cd74d35ec702a5d2153dd7a8b6e9d5abbaaf7a8ad7f26d49
[I 2023-05-29 11:57:00.894 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-05-29 11:57:01.237 ServerApp] 
    
    To access the server, open this file in a browser:
        file:///home/bob/.local/share/jupyter/runtime/jpserver-16737-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/lab?token=cd74d35ec702a5d2153dd7a8b6e9d5abbaaf7a8ad7f26d49
        http://127.0.0.1:8888/lab?token=cd74d35ec702a5d2153dd7a8b6e9d5abbaaf7a8ad7f26d49
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[W 2023-05-29 11:57:03.543 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208?1685354223435 (127.0.0.1): Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208
[W 2023-05-29 11:57:03.543 ServerApp] wrote error: 'Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208'
    Traceback (most recent call last):
      File "/usr/lib/python3.11/site-packages/tornado/web.py", line 1713, in _execute
        result = await result
                 ^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/handlers.py", line 73, in get
        model = await ensure_async(km.kernel_model(kernel_id))
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 501, in kernel_model
        self._check_kernel_id(kernel_id)
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 532, in _check_kernel_id
        raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id)
    tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208)
[W 2023-05-29 11:57:03.545 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208?1685354223435 ([email protected]) 48.39ms referer=http://localhost:8888/lab/workspaces/auto-7/tree/Untitled.ipynb
[W 2023-05-29 11:57:05.742 ServerApp] 404 GET /lsp/status?1685354225720 ([email protected]) 19.20ms referer=http://localhost:8888/lab/workspaces/auto-Y?reset
[I 2023-05-29 11:57:06.204 LabApp] Build is up to date
[I 2023-05-29 11:57:18.866 ServerApp] Creating new notebook in 
[I 2023-05-29 11:57:19.270 ServerApp] Kernel started: 2eb3c431-7a1a-4337-9807-13d931e886ba
[W 2023-05-29 11:57:21.447 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208?1685354241444 (127.0.0.1): Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208
[W 2023-05-29 11:57:21.447 ServerApp] wrote error: 'Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208'
    Traceback (most recent call last):
      File "/usr/lib/python3.11/site-packages/tornado/web.py", line 1713, in _execute
        result = await result
                 ^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/handlers.py", line 73, in get
        model = await ensure_async(km.kernel_model(kernel_id))
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 501, in kernel_model
        self._check_kernel_id(kernel_id)
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 532, in _check_kernel_id
        raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id)
    tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208)
[W 2023-05-29 11:57:21.448 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208?1685354241444 ([email protected]) 1.56ms referer=http://localhost:8888/lab/workspaces/auto-7/tree/Untitled.ipynb
Starting kernel event loops.
[W 2023-05-29 11:57:52.914 ServerApp] 404 GET /api/kernels/81d468d6-ef64-484b-afb6-3d273a348420/channels?session_id=95154621-8e7b-4a0a-81dc-5c4b14145b87 (127.0.0.1): Kernel does not exist: 81d468d6-ef64-484b-afb6-3d273a348420
[W 2023-05-29 11:57:52.917 ServerApp] 404 GET /api/kernels/81d468d6-ef64-484b-afb6-3d273a348420/channels?session_id=95154621-8e7b-4a0a-81dc-5c4b14145b87 ([email protected]) 3.58ms referer=None
[W 2023-05-29 11:57:52.925 ServerApp] 404 GET /api/kernels/81d468d6-ef64-484b-afb6-3d273a348420?1685354272922 (127.0.0.1): Kernel does not exist: 81d468d6-ef64-484b-afb6-3d273a348420
[W 2023-05-29 11:57:52.926 ServerApp] wrote error: 'Kernel does not exist: 81d468d6-ef64-484b-afb6-3d273a348420'
    Traceback (most recent call last):
      File "/usr/lib/python3.11/site-packages/tornado/web.py", line 1713, in _execute
        result = await result
                 ^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/handlers.py", line 73, in get
        model = await ensure_async(km.kernel_model(kernel_id))
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 501, in kernel_model
        self._check_kernel_id(kernel_id)
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 532, in _check_kernel_id
        raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id)
    tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: 81d468d6-ef64-484b-afb6-3d273a348420)
[W 2023-05-29 11:57:52.927 ServerApp] 404 GET /api/kernels/81d468d6-ef64-484b-afb6-3d273a348420?1685354272922 ([email protected]) 1.76ms referer=http://localhost:8888/lab/workspaces/auto-r/tree/test.ipynb
[W 2023-05-29 11:58:52.957 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208/channels?session_id=b1fbf67e-d109-4aa4-a9fa-780eff604a70 (127.0.0.1): Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208
[W 2023-05-29 11:58:52.958 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208/channels?session_id=b1fbf67e-d109-4aa4-a9fa-780eff604a70 ([email protected]) 1.51ms referer=None
[W 2023-05-29 11:58:52.964 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208?1685354332960 (127.0.0.1): Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208
[W 2023-05-29 11:58:52.964 ServerApp] wrote error: 'Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208'
    Traceback (most recent call last):
      File "/usr/lib/python3.11/site-packages/tornado/web.py", line 1713, in _execute
        result = await result
                 ^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/handlers.py", line 73, in get
        model = await ensure_async(km.kernel_model(kernel_id))
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 501, in kernel_model
        self._check_kernel_id(kernel_id)
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 532, in _check_kernel_id
        raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id)
    tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208)
[W 2023-05-29 11:58:52.965 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208?1685354332960 ([email protected]) 1.65ms referer=http://localhost:8888/lab/workspaces/auto-7/tree/Untitled.ipynb
[W 2023-05-29 11:58:53.218 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208/channels?session_id=ed8bf78e-bf52-4b7c-8a50-3add53bb8e4b (127.0.0.1): Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208
[W 2023-05-29 11:58:53.221 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208/channels?session_id=ed8bf78e-bf52-4b7c-8a50-3add53bb8e4b ([email protected]) 3.90ms referer=None
[W 2023-05-29 11:58:53.234 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208?1685354333225 (127.0.0.1): Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208
[W 2023-05-29 11:58:53.234 ServerApp] wrote error: 'Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208'
    Traceback (most recent call last):
      File "/usr/lib/python3.11/site-packages/tornado/web.py", line 1713, in _execute
        result = await result
                 ^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/handlers.py", line 73, in get
        model = await ensure_async(km.kernel_model(kernel_id))
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 501, in kernel_model
        self._check_kernel_id(kernel_id)
      File "/usr/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 532, in _check_kernel_id
        raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id)
    tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: dc36cacb-9096-44d3-a08d-05205c620208)
[W 2023-05-29 11:58:53.236 ServerApp] 404 GET /api/kernels/dc36cacb-9096-44d3-a08d-05205c620208?1685354333225 ([email protected]) 3.70ms referer=http://localhost:8888/lab/workspaces/auto-7/tree/Untitled.ipynb
[I 2023-05-29 11:59:19.597 ServerApp] Saving file at /Untitled.ipynb
[I 2023-05-29 11:59:46.674 ServerApp] interrupted
[I 2023-05-29 11:59:46.675 ServerApp] Serving notebooks from local directory: /home/bob
    1 active kernel
    Jupyter Server 2.6.0 is running at:
    http://localhost:8888/lab?token=cd74d35ec702a5d2153dd7a8b6e9d5abbaaf7a8ad7f26d49
        http://127.0.0.1:8888/lab?token=cd74d35ec702a5d2153dd7a8b6e9d5abbaaf7a8ad7f26d49
Shutdown this Jupyter server (y/[n])? [C 2023-05-29 11:59:49.299 ServerApp] Shutdown confirmed
[I 2023-05-29 11:59:49.300 ServerApp] Shutting down 4 extensions
[I 2023-05-29 11:59:49.301 ServerApp] Shutting down 1 kernel
[I 2023-05-29 11:59:49.302 ServerApp] Kernel shutdown: 2eb3c431-7a1a-4337-9807-13d931e886ba

bingis-khan avatar May 29 '23 10:05 bingis-khan