After some testing with different browsers (Firefox, Safari) it seems to be an issue with Google Chrome.
On Monday, July 10, 2017 at 3:21:33 PM UTC-5, [email protected] wrote: > > Hello, > > Has anyone encountered a problem with JupyterHub and Nginx redirecting a > user to the login page when they click on a file Jupyterhub does not > recognize? > > Current setup > - JupyterHub 0.7.2 > - Python 3.5.3 > - Anaconda 4.4.0 (64-bit) > - Nginx 1.10.x > > > JupyterHub is running on a separate server from nginx and I am using > default ports such as 8000, 8081, etc. I can connect directly to > jupyterhub proxy on port 8000 (with a browser) without issue and perform > task such as creating, editing, and running Notebooks (python 2, python 3, > Bast, R). I can create files, download files, and upload files. > > The problem I am encountering is when I place nginx in front of jupyterhub > port 800 I can perform all the above functions except download a file with > a extension jupyterhub is not aware of. When I click on a file such as > "test.mytest" , "attach", or "test" I am redirected to the login page. > > Looking through the logs I found a "No token cookie" that seem to be the > problem > > [D 2017-07-10 18:55:12.887 testuserA auth:286] Allowing whitelisted Hub > user testuserA > [D 2017-07-10 18:55:12.887 testuserA handlers:210] Using contents: > services/contents > [D 2017-07-10 18:55:12.888 testuserA log:47] 200 GET /user/testuserA/view/ > bin/attach (192.168.1.10) 1.58ms > [D 2017-07-10 18:55:12.925 testuserA auth:221] No token cookie > [I 2017-07-10 18:55:12.925 testuserA log:47] 302 GET /user/testuserA/files > /bin/attach (192.168.1.10) 0.67ms > [W 2017-07-10 13:55:12.942 JupyterHub pages:41] Redirecting /hub/?next=% > 2Fuser%2FtestuserA%2Ffiles%2Fbin%2Fattach to /hub/user/testuserA/files/bin > /attach. For sharing public links, use /user-redirect/ > [I 2017-07-10 13:55:12.945 JupyterHub log:100] 302 GET /hub/?next=%2Fuser% > 2FtestuserA%2Ffiles%2Fbin%2Fattach (@192.168.1.10) 1.53ms > [I 2017-07-10 13:55:12.954 JupyterHub log:100] 302 GET /hub/user/testuserA > /files/bin/attach (@192.168.1.10) 1.01ms > [I 2017-07-10 13:55:12.961 JupyterHub log:100] 200 GET /hub/login?next=% > 2Fhub%2Fuser%2FtestuserA%2Ffiles%2Fbin%2Fattach (@192.168.1.10) 1.20ms > > > The documents I used to set this up are > > Install and configure Jupyter > - > https://github.com/jupyterhub/jupyterhub/blob/master/docs/source/getting-started.md#installation > - http://jupyterhub.readthedocs.io/en/latest/quickstart.html > > Nginx config > > - http://jupyterhub.readthedocs.io/en/latest/config-examples.html > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/c5e4350d-a807-40c1-bd5b-d050f947e847%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
