Redirect problem with Jupyterhub

280 views
Skip to first unread message

Joshua Milas

unread,
Sep 4, 2016, 9:09:49 AM9/4/16
to Project Jupyter
Hello,

I have setup a deployment of Jupyterhub although I have found a problem with testing it. When I attempt to access any resource on the page, I get stuck in a redirect loop between `/hub/login` and `/hub/home`. `/hub/login` redirects to `/hub/home`, and `/hub/home` redirects back to `/hub/login?next=%2Fhub%2Fhome`. I'm testing using Apache basic auth and I successfully authenticate. In addition I'm using Firefox and strangely, it works in Internet Explorer and in a Firefox incognito window.

I'm assuming the problem has something to do with the Jupyter proxy, but I don't know where to start looking.

Asher Wasserman

unread,
Nov 28, 2016, 2:39:08 AM11/28/16
to Project Jupyter
Hi Joshua,

I'm having what I think is the exact same issue. It works fine on Chrome and in an incognito window of Firefox, but not in a regular Firefox window.  Safari can get to the /hub/home directory tree, but is having issues starting a kernel.  Haven't tried it on IE.  I'm using a self-signed certificate, but I'm not sure if that affects how different browsers handle the requests.  Have you figured out anything more with the issue?

Asher

Asher Wasserman

unread,
Nov 29, 2016, 4:19:47 PM11/29/16
to Project Jupyter
It seems the new 0.7.0b1 release is now working for me with Firefox.  I can't find the exact issue that was causing it, but the change log mentions some redirect-loop fixes.

MinRK

unread,
Nov 30, 2016, 4:22:34 AM11/30/16
to Project Jupyter
On Tue, Nov 29, 2016 at 10:19 PM, Asher Wasserman <adwa...@ucsc.edu> wrote:
It seems the new 0.7.0b1 release is now working for me with Firefox.  I can't find the exact issue that was causing it, but the change log mentions some redirect-loop fixes.

Several of the bugfixes relate to issues that could cause redirect-loops (unfortunately, there are many classes of bugs in JupyterHub that have the same manifestation. It only requires that the Hub and single-user server disagree about whether the user is logged-in or not). There's a good chance that the cause of this is fixed in 0.7, which will go out this week.

-Min
 


On Sunday, November 27, 2016 at 11:39:08 PM UTC-8, Asher Wasserman wrote:
Hi Joshua,

I'm having what I think is the exact same issue. It works fine on Chrome and in an incognito window of Firefox, but not in a regular Firefox window.  Safari can get to the /hub/home directory tree, but is having issues starting a kernel.  Haven't tried it on IE.  I'm using a self-signed certificate, but I'm not sure if that affects how different browsers handle the requests.  Have you figured out anything more with the issue?

Asher

On Sunday, September 4, 2016 at 6:09:49 AM UTC-7, Joshua Milas wrote:
Hello,

I have setup a deployment of Jupyterhub although I have found a problem with testing it. When I attempt to access any resource on the page, I get stuck in a redirect loop between `/hub/login` and `/hub/home`. `/hub/login` redirects to `/hub/home`, and `/hub/home` redirects back to `/hub/login?next=%2Fhub%2Fhome`. I'm testing using Apache basic auth and I successfully authenticate. In addition I'm using Firefox and strangely, it works in Internet Explorer and in a Firefox incognito window.

I'm assuming the problem has something to do with the Jupyter proxy, but I don't know where to start looking.

--
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/b2e088b6-0bd0-4644-ae41-8140b9a114de%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages