jupyterlab-hub icon indicating copy to clipboard operation
jupyterlab-hub copied to clipboard

Starting the container using "jupyter labhub" results in password prompts in the browser

Open orlenok41 opened this issue 7 years ago • 0 comments

I am having troubles installing the jupyterlab-hub extension.

In my setup (simple docker hosts), jupyterhub sits behind a reverse proxy and uses the RemoteUserLocalAuthenticator for authentication.

I was able to install the extension without any issues. When using the "jupyterhub-singleuser" command to start the container, everything is working fine. The moment I switch this to "jupyter labhub" to activate the extension, I get prompts for user/password after starting a server and results in a lot of 401 errors in javascript.

I don't see anything suspicious in the logs, here are the ones from jupyterhub:

[I 2018-08-03 19:44:45.671 JupyterHub dockerspawner:452] Container 'jupyter-XXXXXX' is gone [I 2018-08-03 19:44:46.379 JupyterHub dockerspawner:540] Created container 'jupyter-XXXXXX' (id: 4aebf8b) from image image_name [I 2018-08-03 19:44:46.379 JupyterHub dockerspawner:557] Starting container 'jupyter-XXXXXX' (id: 4aebf8b) [I 2018-08-03 19:44:51.507 JupyterHub log:158] 200 GET /hub/api (@172.17.0.2) 1.04ms [I 2018-08-03 19:44:54.837 JupyterHub base:628] User XXXXXX took 9.238 seconds to start [I 2018-08-03 19:44:54.838 JupyterHub proxy:242] Adding user XXXXXX to proxy /user/XXXXXX/ => http://127.0.0.1:32787 [I 2018-08-03 19:44:54.842 JupyterHub log:158] 302 GET /hub/user/XXXXXX/ -> /user/XXXXXX/?redirects=1 ([email protected]) 9254.04ms [I 2018-08-03 19:44:54.930 JupyterHub log:158] 302 GET /hub/api/oauth2/authorize?client_id=jupyterhub-user-XXXXXX&redirect_uri=%2Fuser%2FXXXXXX%2Foauth_callback&response_type=code&state=[secret] -> /user/XXXXXX/oauth_callback?code=[secret]&state=[secret] ([email protected]) 19.53ms [I 2018-08-03 19:44:54.981 JupyterHub log:158] 200 POST /hub/api/oauth2/token ([email protected]) 19.17ms [I 2018-08-03 19:44:55.001 JupyterHub log:158] 200 GET /hub/api/authorizations/token/[secret] ([email protected]) 12.95ms

Below are the ones from the container:

2018-08-03T19:44:55.311858+00:00 hostname dockerd:image_name/jupyter-XXXXXX/4aebf8b030a7[3284]: [D 2018-08-03 19:44:55.311 SingleUserLabApp auth:764] Allowing Hub admin XXXXXX 2018-08-03T19:44:55.312085+00:00 hostname dockerd:image_name/jupyter-XXXXXX/4aebf8b030a7[3284]: [D 2018-08-03 19:44:55.311 SingleUserLabApp handlers:770] Path main.55a1179f0d20b272a3a4.js.map served from /path/to/conda/env/share/jupyter/lab/static/main.55a1179f0d20b272a3a4.js.map 2018-08-03T19:44:55.312655+00:00 hostname dockerd:image_name/jupyter-XXXXXX/4aebf8b030a7[3284]: [D 2018-08-03 19:44:55.312 SingleUserLabApp log:158] 304 GET /user/XXXXXX/lab/static/main.55a1179f0d20b272a3a4.js.map ([email protected]) 1.48ms 2018-08-03T19:44:55.372113+00:00 hostname dockerd:image_name/jupyter-XXXXXX/4aebf8b030a7[3284]: [D 2018-08-03 19:44:55.371 SingleUserLabApp log:158] 200 GET /user/XXXXXX/lab/static/vendors~main.1dacd6759d91e3d568f7.js.map ([email protected]) 94.99ms

Any thoughts / advice on what might be causing this / how to debug?

Thanks!

orlenok41 avatar Aug 03 '18 20:08 orlenok41