connection to the notebook server could not be established

2,742 views
Skip to first unread message

Mazzaroth M.

unread,
Dec 17, 2016, 8:34:54 PM12/17/16
to Project Jupyter
I can login to jupyter but now have a different issue: I get the message: "A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration."

https://i.sli.mg/mYsp1R.png

I've confirmed that any python commands I enter have no impact to the runtime. Doing Kernel > Restart results in "Not Connected" This is in Safari, on Mac 10.11.5, Python 3.5.2  Any ideas?


Thomas Kluyver

unread,
Dec 18, 2016, 5:57:33 AM12/18/16
to Project Jupyter
Can you try with another browser, to check if the problem is in the browser or further down?

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/c6473e8e-c470-4749-a628-6e787f348f95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mazzaroth M.

unread,
Dec 18, 2016, 10:43:46 AM12/18/16
to Project Jupyter
Yes, I will try a couple of different configurations.


On Sunday, December 18, 2016 at 5:57:33 AM UTC-5, takowl wrote:
Can you try with another browser, to check if the problem is in the browser or further down?
On 18 December 2016 at 01:34, Mazzaroth M. <taoma...@gmail.com> wrote:
I can login to jupyter but now have a different issue: I get the message: "A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration."

https://i.sli.mg/mYsp1R.png

I've confirmed that any python commands I enter have no impact to the runtime. Doing Kernel > Restart results in "Not Connected" This is in Safari, on Mac 10.11.5, Python 3.5.2  Any ideas?


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.

Mazzaroth M.

unread,
Dec 18, 2016, 8:49:42 PM12/18/16
to Project Jupyter
The problem is a 403 forbidden when doing a GET request on /channels?

Please go to the gist below to see the entire request/response

https://gist.github.com/mazz/44162418e5ab87a7f95c756942607caa

Google Chrome dev tools helped me determine this. Any ideas of why this may be happening even though I authenticated with the auth token at the previous login screen? Same config except the browser is Chrome(latest).



On Sunday, December 18, 2016 at 5:57:33 AM UTC-5, takowl wrote:
Can you try with another browser, to check if the problem is in the browser or further down?
On 18 December 2016 at 01:34, Mazzaroth M. <taoma...@gmail.com> wrote:
I can login to jupyter but now have a different issue: I get the message: "A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration."

https://i.sli.mg/mYsp1R.png

I've confirmed that any python commands I enter have no impact to the runtime. Doing Kernel > Restart results in "Not Connected" This is in Safari, on Mac 10.11.5, Python 3.5.2  Any ideas?


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.

Mazzaroth M.

unread,
Dec 18, 2016, 9:00:28 PM12/18/16
to Project Jupyter

Thomas Kluyver

unread,
Dec 19, 2016, 5:38:37 AM12/19/16
to Project Jupyter
Can you check in the browser to see if the page has any cookies? Once you've used the token, it should set a cookie to authenticate you.

After that, the next thing I can think of is to put debugging print() calls into this method to see what's going on:
https://github.com/jupyter/notebook/blob/4.3.0/notebook/auth/login.py#L130

To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

MinRK

unread,
Dec 19, 2016, 7:33:27 AM12/19/16
to Project Jupyter
Chrome results in the same thing? It seems like the cookie setting has to be failing somehow, but I see the cookie in the headers. Can you reproduce this in a Private Browsing or Incognito window?

-Min

Mazzaroth M.

unread,
Dec 21, 2016, 8:26:45 PM12/21/16
to Project Jupyter
How do add logging to the runtime? I installed jupyter into a virtualenv, so what would be the path to that login.py file?

Mazzaroth M.

unread,
Dec 21, 2016, 8:31:00 PM12/21/16
to Project Jupyter
I can reproduce the issue in a Chrome Incognito window.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages