jupyterlab icon indicating copy to clipboard operation
jupyterlab copied to clipboard

constant JupyterLab errors in console LabApp] Build is up to date ServerApp] 404 GET /api/kernels/ Kernel does not exist: referer=http://localhost:8888/lab

Open richlysakowski opened this issue 3 years ago • 2 comments

The Jupyter Lab application still runs but I get this never ending stream of 404 GET errors.

For example:

(base) C:\Users\richadmin.DESKTOP-IESK5E9\Desktop>activate streamlit

(streamlit) C:\Users\richadmin.DESKTOP-IESK5E9\Desktop>jupyter lab
[I 2022-08-03 03:04:51.510 ServerApp] jupyterlab | extension was successfully linked.
[I 2022-08-03 03:04:51.525 ServerApp] nbclassic | extension was successfully linked.
[I 2022-08-03 03:04:51.993 ServerApp] notebook_shim | extension was successfully linked.
[I 2022-08-03 03:04:52.035 ServerApp] notebook_shim | extension was successfully loaded.
[I 2022-08-03 03:04:52.037 LabApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\jupyterlab
[I 2022-08-03 03:04:52.037 LabApp] JupyterLab application directory is C:\ProgramData\Anaconda3\envs\streamlit\share\jupyter\lab
[I 2022-08-03 03:04:52.042 ServerApp] jupyterlab | extension was successfully loaded.
[I 2022-08-03 03:04:52.051 ServerApp] nbclassic | extension was successfully loaded.
[I 2022-08-03 03:04:52.052 ServerApp] Serving notebooks from local directory: C:\Users\richadmin.DESKTOP-IESK5E9\Desktop
[I 2022-08-03 03:04:52.052 ServerApp] Jupyter Server 1.18.1 is running at:
[I 2022-08-03 03:04:52.053 ServerApp] http://localhost:8888/lab?token=27f68bf3b058e67b94d7647be1723ccc3c10fdbf2ac6de51
[I 2022-08-03 03:04:52.053 ServerApp]  or http://127.0.0.1:8888/lab?token=27f68bf3b058e67b94d7647be1723ccc3c10fdbf2ac6de51
[I 2022-08-03 03:04:52.054 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2022-08-03 03:04:52.104 ServerApp]

    To access the server, open this file in a browser:
        file:///C:/Users/richadmin.DESKTOP-IESK5E9/AppData/Roaming/jupyter/runtime/jpserver-13252-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/lab?token=27f68bf3b058e67b94d7647be1723ccc3c10fdbf2ac6de51
     or http://127.0.0.1:8888/lab?token=27f68bf3b058e67b94d7647be1723ccc3c10fdbf2ac6de51
[I 2022-08-03 03:04:57.149 LabApp] Build is up to date
[W 2022-08-03 03:05:01.122 ServerApp] 404 GET /api/kernels/acee1b64-f119-481c-a9b9-3f279573a619?1659510301112 (::1): Kernel does not exist: acee1b64-f119-481c-a9b9-3f279573a619
[W 2022-08-03 03:05:01.123 ServerApp] Kernel does not exist: acee1b64-f119-481c-a9b9-3f279573a619
[W 2022-08-03 03:05:01.129 ServerApp] 404 GET /api/kernels/acee1b64-f119-481c-a9b9-3f279573a619?1659510301112 (::1) 8.98ms referer=http://localhost:8888/lab
[W 2022-08-03 03:05:06.159 ServerApp] 404 GET /api/kernels/acee1b64-f119-481c-a9b9-3f279573a619?1659510306142 (::1): Kernel does not exist: acee1b64-f119-481c-a9b9-3f279573a619
[W 2022-08-03 03:05:06.160 ServerApp] Kernel does not exist: acee1b64-f119-481c-a9b9-3f279573a619
[W 2022-08-03 03:05:06.162 ServerApp] 404 GET /api/kernels/acee1b64-f119-481c-a9b9-3f279573a619?1659510306142 (::1) 2.95ms referer=http://localhost:8888/lab
[W 2022-08-03 03:05:10.171 ServerApp] 404 GET /api/kernels/f2f523d3-9059-425f-a9dc-83f4a1672111?1659510310168 (::1): Kernel does not exist: f2f523d3-9059-425f-a9dc-83f4a1672111
[W 2022-08-03 03:05:10.172 ServerApp] Kernel does not exist: f2f523d3-9059-425f-a9dc-83f4a1672111
[W 2022-08-03 03:05:10.173 ServerApp] 404 GET /api/kernels/f2f523d3-9059-425f-a9dc-83f4a1672111?1659510310168 (::1) 2.00ms referer=http://localhost:8888/lab
[I 2022-08-03 03:07:01.412 ServerApp] New terminal with automatic name: 1
[I 2022-08-03 03:07:29.722 ServerApp] EOF on FD 1684; stopping reading
[I 2022-08-03 03:07:29.832 ServerApp] Terminal 1 closed
[W 2022-08-03 03:08:09.466 ServerApp] Notebook 00_PythonWIP_2022/02-WebDev-Realtime-PyAnalytics-Nokeri-2021/CODEMaster/SOURCE CODE CHAPTER 1 TABULATING THE DATA AND CONSTRUCTING STATIC 2D AND 3D GRAPHS.ipynb is not trusted
[I 2022-08-03 03:08:10.274 ServerApp] Kernel started: ea8b0460-36ef-404b-9076-c6eac65526f8
[W 2022-08-03 03:08:11.910 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0x0000027EF9E859A0>
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control
[IPKernelApp] WARNING | No such comm: c19d715a-073f-4146-9084-44529ea092a6
[I 2022-08-03 03:10:10.836 ServerApp] Saving file at /00_PythonWIP_2022/02-WebDev-Realtime-PyAnalytics-Nokeri-2021/CODEMaster/SOURCE CODE CHAPTER 1 TABULATING THE DATA AND CONSTRUCTING STATIC 2D AND 3D GRAPHS.ipynb
[W 2022-08-03 03:10:10.837 ServerApp] Notebook 00_PythonWIP_2022/02-WebDev-Realtime-PyAnalytics-Nokeri-2021/CODEMaster/SOURCE CODE CHAPTER 1 TABULATING THE DATA AND CONSTRUCTING STATIC 2D AND 3D GRAPHS.ipynb is not trusted

Running a fresh Anaconda Navigator installation on Windows 10.

(streamlit) C:\Windows\system32>jupyter --version Selected Jupyter core packages... IPython : 7.33.0 ipykernel : 6.15.1 ipywidgets : 7.7.1 jupyter_client : 7.3.1 jupyter_core : 4.11.1 jupyter_server : 1.18.1 jupyterlab : 3.4.4 nbclient : 0.6.6 nbconvert : 6.5.0 nbformat : 5.4.0 notebook : 6.4.12 qtconsole : 5.3.1 traitlets : 5.3.0

python --version Python 3.8.13

richlysakowski avatar Aug 03 '22 08:08 richlysakowski

We recently saw #12887 come in, which concerns a similar "Kernel does not exist" error message, though on Linux. Can you try following the (re)installation steps that @davidbrochart mentioned in that issue?

JasonWeill avatar Aug 04 '22 17:08 JasonWeill

This issue that just came in may be related: #12935 (thanks @krassowski)

@richlysakowski Try adding ?reset to the query string of your JupyterLab URI in your browser to force a reset of JupyterLab. After you do this, do you still see these errors?

JasonWeill avatar Aug 11 '22 17:08 JasonWeill

@richlysakowski I haven't heard anything from you in a couple of weeks, so I'm closing this issue. If you try the steps listed earlier and still have a problem, please reopen this issue.

JasonWeill avatar Aug 18 '22 17:08 JasonWeill