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
Jupyter notebook died #149
Comments
I do not know. I would make sure all your processes involved in it are dead and then restart from scratch. |
I have done it: I tried to disconnect to the server and reconnect, I tried killing all my processes (with kill -9 -1), but nothing seems to work. I have also tried with different notebooks, but I always get the same message |
Then when I have time I will take a look. That won't be for awhile. |
Also you didn't include the hostname of the system you are doing this on. Please confirm where you are running the program for when I look at items. And the path and method you start the program. |
I am working on flh1 and running the notebook by launching |
Are you quite sure you've killed all instances? I believe your username is
If you would like I can kill all of those but you should be able to as well. |
I am matteo and yes, I killed all jobs |
Sorry, on fl-hn1 I do not show you killed all your jobs. The process table continues to have those items above with your user id. I am going to kill them for you. |
Oh wait, I've got you confused with somebody else. One moment. |
So I show over 163 processes with notebooks attached. Those can't all be active. |
It would be nice to kill those off if not active. |
So if I su to you and run the command:
A. Is that working? And if not, what are you seeing? Feel free to paste full output. |
this is what I get when I start, open a notebook, try to execute a command (the kernel dies) and exit: -bash-4.1$ jupyter notebook thanks |
Awhile I attempt to decipher that, please go try to do the exact same thing on |
I get the same error message: -bash-4.1$ jupyter notebook |
Anything change in your software tree? Nothing known changed in system environment. Please ask if others see the same thing when convenient. I am looking for possible system level causes but not finding anything concrete yet. |
I haven't changed anything since Friday (and everything was working fine then). I just arrived this morning, created a new notebook and started working on it. |
No idea whats wrong then. If others see the same issue can consider rebooting a head node to debug further. |
I'm going to strace the items from your account on fl-hn2. Please stand clear of that system.... |
it seems to be only my problem: Hurley says his notebooks work fine |
If you could place your notebook password into a file I can use to test I would appreciate it. Make it read only your account. Alternately, provide me a way to contact you to get it. I am stracing your python to see if I see anything odd. |
Also, sometimes to separate problems of "the program" v.s. "the data fed to the program" I try the same item with a fresh (empty) data directory. I don't know how easy that is (sorry, I don't use notebooks) but if you could run your current notebook code against basically an empty notebook directory it would be a useful debug step. |
Closest match on the error BTW seems to be this. |
Hey Matteo, Just thought I would let you know that my notebook is working. Really does seem to be just in your account. Weird. If I can think of something that would fix it I'll let you know. I'm not sure right now. @djakubosky uses notebooks a ton. David, have you seen this at any point? |
Hi Paul, Thank you |
OK. I'm in as your account to a session running on fl-hn2. But I assume this still isn't what you are seeing as not working. Can you give me a simple test to reproduce your issue? I have so far "logged in" and am looking at list of your files. |
I opened "heatmap_david" and got some nice lists of R commands a neato graph. But I'm unlikely to just click other items without your advice. |
Oh, and I believe you could also connect to the same instance: I am connecting with a Firefox browser. |
I tried both chrome and firefox and the problem stays. Python notebooks work fine, though, so it should be a R kernel problem. You can insert a new cell by clicking on the "+" sign and write anything ("1+1") is fine. You will see that it the kernel dies when you try to execute it. I have created a new notebook that you can use to test in notebooks/for_Paul. |
I am out BTW. I've killed the notebook I had on fl-hn2. |
ok. I will look into the gihtub issue and then will also try to re-install the R kernel and see if this solves the problem. Thanks |
If I spot anything else I will let you know. Keep it open. |
So somebody in this git issue claims its a version mismatch. There is a small script a person claims on August 4th fixed it for them. |
Note also the comment down below it "unlockBinding("base_display", displayenv) isn’t part of any code we have anymore. you somehow still have an old version…" This leans toward some kind of version mismatch again. No clue why it would suddenly appear for your code. |
so, I really don't understand why, but now it works fine. However, I could not install the pbdZMQ package (required for the notebook, but the notebook now works fine). I really no idea why it works now |
and now it doesn't work again, with a different error: Error in .External2(C_X11, paste("png::", filename, sep = ""), g$width, : |
Why would a web application be trying to connect to a remote X11 display? Check the value of your DISPLAY environment variable and remove it if for some reason its trying to spawn something back to your remote desk which is never going to work unless you've got X11 configured to allow such connections and an X11 server on your desktop. |
my $DISPLAY is already empty. |
OK. Well, somehow the PNG rendering of the server process thinks its best to do it over X11. The latency of Git is not real conducive to debugging items like this. Lets see if we can pick a time perhaps we could watch items at the same time in the next few days. I have a few pre-scheduled meetings this week, but if you pick a time I can call or Skype or something. My work hours however at Central Time Zone (2 hours ahead of yours) so mornings better. |
Ok, let's aim for tomorrow at 11 am your time. I am out sick today. Thanks! |
my skype ID is matteo_dantonio |
11 my time will not work for me as I have a 10:30 switch project with another group at UCSD. I can Skype message when that is done.... |
that would be perfect. Thanks! |
Sorry today is not likely to happen. Problems with project mentioned continue. I will Git update when done but probably means tomorrow. |
ok |
You will see a Skype request from |
Also I've reproduced your item but I believe it to be related to this Git issue for your IRkernel settings. I would try these items mentioned: Down at the bottom is a user setting that appears to say "don't try X11 PNG items". In that case it would be your config, not root as you run these as your own PID. I could attempt that but will wait for you to try it so I don't mess up other notebooks. |
I'm working on it |
Sounds good. Am around (eating lunch but around) if a shared screen helps. I will stand clear. |
I followed the suggestions in the link you sent and I added Now I get a different error, which seems to be related to cairo: Error in dev.control(displaylist = "enable") : I have found this solution: http://stackoverflow.com/questions/13793763/error-while-using-cairo-devices-in-r-on-ubuntu but it requires sudo |
but apparently, if I set |
We don't run Ubuntu. And that would be even if we did a system R library and you are running software you've built yourself. Can you add cairo support carefully to your conda tree? Saw second comment. Hooray? |
yeah! I would say we are happy. Although I still don't understand what changed between Friday night and Monday morning to start getting this error |
No changes to system software occurred (or if it did, I didn't do it and yum didn't log anything...I don't believe anyone involved in this environment would modify items outside of yum) But the fact you have a self-contained Anaconda world there might be worth looking at the concept of conda environments to control versions and save off configs. Alternately I have seen people once they get everything "clean" in their personal Anaconda tree tar'ing it up periodically as a backup. Close if desired or can dig around your conda environment. I believe there are logs. |
Only thing I see in I believe the "history" file is the previously mentioned zeromq update on the morning of the 19th. It did update I believe a ton of stuff to do that update...but I believe that is after you had issues, not before. |
that was probably when I tried to update the packages |
in the end, I deleted anaconda, I reinstalled it (with python 2.7), reinstalled the R kernel, and now everything works fine |
with this, I think we can close this issue |
Hi,
I am trying to run one of my Jupyter notebooks, but when I execute any command (can even be 1+1), I get the message
Kernel Restarting
The kernel appears to have died. It will restart automatically.
Looking in the log from the command line, I get this message:
Error in unlockBinding("base_display", displayenv) :
no binding for "base_display"
Calls: ... -> handle_shell -> -> unlockBinding
Execution halted
[I 08:26:03.366 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel 044080e4-d152-4c4b-8bb2-46d2b4b1d9fe restarted
What should I do?
Thanks!
The text was updated successfully, but these errors were encountered: