-
Notifications
You must be signed in to change notification settings - Fork 2k
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
WebSocketClosedError #248
Comments
That line seems somewhat telling. Is this JupyterHub or a pure IPython/Jupyter notebook server? Where do you have this set up, your local machine or somewhere on the internet? Is there any kind of proxy in front of it? |
The timeout is for 90 seconds but the code execution on my local without IPython/Jupyter takes only 60 seconds. Additional information {
"display_name": "IPython (Python 2)",
"language": "python",
"codemirror_mode": {
"version": 3,
"name": "ipython"
},
"argv": [
"python2", "-c", "from IPython.kernel.zmq.kernelapp import main; main()", "-f", "{connection_file}"
]
}``` |
Bump - any word on this, we are experiencing as well. |
Do you see the same error when connecting from localhost? Are there any firewalls or other corporate meddlers on your LAN? |
I tried running the same note book on local. It returned the same error on console. |
|
The timeout should be unrelated to code execution. It's a websocket ping from the server to the client. What browser and version are you using? And what tornado version ( |
Did anyone find a solution to this? Below is my error log:
|
I have the same issue on Windows 7 running locally. |
Is there any update on this? I am facing the same issue with my notebook. |
Same issue here, executing long-running code in a long-lived Jupyter notebook running on a remote server. |
@arsturges are you seeing it with JupyterHub or a regular notebook server? What browser is everyone using? This seems like a failure to properly implement the websocket protocol by some agent involved. The most likely candidate for this is an intermediate service, such as a proxy or firewall. Load due to computation in the kernel should really have no effect on this unless it's actually consuming all of the CPU and/or memory of the system, not allowing any other process on the machine to take even basic actions. |
I am using chrome on a regular notebook server.
|
@minrk I am running Jupyter notebook server, not JupyterHub, and using Chrome.
|
I have same issue on long-running code. I use Chrome on Ubuntu 15. The server is running locally.
|
Same issue here, running python 2.7 and the latest version of Jupyter notebook on Yosemite. Everything is local. I don't have this problem running the same code on Mavericks. I've tried restoring previous versions of Ipython but those still give the timeout. |
I faced the same issue 3 times with long running kernel. Is there any fix or workaround? Any way to retrieve the old kernel if it's not dead? I was connected remotely to a jupter running on AWS server. I was training a deep neural network, then probably after 40-50 minutes the connection died. Lost my weights worth 3 hours of training :( [W 17:52:06.488 NotebookApp] WebSocket ping timeout after 119861 ms. Update: |
I also have this issue. |
Same issue here. Chrome. Virtualenv. Getting the following traceback in debug mode. I'm only getting this when I'm running Keras (neural network library). |
Similar issue here, running long jobs overnight on a jupyter notebook running in a container in AWS.
Kernel restarts and I lose I already calculated. |
I have the same issue - I'm running a jupyter notebook on a remote machine, connecting to it via ssh -L and using chrome. After I leave a long simulation running overnight in the jupyter notebook I return to it the next morning to see the kernel has died with the following error message: [W 18:29:56.824 NotebookApp] WebSocket ping timeout after 119998 ms. |
I also have this issue. Anyone have thoughts on how to work around this? |
same issue here, occurs when the code going through large loops and printing too much. I'm running locally and using OSX El Capitan and Chrome. Python 2.7 Anaconda setup. |
@minrk This issue seems related to notebook server vs JupyterHub specific. Should we close this here and add a link to refer to: jupyter/notebook#1164? |
I encountered this problem on notebook server only. |
Closing as a duplicate of jupyter/notebook#1164 |
Move whitelist & admin options under 'auth'
Hi,
We ran a piece of code on a Jupyter notebook and it returned an error on the console. I am attaching the error log below. The notebook crashes (loses contact with the kernel) and any further step requires us to restart the kernel and rerun all the cells from the beginning. I saw that there was a timeout warning WebSocket ping timeout after 90000 ms. I tried running the same code using the python terminal. It completed the computation within 60 second. Has anyone faced a similar issue before? Is there any way to work around this?
Note: The code is basically 3 nested for loops (320,240,68 respectively) with some basic linear algebra and arithmetic operations. The code itself is not heavy but we saw that it seems to work fine if my loops are of a smaller size (less than 100 for each loop).
Error log:
System info:
Python:
Python3:
Numpy version: 1.9.2
Tornado version: I tried to
print tornado.__version__
but it ran into an error saying:AttributeError: 'module' object has no attribute '__version__'
(underscores around version are not visible due to markdown formatting)The text was updated successfully, but these errors were encountered: