bash_kernel icon indicating copy to clipboard operation
bash_kernel copied to clipboard

Connecting to kernel error

Open hades1302 opened this issue 4 years ago • 3 comments

When I open jupyter notebook for Bash, the n/b shows connecting to kernel in orange box but the bash kernel is never ready.

hades1302 avatar Jan 21 '20 19:01 hades1302

Did you manage to solve it? I have a similar issue. When running on JupyterHub sometimes the kernel seems to be working properly while others it hangs and is never ready.

I have requested in the JupyteHub forum but still no answer or idea :(

jlanza avatar Nov 02 '22 14:11 jlanza

I've seen this occasionally when a previous cell was either incomplete[0] or was swallowing stdin[1]. When this next occurs, please try restarting the kernel, and if the problem persists then post the logs from juptyer (which should contain any bash_kernel errors).

[0]: e.g. something like for x in 1 2 3; do echo $x; with no trailing done, or a string without a closing quote. [1]: e.g. something like cat > file, in which cat will swallow stdin and therefore all input from bash_kernel.

kdm9 avatar Nov 03 '22 07:11 kdm9

I've seen this occasionally when a previous cell was either incomplete[0] or was swallowing stdin[1]. When this next occurs, please try restarting the kernel, and if the problem persists then post the logs from juptyer (which should contain any bash_kernel errors).

[0]: e.g. something like for x in 1 2 3; do echo $x; with no trailing done, or a string without a closing quote. [1]: e.g. something like cat > file, in which cat will swallow stdin and therefore all input from bash_kernel.

It seems it is not of the cases. When I click on the terminal button, in stead of showing the terminal, the screen is blank. If I open a tab with a Bash notebook and type ls it doesn't show anything. Don't know if this is the same issue, but in the logs I don't manage to get any log from kernel or similar. Could you please point me out how to get the most verbose log output from JupyterHub so I can post it here?

jlanza avatar Nov 03 '22 13:11 jlanza