Я запускаю jupyterhub на AWS.
Я запускаю блокнот как:
ubuntu@ip-172-31-23-74:/tools$ sudo jupyter_env/bin/jupyterhub
[I 2017-10-19 17:04:14.955 JupyterHub app:849] Loading cookie_secret from /tools/jupyterhub_cookie_secret
[W 2017-10-19 17:04:14.972 JupyterHub app:966] No admin users, admin interface will be unavailable.
[W 2017-10-19 17:04:14.972 JupyterHub app:967] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2017-10-19 17:04:14.973 JupyterHub app:994] Not using whitelist. Any authenticated user will be allowed.
[W 2017-10-19 17:04:15.001 JupyterHub app:1242] luca appears to have stopped while the Hub was down
[I 2017-10-19 17:04:15.015 JupyterHub app:1539] Hub API listening on http://127.0.0.1:8081/hub/
[W 2017-10-19 17:04:15.016 JupyterHub proxy:415]
Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require restarting the proxy.
Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to avoid this message.
[W 2017-10-19 17:04:15.016 JupyterHub proxy:456] Running JupyterHub without SSL. I hope there is SSL termination happening somewhere else...
[I 2017-10-19 17:04:15.016 JupyterHub proxy:458] Starting proxy @ http://*:8000/
17:04:15.140 - warn: [ConfigProxy] Interpreting ip='*' as all-interfaces. Preferred usage is 0.0.0.0 for all IPv4 or '' for all-interfaces.
17:04:15.145 - info: [ConfigProxy] Proxying http://*:8000 to (no default)
17:04:15.146 - info: [ConfigProxy] Proxy API at http://127.0.0.1:8001/api/routes
[W 2017-10-19 17:04:15.375 JupyterHub proxy:304] Adding missing default route
[I 2017-10-19 17:04:15.375 JupyterHub proxy:370] Adding default route for Hub: / => http://127.0.0.1:8081
17:04:15.381 - info: [ConfigProxy] 200 GET /api/routes
17:04:15.384 - info: [ConfigProxy] Adding route / -> http://127.0.0.1:8081
[I 2017-10-19 17:04:15.386 JupyterHub app:1592] JupyterHub is now running at http://*:8000/
17:04:15.386 - info: [ConfigProxy] 201 POST /api/routes/
, но затем, когда я пытаюсь войти в систему:
[I 2017-10-19 17:05:42.201 JupyterHub spawner:978] Spawning /tools/jupyter_env/bin/jupyterhub-singleuser --port=59148
[I 2017-10-19 17:05:42.951 SingleUserNotebookApp singleuser:365] Starting jupyterhub-singleuser server version 0.8.0
[I 2017-10-19 17:05:42.954 JupyterHub log:122] 200 GET /hub/api (@127.0.0.1) 0.71ms
[I 2017-10-19 17:05:42.956 SingleUserNotebookApp notebookapp:1445] Serving notebooks from local directory: /home/luca
[I 2017-10-19 17:05:42.956 SingleUserNotebookApp notebookapp:1445] 0 active kernels
[I 2017-10-19 17:05:42.956 SingleUserNotebookApp notebookapp:1445] The Jupyter Notebook is running at:
[I 2017-10-19 17:05:42.957 SingleUserNotebookApp notebookapp:1445] http://127.0.0.1:59148/user/luca/
[I 2017-10-19 17:05:42.957 SingleUserNotebookApp notebookapp:1446] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2017-10-19 17:05:43.707 JupyterHub base:446] User luca took 1.600 seconds to start
[I 2017-10-19 17:05:43.709 JupyterHub proxy:231] Adding user luca to proxy /user/luca/ => http://127.0.0.1:59148
[I 2017-10-19 17:05:43.710 SingleUserNotebookApp log:122] 302 GET /user/luca/ → /user/luca/tree? (@127.0.0.1) 4.17ms
17:05:43.712 - info: [ConfigProxy] Adding route /user/luca -> http://127.0.0.1:59148
17:05:43.713 - info: [ConfigProxy] 201 POST /api/routes/user/luca
[I 2017-10-19 17:05:43.715 JupyterHub log:122] 302 POST /hub/login?next= → /hub/ (@::ffff:83.136.45.227) 1624.56ms
[I 2017-10-19 17:05:43.990 JupyterHub log:122] 302 GET /hub/ → /hub/login (@::ffff:83.136.45.227) 1.01ms
Вход перенаправляется на страницу входа.
Как я могу это решить?
Я подключен к порту 8000