jupyter / jupyter/notebook

Proxy not forwarding to correct notebook server

Open
#2,945 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

I am trying to setup Jupyterhub on AWS but I keep running into an issue where the notebook server is spawned correctly. The IP published on the logs are correct and I am able to visit the public port of the notebook server. But the url `/user//` doesn't forward to the notebook server correctly. I am wondering what else I am missing here.
```

[I 2017-10-18 12:13:27.930 JupyterHub base:446] User gbalaraman took 3.381 seconds to start
[I 2017-10-18 12:13:27.931 JupyterHub proxy:231] Adding user gbalaraman to proxy /user/gbalaraman/ => http://:32773
12:13:27.971 - info: [ConfigProxy] Adding route /user/gbalaraman -> http://:32773
12:13:27.972 - info: [ConfigProxy] 201 POST /api/routes/user/gbalaraman
[I 2017-10-18 12:13:27.976 JupyterHub log:122] 302 GET /hub/user/gbalaraman/ → /user/gbalaraman/?redirects=1 (gbalaraman@::ffff:4**.1*8.**7.**1) 3428.58ms
[I 2017-10-18 12:17:33.139 JupyterHub log:122] 302 GET /static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=d172b560b073f3bc42fea160bbff96a2 → /hub/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=d172b560b073f3bc42fea160bbff96a2 (@::ffff:4**.1*8.**7.**1) 0.55ms
[I 2017-10-18 12:17:33.145 JupyterHub log:122] 302 GET /static/style/style.min.css?v=fd2220be4cc17416b538bf7fb9ae2339 → /hub/static/style/style.min.css?v=fd2220be4cc17416b538bf7fb9ae2339 (@::ffff:4**.1*8.**7.**1) 0.41ms
[I 2017-10-18 12:17:33.146 JupyterHub log:122] 302 GET /static/custom/custom.css?v=900035aa0c126bb85df55c5b3e51b6f1 → /hub/static/custom/custom.css?v=900035aa0c126bb85df55c5b3e51b6f1 (@::ffff:4**.1*8.**7.**1) 0.35ms
[I 2017-10-18 12:17:33.148 JupyterHub log:122] 302 GET /static/components/requirejs/require.js?v=07d7db4d3fd6519996822665e4239282 → /hub/static/components/requirejs/require.js?v=07d7db4d3fd6519996822665e4239282 (@::ffff:4**.1*8.**7.**1) 0.35ms
[W 2017-10-18 12:17:33.222 JupyterHub log:122] 404 GET /hub/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=d172b560b073f3bc42fea160bbff96a2 (@::ffff:4**.1*8.**7.**1) 0.63ms
[W 2017-10-18 12:17:33.226 JupyterHub log:122] 404 GET /hub/static/style/style.min.css?v=fd2220be4cc17416b538bf7fb9ae2339 (@::ffff:4**.1*8.**7.**1) 0.43ms
```

I think there is an issue with the way proxy server is configured. Not sure how to address it. Would appreciate any help with this.

`

Contributor guide

Open the contributing guide

Research direction

Start with the JupyterHub proxy route and AWS deployment configuration described in the logs, especially the /user// route and the redirects to /hub/static/. Reproduce the routing and static-asset requests, then verify that the user URL reaches the notebook server without the reported 404 responses.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, jupyter-notebook
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.