-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
sessionmanager KeyError when restarting kernel #2900
Comments
What prompted the restart? Is there a chance that the kernel had died? Did they perhaps request restart multiple times in quick succession? Hunch without looking at the code: kernel could have died and the session been deleted, then restart could raise KeyError (though I would expect a 404). |
Just got the same error when restarting a jupyter-scala kernel. Similar setup to @parente: Notebook 5.1.0, Python 3.6 from Anaconda 5.0.0.1. |
From the anecdotal evidence I have: kernel was still alive and the user may have done a restart twice in quick succession. |
We get this error periodically when first navigating to a new notebook. It will show "Kernel Error" with the bomb icon. Logs show this:
Compared to a healthy kernel startup log, it appears these lines are missing from this unhealthy kernel log:
When refreshing the page, everything else is back to normal, as if it were a race condition between the sessions POST and the kernel startup lifecycle itself. Has anyone seen the same? Jupyter 5.6.0 on nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04 |
Was this fixed in #4219? It seems like #4209 was a duplicate of this. Anyway, just encountered this when launching a Binder notebook at https://github.com/scikit-image/skimage-tutorials. The notebook version there appears to be 5.7.8. Has #4219 made it to that release? |
Although the fix in #4219 was to accommodate culled kernel behavior, a nicer error message should be produced regardless - which you are not receiving. Since culling was, I believe, implemented after this issue was created, I do not believe its necessarily a duplicate - especially since it doesn't appear your kernel was culled. FWIW, I have confirmed that #4219 is not in 5.7.8. |
One of our internal users received the following traceback when restarting a metakernel based kernel via the Kernel -> Restart menu item. The traceback appeared in a popup dialog over the notebook page.
Notebook 5.1.0 final running in Python 3.6.
The text was updated successfully, but these errors were encountered: