New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JupyterHub integration with Jupyter Enterprise Gateway #2147

Closed
amangarg96 opened this Issue Sep 13, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@amangarg96
Copy link

amangarg96 commented Sep 13, 2018

I'm trying to integrate JupyterHub with Jupyter Enterprise Gateway to launch remote IPython kernels on YARN.

Setup:

Server1 (JupyterHub and Jupyter Notebook server/Jupyter Lab)
This server hosts the Jupyter Hub which spawns the single-user Notebook servers locally (on server 1) itself.

Server2 (Jupyter Enterprise Gateway)
Jupyter Enterprise Gateway is launched here, which launches kernels on the Spark Cluster.

The Jupyter Notebook Server interacts with the JEG using nb2kg extension, and JEG launches (is intended to launch) kernels on the Apache Spark Cluster.

The Jupyter Notebook Server's interaction with the JEG is mentioned in #435, which is working and has been tested.

jupyterhub_config.py:

c = get_config()

c.Spawner.default_url = '/lab'
c.LocalAuthenticator.create_system_users = True

c.JupyterHub.authenticator_class = 'jupyterhub.auth.PAMAuthenticator'

c.Spawner.debug = True

jupyter_notebook_config.py:

from nb2kg import managers
c = get_config()

c.NotebookApp.session_manager_class=managers.SessionManager
c.NotebookApp.kernel_manager_class=managers.RemoteKernelManager
c.NotebookApp.kernel_spec_manager_class=managers.RemoteKernelSpecManager

First, the Jupyter Enterprise Gateway was launched using
jupyter enterprisegateway --ip=*

Then, JupyterHub was launched using
jupyterhub --ip=* --port=8080 -f /home/aman.garg/jupyterhub_config.py

Stack trace from Jupyterhub:

[D 2018-09-13 17:45:41.162 JupyterHub application:555] Looking for /Users/aman.garg/.jupyter/jupyterhub_config in /Users/aman.garg
[D 2018-09-13 17:45:41.162 JupyterHub application:577] Loaded config file: /Users/aman.garg/.jupyter/jupyterhub_config.py
[I 2018-09-13 17:45:41.164 JupyterHub app:1667] Using Authenticator: jupyterhub.auth.PAMAuthenticator-0.9.2
[I 2018-09-13 17:45:41.164 JupyterHub app:1667] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-0.9.2
[I 2018-09-13 17:45:41.168 JupyterHub app:1014] Loading cookie_secret from /Users/aman.garg/jupyterhub_cookie_secret
[D 2018-09-13 17:45:41.174 JupyterHub app:1069] Connecting to db: sqlite:///jupyterhub.sqlite
[D 2018-09-13 17:45:41.207 JupyterHub orm:685] database schema version found: 896818069c98
[I 2018-09-13 17:45:41.212 JupyterHub proxy:431] Generating new CONFIGPROXY_AUTH_TOKEN
[W 2018-09-13 17:45:41.213 JupyterHub app:1171] No admin users, admin interface will be unavailable.
[W 2018-09-13 17:45:41.213 JupyterHub app:1172] Add any administrative users to c.Authenticator.admin_users in config.
[I 2018-09-13 17:45:41.213 JupyterHub app:1199] Not using whitelist. Any authenticated user will be allowed.
[D 2018-09-13 17:45:41.255 JupyterHub app:1471] Loading state for aman.garg from db
[D 2018-09-13 17:45:41.258 JupyterHub app:1487] Loaded users:
aman.garg
[W 2018-09-13 17:45:41.260 JupyterHub app:1513] Deleting OAuth client jupyterhub-user-aman.garg
[I 2018-09-13 17:45:41.273 JupyterHub app:1849] Hub API listening on http://127.0.0.1:8081/hub/
[W 2018-09-13 17:45:41.274 JupyterHub proxy:560] Running JupyterHub without SSL. I hope there is SSL termination happening somewhere else...
[I 2018-09-13 17:45:41.274 JupyterHub proxy:562] Starting proxy @ http://:8888/
[D 2018-09-13 17:45:41.275 JupyterHub proxy:563] Proxy cmd: ['configurable-http-proxy', '--ip', '', '--port', '8888', '--api-ip', '127.0.0.1', '--api-port', '8001', '--error-target', 'http://127.0.0.1:8081/hub/error']
[D 2018-09-13 17:45:41.279 JupyterHub proxy:512] Writing proxy pid file: jupyterhub-proxy.pid
17:45:41.679 - info: [ConfigProxy] Proxying http://*:8888 to (no default)
17:45:41.682 - info: [ConfigProxy] Proxy API at http://127.0.0.1:8001/api/routes
[D 2018-09-13 17:45:41.706 JupyterHub proxy:598] Proxy started and appears to be up
[D 2018-09-13 17:45:41.706 JupyterHub proxy:296] Fetching routes to check
[D 2018-09-13 17:45:41.707 JupyterHub proxy:678] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
17:45:41.715 - info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 17:45:41.716 JupyterHub proxy:301] Checking routes
[I 2018-09-13 17:45:41.716 JupyterHub proxy:370] Adding default route for Hub: / => http://127.0.0.1:8081
[D 2018-09-13 17:45:41.716 JupyterHub proxy:678] Proxy: Fetching POST http://127.0.0.1:8001/api/routes/
17:45:41.718 - info: [ConfigProxy] Adding route / -> http://127.0.0.1:8081
17:45:41.719 - info: [ConfigProxy] 201 POST /api/routes/
[I 2018-09-13 17:45:41.719 JupyterHub app:1906] JupyterHub is now running at http://:8888/
[I 2018-09-13 17:45:43.880 JupyterHub log:158] 302 GET /user/aman.garg/api/contents/?content=1&1536840943867 -> /hub/user/aman.garg/api/contents/?content=1&1536840943867 (@::1) 1.23ms
[W 2018-09-13 17:45:43.888 JupyterHub base:242] Invalid or expired cookie token
[E 2018-09-13 17:45:43.889 JupyterHub web:1670] Uncaught exception GET /hub/user/aman.garg/api/contents/?content=1&1536840943867 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/hub/user/aman.garg/api/contents/?content=1&1536840943867', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 961, in get
if "api" in user_path.split("/") and not user.active:
AttributeError: 'NoneType' object has no attribute 'active'

[D 2018-09-13 17:45:43.892 JupyterHub base:880] No template for 500
[E 2018-09-13 17:45:43.925 JupyterHub log:150] {
"X-Forwarded-Host": "localhost:8888",
"X-Forwarded-Proto": "http",
"X-Forwarded-Port": "8888",
"X-Forwarded-For": "::1",
"Cookie": "jupyterhub-hub-login="2|1:0|10:1536839949|20:jupyterhub-hub-login|44:ZGJjZWZhMWIxZDg0NGUwZmFhNGZmMDAzZDgzMmRhNGU=|6014fbe8e3d7af4f3ddf7a52d7ad8125052e01d2a17573a1649611e355637d35"; _xsrf=2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220; username-localhost-9000="2|1:0|10:1534858349|23:username-localhost-9000|44:ZTg5ZjhiNzE1YTRhNDBjYzlhNjYzYjUyMTdlOTRlN2M=|2f81cd64728b2bc8331734e05f7d1beaa184984636a62075e191514146725217"; username-localhost-8085="2|1:0|10:1534946451|23:username-localhost-8085|44:ZWM2ZDBkZTU2MTlmNDE1NThhYzc3YWY0MWQ0MDY1MGE=|ab56d8dcecd2e31f7cc734b48fbb3c726d23a7f787c460ae6dd9ae51a59413da"; jupyterhub-session-id=ce482d6ec67044cdb32974bbe3f0444b; username-localhost-8888="2|1:0|10:1536835429|23:username-localhost-8888|44:Y2U2MTljMjI3ODZlNDRjYmEyNzQ3YWNiZDBiMDA5YjE=|941f03165f39b4c114d20f54f7e8728905631e7ba157cfdf50952fdbe492b5e5"; username-localhost-8890="2|1:0|10:1536835837|23:username-localhost-8890|44:MWFmZTU1YmJmYmIxNDUwZGFiZTUyNTgzMTFjZmMzYTI=|6bb52486f7d613cfb3e5e93ddfdf0669724ef1d4fbb31dd40bc46327ecff8c73"; username-localhost-8889="2|1:0|10:1536836756|23:username-localhost-8889|44:NDIxYmI5MDA5MjQxNDkyYzk1ZWU5M2M0ZmJiZmMxYTA=|f2789b4eb72157e4c873e03dc29616c1da02e92b9bce64d7bc1a61bda87bb9a7"",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Referer": "http://localhost:8888/user/aman.garg/lab?redirects=1",
"Accept": "/",
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"X-Xsrftoken": "2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220",
"Connection": "close",
"Host": "localhost:8888"
}
[E 2018-09-13 17:45:43.925 JupyterHub log:158] 500 GET /hub/user/aman.garg/api/contents/?content=1&1536840943867 (@::1) 36.99ms
[I 2018-09-13 17:45:45.378 JupyterHub log:158] 302 GET /user/aman.garg/api/sessions?1536840945372 -> /hub/user/aman.garg/api/sessions?1536840945372 (@::1) 0.69ms
[I 2018-09-13 17:45:45.380 JupyterHub log:158] 302 GET /user/aman.garg/api/terminals?1536840945373 -> /hub/user/aman.garg/api/terminals?1536840945373 (@::1) 0.62ms
[E 2018-09-13 17:45:45.383 JupyterHub web:1670] Uncaught exception GET /hub/user/aman.garg/api/sessions?1536840945372 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/hub/user/aman.garg/api/sessions?1536840945372', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 961, in get
if "api" in user_path.split("/") and not user.active:
AttributeError: 'NoneType' object has no attribute 'active'

[D 2018-09-13 17:45:45.383 JupyterHub base:880] No template for 500
[E 2018-09-13 17:45:45.384 JupyterHub log:150] {
"X-Forwarded-Host": "localhost:8888",
"X-Forwarded-Proto": "http",
"X-Forwarded-Port": "8888",
"X-Forwarded-For": "::1",
"Cookie": "_xsrf=2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220; username-localhost-9000="2|1:0|10:1534858349|23:username-localhost-9000|44:ZTg5ZjhiNzE1YTRhNDBjYzlhNjYzYjUyMTdlOTRlN2M=|2f81cd64728b2bc8331734e05f7d1beaa184984636a62075e191514146725217"; username-localhost-8085="2|1:0|10:1534946451|23:username-localhost-8085|44:ZWM2ZDBkZTU2MTlmNDE1NThhYzc3YWY0MWQ0MDY1MGE=|ab56d8dcecd2e31f7cc734b48fbb3c726d23a7f787c460ae6dd9ae51a59413da"; jupyterhub-session-id=ce482d6ec67044cdb32974bbe3f0444b; username-localhost-8888="2|1:0|10:1536835429|23:username-localhost-8888|44:Y2U2MTljMjI3ODZlNDRjYmEyNzQ3YWNiZDBiMDA5YjE=|941f03165f39b4c114d20f54f7e8728905631e7ba157cfdf50952fdbe492b5e5"; username-localhost-8890="2|1:0|10:1536835837|23:username-localhost-8890|44:MWFmZTU1YmJmYmIxNDUwZGFiZTUyNTgzMTFjZmMzYTI=|6bb52486f7d613cfb3e5e93ddfdf0669724ef1d4fbb31dd40bc46327ecff8c73"; username-localhost-8889="2|1:0|10:1536836756|23:username-localhost-8889|44:NDIxYmI5MDA5MjQxNDkyYzk1ZWU5M2M0ZmJiZmMxYTA=|f2789b4eb72157e4c873e03dc29616c1da02e92b9bce64d7bc1a61bda87bb9a7"",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Referer": "http://localhost:8888/user/aman.garg/lab?redirects=1",
"Accept": "/",
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"X-Xsrftoken": "2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220",
"Connection": "close",
"Host": "localhost:8888"
}
[E 2018-09-13 17:45:45.384 JupyterHub log:158] 500 GET /hub/user/aman.garg/api/sessions?1536840945372 (@::1) 2.13ms
[E 2018-09-13 17:45:45.386 JupyterHub web:1670] Uncaught exception GET /hub/user/aman.garg/api/terminals?1536840945373 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/hub/user/aman.garg/api/terminals?1536840945373', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 961, in get
if "api" in user_path.split("/") and not user.active:
AttributeError: 'NoneType' object has no attribute 'active'

[D 2018-09-13 17:45:45.386 JupyterHub base:880] No template for 500
[E 2018-09-13 17:45:45.387 JupyterHub log:150] {
"X-Forwarded-Host": "localhost:8888",
"X-Forwarded-Proto": "http",
"X-Forwarded-Port": "8888",
"X-Forwarded-For": "::1",
"Cookie": "_xsrf=2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220; username-localhost-9000="2|1:0|10:1534858349|23:username-localhost-9000|44:ZTg5ZjhiNzE1YTRhNDBjYzlhNjYzYjUyMTdlOTRlN2M=|2f81cd64728b2bc8331734e05f7d1beaa184984636a62075e191514146725217"; username-localhost-8085="2|1:0|10:1534946451|23:username-localhost-8085|44:ZWM2ZDBkZTU2MTlmNDE1NThhYzc3YWY0MWQ0MDY1MGE=|ab56d8dcecd2e31f7cc734b48fbb3c726d23a7f787c460ae6dd9ae51a59413da"; jupyterhub-session-id=ce482d6ec67044cdb32974bbe3f0444b; username-localhost-8888="2|1:0|10:1536835429|23:username-localhost-8888|44:Y2U2MTljMjI3ODZlNDRjYmEyNzQ3YWNiZDBiMDA5YjE=|941f03165f39b4c114d20f54f7e8728905631e7ba157cfdf50952fdbe492b5e5"; username-localhost-8890="2|1:0|10:1536835837|23:username-localhost-8890|44:MWFmZTU1YmJmYmIxNDUwZGFiZTUyNTgzMTFjZmMzYTI=|6bb52486f7d613cfb3e5e93ddfdf0669724ef1d4fbb31dd40bc46327ecff8c73"; username-localhost-8889="2|1:0|10:1536836756|23:username-localhost-8889|44:NDIxYmI5MDA5MjQxNDkyYzk1ZWU5M2M0ZmJiZmMxYTA=|f2789b4eb72157e4c873e03dc29616c1da02e92b9bce64d7bc1a61bda87bb9a7"",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Referer": "http://localhost:8888/user/aman.garg/lab?redirects=1",
"Accept": "/",
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"X-Xsrftoken": "2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220",
"Connection": "close",
"Host": "localhost:8888"
}
[E 2018-09-13 17:45:45.387 JupyterHub log:158] 500 GET /hub/user/aman.garg/api/terminals?1536840945373 (@::1) 2.09ms
[I 2018-09-13 17:45:48.942 JupyterHub log:158] 302 GET / -> /hub (@::1) 0.56ms
[I 2018-09-13 17:45:48.949 JupyterHub log:158] 302 GET /hub -> /hub/ (@::1) 0.96ms
[I 2018-09-13 17:45:48.955 JupyterHub log:158] 302 GET /hub/ -> /hub/login (@::1) 0.59ms
[I 2018-09-13 17:45:48.968 JupyterHub log:158] 200 GET /hub/login (@::1) 7.77ms
[D 2018-09-13 17:45:53.558 JupyterHub base:362] Setting cookie for aman.garg: jupyterhub-hub-login
[D 2018-09-13 17:45:53.558 JupyterHub base:357] Setting cookie jupyterhub-hub-login: {'httponly': True, 'path': '/hub/'}
[I 2018-09-13 17:45:53.558 JupyterHub base:499] User logged in: aman.garg
[I 2018-09-13 17:45:53.559 JupyterHub log:158] 302 POST /hub/login?next= -> /user/aman.garg/ (aman.garg@::1) 88.10ms
[I 2018-09-13 17:45:53.565 JupyterHub log:158] 302 GET /user/aman.garg/ -> /hub/user/aman.garg/ (@::1) 0.74ms
[D 2018-09-13 17:45:53.575 JupyterHub user:190] Creating <class 'jupyterhub.spawner.LocalProcessSpawner'> for aman.garg:
[D 2018-09-13 17:45:53.577 JupyterHub base:603] Initiating spawn for aman.garg
[D 2018-09-13 17:45:53.577 JupyterHub base:609] 0/100 concurrent spawns
[D 2018-09-13 17:45:53.577 JupyterHub base:612] 0 active servers
[I 2018-09-13 17:45:53.607 JupyterHub spawner:1099] Spawning jupyterhub-singleuser --port=61731 '--NotebookApp.default_url="/lab"' --debug
[D 2018-09-13 17:45:53.636 JupyterHub spawner:850] Polling subprocess every 30s
[D 2018-09-13 17:45:54.110 SingleUserNotebookApp application:177] Searching ['/Users/aman.garg', '/Users/aman.garg/.jupyter', '/Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2018-09-13 17:45:54.111 SingleUserNotebookApp application:555] Looking for jupyter_config in /etc/jupyter
[D 2018-09-13 17:45:54.111 SingleUserNotebookApp application:555] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2018-09-13 17:45:54.112 SingleUserNotebookApp application:555] Looking for jupyter_config in /Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter
[D 2018-09-13 17:45:54.112 SingleUserNotebookApp application:555] Looking for jupyter_config in /Users/aman.garg/.jupyter
[D 2018-09-13 17:45:54.112 SingleUserNotebookApp application:555] Looking for jupyter_config in /Users/aman.garg
[D 2018-09-13 17:45:54.113 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /etc/jupyter
[D 2018-09-13 17:45:54.113 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 2018-09-13 17:45:54.113 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter
[D 2018-09-13 17:45:54.113 SingleUserNotebookApp application:577] Loaded config file: /Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 17:45:54.114 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /Users/aman.garg/.jupyter
[D 2018-09-13 17:45:54.121 SingleUserNotebookApp application:577] Loaded config file: /Users/aman.garg/.jupyter/jupyter_notebook_config.py
[D 2018-09-13 17:45:54.121 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /Users/aman.garg
[D 2018-09-13 17:45:54.357 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 17:45:54.358 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 17:45:54.358 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 17:45:54.359 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/Users/aman.garg/.jupyter/jupyter_notebook_config.json
[I 2018-09-13 17:45:54.393 SingleUserNotebookApp extension:59] JupyterLab extension loaded from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterlab
[I 2018-09-13 17:45:54.393 SingleUserNotebookApp extension:60] JupyterLab application directory is /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab
[I 2018-09-13 17:45:54.398 SingleUserNotebookApp init:18] Loaded nb2kg extension
[I 2018-09-13 17:45:54.399 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernelspecs/(?P<kernel_name>[\w\.\-%]+)$', <class 'nb2kg.handlers.KernelSpecHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:45:54.399 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernelspecs$', <class 'nb2kg.handlers.MainKernelSpecHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:45:54.399 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels/(?P<kernel_id>\w+-\w+-\w+-\w+-\w+)/channels$', <class 'nb2kg.handlers.WebSocketChannelsHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:45:54.399 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels/(?P<kernel_id>\w+-\w+-\w+-\w+-\w+)/(?Prestart|interrupt)$', <class 'nb2kg.handlers.KernelActionHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:45:54.399 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels/(?P<kernel_id>\w+-\w+-\w+-\w+-\w+)$', <class 'nb2kg.handlers.KernelHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:45:54.399 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels$', <class 'nb2kg.handlers.MainKernelHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:45:54.399 SingleUserNotebookApp singleuser:405] Starting jupyterhub-singleuser server version 0.9.2
[I 2018-09-13 17:45:54.404 JupyterHub log:158] 200 GET /hub/api (@127.0.0.1) 1.01ms
[D 2018-09-13 17:45:54.405 SingleUserNotebookApp _version:53] jupyterhub and jupyterhub-singleuser both on version 0.9.2
[I 2018-09-13 17:45:54.405 SingleUserNotebookApp notebookapp:1685] Serving notebooks from local directory: /Users/aman.garg
[I 2018-09-13 17:45:54.417 SingleUserNotebookApp notebookapp:1685] The Jupyter Notebook is running at:
[I 2018-09-13 17:45:54.417 SingleUserNotebookApp notebookapp:1685] http://127.0.0.1:61731/user/aman.garg/
[I 2018-09-13 17:45:54.417 SingleUserNotebookApp notebookapp:1686] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2018-09-13 17:45:55.573 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/ -> /user/aman.garg/lab? (@127.0.0.1) 0.84ms
[D 2018-09-13 17:45:55.573 JupyterHub utils:188] Server at http://127.0.0.1:61731/user/aman.garg/ responded with 302
[D 2018-09-13 17:45:55.574 JupyterHub _version:53] jupyterhub and jupyterhub-singleuser both on version 0.9.2
[I 2018-09-13 17:45:55.574 JupyterHub base:628] User aman.garg took 1.997 seconds to start
[I 2018-09-13 17:45:55.574 JupyterHub proxy:242] Adding user aman.garg to proxy /user/aman.garg/ => http://127.0.0.1:61731
[D 2018-09-13 17:45:55.574 JupyterHub proxy:678] Proxy: Fetching POST http://127.0.0.1:8001/api/routes/user/aman.garg
17:45:55.576 - info: [ConfigProxy] Adding route /user/aman.garg -> http://127.0.0.1:61731
17:45:55.576 - info: [ConfigProxy] 201 POST /api/routes/user/aman.garg
[I 2018-09-13 17:45:55.577 JupyterHub log:158] 302 GET /hub/user/aman.garg/ -> /user/aman.garg/?redirects=1 (aman.garg@::1) 2007.41ms
[I 2018-09-13 17:45:55.585 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/?redirects=1 -> /user/aman.garg/lab?redirects=1 (@::1) 0.59ms
[D 2018-09-13 17:45:55.591 SingleUserNotebookApp auth:421] No user identified
[D 2018-09-13 17:45:55.593 SingleUserNotebookApp auth:741] Redirecting to login url: /hub/api/oauth2/authorize?client_id=jupyterhub-user-aman.garg&redirect_uri=%2Fuser%2Faman.garg%2Foauth_callback&response_type=code&state=eyJ1dWlkIjogImUwNzUyNzUxNzE3OTRlNTdiOTI3YWZmZTYxNWM2MzQ5IiwgIm5leHRfdXJsIjogIi91c2VyL2FtYW4uZ2FyZy9sYWI_cmVkaXJlY3RzPTEifQ
[I 2018-09-13 17:45:55.593 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/lab?redirects=1 -> /hub/api/oauth2/authorize?client_id=jupyterhub-user-aman.garg&redirect_uri=%2Fuser%2Faman.garg%2Foauth_callback&response_type=code&state=[secret] (@::1) 2.63ms
[I 2018-09-13 17:45:55.616 JupyterHub log:158] 302 GET /hub/api/oauth2/authorize?client_id=jupyterhub-user-aman.garg&redirect_uri=%2Fuser%2Faman.garg%2Foauth_callback&response_type=code&state=[secret] -> /user/aman.garg/oauth_callback?code=[secret]&state=[secret] (aman.garg@::1) 15.14ms
[D 2018-09-13 17:45:55.622 SingleUserNotebookApp auth:421] No user identified
[D 2018-09-13 17:45:55.651 SingleUserNotebookApp auth:263] Cache miss: token:ce482d6ec67044cdb32974bbe3f0444b:dc123abf-774e-4286-9703-c2d9d7b73a8a
[I 2018-09-13 17:45:55.655 JupyterHub log:158] 200 POST /hub/api/oauth2/token (aman.garg@127.0.0.1) 19.10ms
[D 2018-09-13 17:45:55.669 SingleUserNotebookApp auth:269] Received request from Hub user {'kind': 'user', 'name': 'aman.garg', 'admin': False, 'groups': [], 'server': '/user/aman.garg/', 'pending': None, 'created': '2018-08-22T10:10:37.285516Z', 'last_activity': '2018-09-13T12:15:55.664136Z', 'servers': None}
[I 2018-09-13 17:45:55.669 SingleUserNotebookApp auth:875] Logged-in user {'kind': 'user', 'name': 'aman.garg', 'admin': False, 'groups': [], 'server': '/user/aman.garg/', 'pending': None, 'created': '2018-08-22T10:10:37.285516Z', 'last_activity': '2018-09-13T12:15:55.664136Z', 'servers': None}
[D 2018-09-13 17:45:55.669 SingleUserNotebookApp auth:656] Setting oauth cookie for ::1: jupyterhub-user-aman.garg, {'path': '/user/aman.garg/', 'httponly': True}
[I 2018-09-13 17:45:55.670 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/oauth_callback?code=[secret]&state=[secret] -> /user/aman.garg/lab?redirects=1 (@::1) 47.84ms
[I 2018-09-13 17:45:55.673 JupyterHub log:158] 200 GET /hub/api/authorizations/token/[secret] (aman.garg@127.0.0.1) 12.31ms
[D 2018-09-13 17:45:55.677 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 17:45:55.678 SingleUserNotebookApp handlers:264] Using contents: services/contents
[I 2018-09-13 17:45:55.686 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab?redirects=1 (aman.garg@::1) 9.29ms
[D 2018-09-13 17:45:55.702 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 17:45:55.702 SingleUserNotebookApp handlers:770] Path vendorsmain.332e64a3f8e79a6a6a50.js served from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab/static/vendorsmain.332e64a3f8e79a6a6a50.js
[D 2018-09-13 17:45:55.704 SingleUserNotebookApp log:158] 304 GET /user/aman.garg/lab/static/vendors~main.332e64a3f8e79a6a6a50.js (aman.garg@::1) 2.83ms
[D 2018-09-13 17:45:55.705 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 17:45:55.706 SingleUserNotebookApp handlers:770] Path main.4dabccaa6191334b21b3.js served from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab/static/main.4dabccaa6191334b21b3.js
[D 2018-09-13 17:45:55.706 SingleUserNotebookApp log:158] 304 GET /user/aman.garg/lab/static/main.4dabccaa6191334b21b3.js (aman.garg@::1) 1.59ms
[D 2018-09-13 17:45:55.905 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:55.905 SingleUserNotebookApp managers:283] Request list kernel specs at: /api/kernelspecs
[D 2018-09-13 17:45:55.907 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:55.907 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/terminals?1536840955902 (aman.garg@::1) 0.90ms
[I 2018-09-13 17:45:55.911 JupyterHub log:158] 302 GET /api/kernelspecs -> /hub/api/kernelspecs (@::ffff:127.0.0.1) 0.56ms
[W 2018-09-13 17:45:55.918 JupyterHub log:158] 404 GET /hub/api/kernelspecs (@::ffff:127.0.0.1) 2.85ms
[E 2018-09-13 17:45:55.919 SingleUserNotebookApp web:1670] Uncaught exception GET /user/aman.garg/api/kernelspecs?1536840955900 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/user/aman.garg/api/kernelspecs?1536840955900', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/nb2kg/handlers.py", line 324, in get
kernel_specs = yield gen.maybe_future(ksm.list_kernel_specs())
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(exc_info)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/nb2kg/managers.py", line 284, in list_kernel_specs
response = yield fetch_kg(self.kernelspecs_endpoint, method='GET')
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(exc_info)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/nb2kg/managers.py", line 64, in fetch_kg
response = yield client.fetch(url, **kwargs)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
tornado.httpclient.HTTPClientError: HTTP 404: Not Found
[W 2018-09-13 17:45:55.922 SingleUserNotebookApp handlers:564] Unhandled error
[E 2018-09-13 17:45:55.922 SingleUserNotebookApp log:150] {
"X-Forwarded-Host": "localhost:8888",
"X-Forwarded-Proto": "http",
"X-Forwarded-Port": "8888",
"X-Forwarded-For": "::1",
"Cookie": "jupyterhub-user-aman.garg=2|1:0|10:1536840955|25:jupyterhub-user-aman.garg|48:ZGMxMjNhYmYtNzc0ZS00Mjg2LTk3MDMtYzJkOWQ3YjczYThh|41127ae1c32d2c7def76d233c62f16590352831c7bace757f220098ad199844c; _xsrf=2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220; username-localhost-9000="2|1:0|10:1534858349|23:username-localhost-9000|44:ZTg5ZjhiNzE1YTRhNDBjYzlhNjYzYjUyMTdlOTRlN2M=|2f81cd64728b2bc8331734e05f7d1beaa184984636a62075e191514146725217"; username-localhost-8085="2|1:0|10:1534946451|23:username-localhost-8085|44:ZWM2ZDBkZTU2MTlmNDE1NThhYzc3YWY0MWQ0MDY1MGE=|ab56d8dcecd2e31f7cc734b48fbb3c726d23a7f787c460ae6dd9ae51a59413da"; jupyterhub-session-id=ce482d6ec67044cdb32974bbe3f0444b; username-localhost-8888="2|1:0|10:1536835429|23:username-localhost-8888|44:Y2U2MTljMjI3ODZlNDRjYmEyNzQ3YWNiZDBiMDA5YjE=|941f03165f39b4c114d20f54f7e8728905631e7ba157cfdf50952fdbe492b5e5"; username-localhost-8890="2|1:0|10:1536835837|23:username-localhost-8890|44:MWFmZTU1YmJmYmIxNDUwZGFiZTUyNTgzMTFjZmMzYTI=|6bb52486f7d613cfb3e5e93ddfdf0669724ef1d4fbb31dd40bc46327ecff8c73"; username-localhost-8889="2|1:0|10:1536836756|23:username-localhost-8889|44:NDIxYmI5MDA5MjQxNDkyYzk1ZWU5M2M0ZmJiZmMxYTA=|f2789b4eb72157e4c873e03dc29616c1da02e92b9bce64d7bc1a61bda87bb9a7"",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Referer": "http://localhost:8888/user/aman.garg/lab?redirects=1",
"Accept": "
/
",
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"X-Xsrftoken": "2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220",
"Connection": "close",
"Host": "localhost:8888"
}
[E 2018-09-13 17:45:55.922 SingleUserNotebookApp log:158] 500 GET /user/aman.garg/api/kernelspecs?1536840955900 (aman.garg@::1) 17.49ms
[D 2018-09-13 17:45:55.948 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:55.964 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/shortcuts-extension:plugin?1536840955942 (aman.garg@::1) 17.11ms
[D 2018-09-13 17:45:55.966 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:55.968 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/docmanager-extension:plugin?1536840955945 (aman.garg@::1) 2.33ms
[D 2018-09-13 17:45:55.969 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:55.970 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/apputils-extension:themes?1536840955946 (aman.garg@::1) 1.76ms
[D 2018-09-13 17:45:56.020 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 17:45:56.021 SingleUserNotebookApp handlers:770] Path @jupyterlab/theme-light-extension/index.css served from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab/themes/@jupyterlab/theme-light-extension/index.css
[D 2018-09-13 17:45:56.022 SingleUserNotebookApp log:158] 304 GET /user/aman.garg/lab/api/themes/@jupyterlab/theme-light-extension/index.css (aman.garg@::1) 1.77ms
[D 2018-09-13 17:45:56.364 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 17:45:56.366 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:56.383 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/contents/?content=1&1536840956362 (aman.garg@::1) 16.75ms
[D 2018-09-13 17:45:56.386 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:56.387 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/extensionmanager-extension:plugin?1536840956369 (aman.garg@::1) 2.85ms
[D 2018-09-13 17:45:56.389 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg

Configuration file for jupyterhub.

[I 2018-09-13 17:45:56.391 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/notebook-extension:tracker?1536840956376 (aman.garg@::1) 2.65ms
[D 2018-09-13 17:45:56.392 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:56.394 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/fileeditor-extension:plugin?1536840956379 (aman.garg@::1) 2.23ms
[D 2018-09-13 17:45:56.414 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:56.416 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/codemirror-extension:commands?1536840956410 (aman.garg@::1) 2.53ms
[D 2018-09-13 17:45:56.422 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:56.424 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/sessions?1536840956414 (aman.garg@::1) 3.14ms
[D 2018-09-13 17:45:56.449 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:56.450 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/workspaces/user/aman.garg/lab?1536840956445 (aman.garg@::1) 1.69ms
[D 2018-09-13 17:45:57.336 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:45:57.337 SingleUserNotebookApp log:158] 204 PUT /user/aman.garg/lab/api/workspaces/user/aman.garg/lab?1536840957330 (aman.garg@::1) 1.86ms
[I 2018-09-13 17:45:57.381 SingleUserNotebookApp build_handler:43] Build is up to date
[I 2018-09-13 17:45:57.382 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/build?1536840956359 (aman.garg@::1) 1018.92ms
[D 2018-09-13 17:46:02.391 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:46:02.400 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/contents/?content=1&1536840962386 (aman.garg@::1) 10.36ms
[D 2018-09-13 17:46:03.151 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:46:03.152 SingleUserNotebookApp log:158] 204 PUT /user/aman.garg/lab/api/workspaces/user/aman.garg/lab?1536840963145 (aman.garg@::1) 2.08ms
[D 2018-09-13 17:46:05.909 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:46:05.909 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/terminals?1536840965904 (aman.garg@::1) 1.18ms
[D 2018-09-13 17:46:05.911 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:46:05.911 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/sessions?1536840965902 (aman.garg@::1) 1.20ms
^C
Interrupted
[I 2018-09-13 17:46:23.287 JupyterHub app:1700] Cleaning up single-user servers...
[D 2018-09-13 17:46:23.287 JupyterHub app:1712] Stopping proxy
[I 2018-09-13 17:46:23.288 JupyterHub proxy:619] Cleaning up proxy[8766]...
[D 2018-09-13 17:46:23.288 JupyterHub proxy:520] Removing proxy pid file jupyterhub-proxy.pid
[D 2018-09-13 17:46:23.288 JupyterHub spawner:1191] Interrupting 8768
[I 2018-09-13 17:46:23.290 SingleUserNotebookApp notebookapp:1617] Shutting down 0 kernels
[I 2018-09-13 17:46:23.590 JupyterHub app:1733] ...done
(jupyterhub-nb) ➜ ~ jupyter kernelspec list
Available kernels:
python3 /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/kernels/python3
pyspark3kernel /usr/local/share/jupyter/kernels/pyspark3kernel
pysparkkernel /usr/local/share/jupyter/kernels/pysparkkernel
python2 /usr/local/share/jupyter/kernels/python2
spark_python_yarn_client /usr/local/share/jupyter/kernels/spark_python_yarn_client
spark_scala_yarn_client /usr/local/share/jupyter/kernels/spark_scala_yarn_client
sparkkernel /usr/local/share/jupyter/kernels/sparkkernel
sparkrkernel /usr/local/share/jupyter/kernels/sparkrkernel
(jupyterhub-nb) ➜ ~ cd /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/kernels/python3
(jupyterhub-nb) ➜ python3 ls
kernel.json logo-32x32.png logo-64x64.png
(jupyterhub-nb) ➜ python3 vi kernel.json
(jupyterhub-nb) ➜ python3 /Users/aman.garg/anaconda2/envs/jupyterhub-nb/bin/python
Python 3.6.6 | packaged by conda-forge | (default, Jul 26 2018, 09:55:02)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

exit()
(jupyterhub-nb) ➜ python3 vi ~/.jupyter/jupyterhub_config.py
(jupyterhub-nb) ➜ python3 /Users/aman.garg/anaconda2/envs/jupyterhub-nb/bin/python
Python 3.6.6 | packaged by conda-forge | (default, Jul 26 2018, 09:55:02)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
exit()
(jupyterhub-nb) ➜ python3 sudo jupyterhub --port=8888 -f /Users/aman.garg/.jupyter/jupyterhub_config.py --debug
[D 2018-09-13 17:48:54.751 JupyterHub application:555] Looking for /Users/aman.garg/.jupyter/jupyterhub_config in /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/kernels/python3
[D 2018-09-13 17:48:54.751 JupyterHub application:577] Loaded config file: /Users/aman.garg/.jupyter/jupyterhub_config.py
[I 2018-09-13 17:48:54.753 JupyterHub app:1667] Using Authenticator: jupyterhub.auth.PAMAuthenticator-0.9.2
[I 2018-09-13 17:48:54.753 JupyterHub app:1667] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-0.9.2
[D 2018-09-13 17:48:54.757 JupyterHub app:1048] Generating new cookie_secret
[I 2018-09-13 17:48:54.757 JupyterHub app:1053] Writing cookie_secret to /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/kernels/python3/jupyterhub_cookie_secret
[D 2018-09-13 17:48:54.758 JupyterHub app:1069] Connecting to db: sqlite:///jupyterhub.sqlite
[D 2018-09-13 17:48:54.783 JupyterHub orm:656] Stamping empty database with alembic revision 896818069c98
[I 2018-09-13 17:48:54.790 alembic.runtime.migration migration:117] Context impl SQLiteImpl.
[I 2018-09-13 17:48:54.790 alembic.runtime.migration migration:122] Will assume non-transactional DDL.
[I 2018-09-13 17:48:54.797 alembic.runtime.migration migration:327] Running stamp_revision -> 896818069c98
[D 2018-09-13 17:48:54.797 alembic.runtime.migration migration:516] new branch insert 896818069c98
[I 2018-09-13 17:48:54.822 JupyterHub proxy:431] Generating new CONFIGPROXY_AUTH_TOKEN
[W 2018-09-13 17:48:54.823 JupyterHub app:1171] No admin users, admin interface will be unavailable.
[W 2018-09-13 17:48:54.823 JupyterHub app:1172] Add any administrative users to c.Authenticator.admin_users in config.
[I 2018-09-13 17:48:54.823 JupyterHub app:1199] Not using whitelist. Any authenticated user will be allowed.
[D 2018-09-13 17:48:54.850 JupyterHub app:1487] Loaded users:

[I 2018-09-13 17:48:54.859 JupyterHub app:1849] Hub API listening on http://127.0.0.1:8081/hub/
[W 2018-09-13 17:48:54.860 JupyterHub proxy:560] Running JupyterHub without SSL. I hope there is SSL termination happening somewhere else...
[I 2018-09-13 17:48:54.860 JupyterHub proxy:562] Starting proxy @ http://:8888/
[D 2018-09-13 17:48:54.860 JupyterHub proxy:563] Proxy cmd: ['configurable-http-proxy', '--ip', '', '--port', '8888', '--api-ip', '127.0.0.1', '--api-port', '8001', '--error-target', 'http://127.0.0.1:8081/hub/error']
[D 2018-09-13 17:48:54.863 JupyterHub proxy:512] Writing proxy pid file: jupyterhub-proxy.pid
17:48:55.268 - info: [ConfigProxy] Proxying http://*:8888 to (no default)
17:48:55.271 - info: [ConfigProxy] Proxy API at http://127.0.0.1:8001/api/routes
[D 2018-09-13 17:48:55.774 JupyterHub proxy:598] Proxy started and appears to be up
[D 2018-09-13 17:48:55.775 JupyterHub proxy:296] Fetching routes to check
[D 2018-09-13 17:48:55.776 JupyterHub proxy:678] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
17:48:55.783 - info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 17:48:55.784 JupyterHub proxy:301] Checking routes
[I 2018-09-13 17:48:55.784 JupyterHub proxy:370] Adding default route for Hub: / => http://127.0.0.1:8081
[D 2018-09-13 17:48:55.784 JupyterHub proxy:678] Proxy: Fetching POST http://127.0.0.1:8001/api/routes/
17:48:55.786 - info: [ConfigProxy] Adding route / -> http://127.0.0.1:8081
17:48:55.787 - info: [ConfigProxy] 201 POST /api/routes/
[I 2018-09-13 17:48:55.787 JupyterHub app:1906] JupyterHub is now running at http://:8888/
[I 2018-09-13 17:48:58.378 JupyterHub log:158] 302 GET /user/aman.garg/api/contents/?content=1&1536841138361 -> /hub/user/aman.garg/api/contents/?content=1&1536841138361 (@::1) 1.07ms
[W 2018-09-13 17:48:58.384 JupyterHub base:242] Invalid or expired cookie token
[E 2018-09-13 17:48:58.385 JupyterHub web:1670] Uncaught exception GET /hub/user/aman.garg/api/contents/?content=1&1536841138361 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/hub/user/aman.garg/api/contents/?content=1&1536841138361', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 961, in get
if "api" in user_path.split("/") and not user.active:
AttributeError: 'NoneType' object has no attribute 'active'

[D 2018-09-13 17:48:58.387 JupyterHub base:880] No template for 500
[E 2018-09-13 17:48:58.416 JupyterHub log:150] {
"X-Forwarded-Host": "localhost:8888",
"X-Forwarded-Proto": "http",
"X-Forwarded-Port": "8888",
"X-Forwarded-For": "::1",
"Cookie": "jupyterhub-hub-login="2|1:0|10:1536840953|20:jupyterhub-hub-login|44:MjRhOTk4NmM4MmYyNDJkMDk1MmFiMzU2NmJmN2I2NzI=|8cb6549aa1a91122d4cfe4b89803db8b97177ae217af34d60d12b64ae7b8444c"; _xsrf=2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220; username-localhost-9000="2|1:0|10:1534858349|23:username-localhost-9000|44:ZTg5ZjhiNzE1YTRhNDBjYzlhNjYzYjUyMTdlOTRlN2M=|2f81cd64728b2bc8331734e05f7d1beaa184984636a62075e191514146725217"; username-localhost-8085="2|1:0|10:1534946451|23:username-localhost-8085|44:ZWM2ZDBkZTU2MTlmNDE1NThhYzc3YWY0MWQ0MDY1MGE=|ab56d8dcecd2e31f7cc734b48fbb3c726d23a7f787c460ae6dd9ae51a59413da"; jupyterhub-session-id=ce482d6ec67044cdb32974bbe3f0444b; username-localhost-8888="2|1:0|10:1536835429|23:username-localhost-8888|44:Y2U2MTljMjI3ODZlNDRjYmEyNzQ3YWNiZDBiMDA5YjE=|941f03165f39b4c114d20f54f7e8728905631e7ba157cfdf50952fdbe492b5e5"; username-localhost-8890="2|1:0|10:1536835837|23:username-localhost-8890|44:MWFmZTU1YmJmYmIxNDUwZGFiZTUyNTgzMTFjZmMzYTI=|6bb52486f7d613cfb3e5e93ddfdf0669724ef1d4fbb31dd40bc46327ecff8c73"; username-localhost-8889="2|1:0|10:1536836756|23:username-localhost-8889|44:NDIxYmI5MDA5MjQxNDkyYzk1ZWU5M2M0ZmJiZmMxYTA=|f2789b4eb72157e4c873e03dc29616c1da02e92b9bce64d7bc1a61bda87bb9a7"",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Referer": "http://localhost:8888/user/aman.garg/lab?redirects=1",
"Accept": "/",
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"X-Xsrftoken": "2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220",
"Connection": "close",
"Host": "localhost:8888"
}
[E 2018-09-13 17:48:58.416 JupyterHub log:158] 500 GET /hub/user/aman.garg/api/contents/?content=1&1536841138361 (@::1) 32.62ms
[I 2018-09-13 17:48:58.904 JupyterHub log:158] 302 GET /user/aman.garg/api/kernelspecs?1536841138898 -> /hub/user/aman.garg/api/kernelspecs?1536841138898 (@::1) 0.65ms
[E 2018-09-13 17:48:58.908 JupyterHub web:1670] Uncaught exception GET /hub/user/aman.garg/api/kernelspecs?1536841138898 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/hub/user/aman.garg/api/kernelspecs?1536841138898', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 961, in get
if "api" in user_path.split("/") and not user.active:
AttributeError: 'NoneType' object has no attribute 'active'

[D 2018-09-13 17:48:58.908 JupyterHub base:880] No template for 500
[E 2018-09-13 17:48:58.909 JupyterHub log:150] {
"X-Forwarded-Host": "localhost:8888",
"X-Forwarded-Proto": "http",
"X-Forwarded-Port": "8888",
"X-Forwarded-For": "::1",
"Cookie": "_xsrf=2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220; username-localhost-9000="2|1:0|10:1534858349|23:username-localhost-9000|44:ZTg5ZjhiNzE1YTRhNDBjYzlhNjYzYjUyMTdlOTRlN2M=|2f81cd64728b2bc8331734e05f7d1beaa184984636a62075e191514146725217"; username-localhost-8085="2|1:0|10:1534946451|23:username-localhost-8085|44:ZWM2ZDBkZTU2MTlmNDE1NThhYzc3YWY0MWQ0MDY1MGE=|ab56d8dcecd2e31f7cc734b48fbb3c726d23a7f787c460ae6dd9ae51a59413da"; jupyterhub-session-id=ce482d6ec67044cdb32974bbe3f0444b; username-localhost-8888="2|1:0|10:1536835429|23:username-localhost-8888|44:Y2U2MTljMjI3ODZlNDRjYmEyNzQ3YWNiZDBiMDA5YjE=|941f03165f39b4c114d20f54f7e8728905631e7ba157cfdf50952fdbe492b5e5"; username-localhost-8890="2|1:0|10:1536835837|23:username-localhost-8890|44:MWFmZTU1YmJmYmIxNDUwZGFiZTUyNTgzMTFjZmMzYTI=|6bb52486f7d613cfb3e5e93ddfdf0669724ef1d4fbb31dd40bc46327ecff8c73"; username-localhost-8889="2|1:0|10:1536836756|23:username-localhost-8889|44:NDIxYmI5MDA5MjQxNDkyYzk1ZWU5M2M0ZmJiZmMxYTA=|f2789b4eb72157e4c873e03dc29616c1da02e92b9bce64d7bc1a61bda87bb9a7"",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Referer": "http://localhost:8888/user/aman.garg/lab?redirects=1",
"Accept": "/",
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"X-Xsrftoken": "2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220",
"Connection": "close",
"Host": "localhost:8888"
}
[E 2018-09-13 17:48:58.909 JupyterHub log:158] 500 GET /hub/user/aman.garg/api/kernelspecs?1536841138898 (@::1) 2.08ms
[I 2018-09-13 17:49:02.825 JupyterHub log:158] 302 GET / -> /hub (@::1) 0.60ms
[I 2018-09-13 17:49:02.831 JupyterHub log:158] 302 GET /hub -> /hub/ (@::1) 0.71ms
[I 2018-09-13 17:49:02.839 JupyterHub log:158] 302 GET /hub/ -> /hub/login (@::1) 0.79ms
[I 2018-09-13 17:49:02.851 JupyterHub log:158] 200 GET /hub/login (@::1) 7.87ms
[D 2018-09-13 17:49:07.758 JupyterHub base:362] Setting cookie for aman.garg: jupyterhub-hub-login
[D 2018-09-13 17:49:07.758 JupyterHub base:357] Setting cookie jupyterhub-hub-login: {'httponly': True, 'path': '/hub/'}
[I 2018-09-13 17:49:07.759 JupyterHub base:499] User logged in: aman.garg
[I 2018-09-13 17:49:07.759 JupyterHub log:158] 302 POST /hub/login?next= -> /user/aman.garg/ (aman.garg@::1) 84.47ms
[I 2018-09-13 17:49:07.765 JupyterHub log:158] 302 GET /user/aman.garg/ -> /hub/user/aman.garg/ (@::1) 0.62ms
[D 2018-09-13 17:49:07.775 JupyterHub user:190] Creating <class 'jupyterhub.spawner.LocalProcessSpawner'> for aman.garg:
[D 2018-09-13 17:49:07.782 JupyterHub base:603] Initiating spawn for aman.garg
[D 2018-09-13 17:49:07.783 JupyterHub base:609] 0/100 concurrent spawns
[D 2018-09-13 17:49:07.783 JupyterHub base:612] 0 active servers
[I 2018-09-13 17:49:07.814 JupyterHub spawner:1099] Spawning jupyterhub-singleuser --port=61840 '--NotebookApp.default_url="/lab"' --debug
[D 2018-09-13 17:49:07.842 JupyterHub spawner:850] Polling subprocess every 30s
[D 2018-09-13 17:49:08.314 SingleUserNotebookApp application:177] Searching ['/Users/aman.garg', '/Users/aman.garg/.jupyter', '/Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2018-09-13 17:49:08.315 SingleUserNotebookApp application:555] Looking for jupyter_config in /etc/jupyter
[D 2018-09-13 17:49:08.315 SingleUserNotebookApp application:555] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2018-09-13 17:49:08.315 SingleUserNotebookApp application:555] Looking for jupyter_config in /Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter
[D 2018-09-13 17:49:08.315 SingleUserNotebookApp application:555] Looking for jupyter_config in /Users/aman.garg/.jupyter
[D 2018-09-13 17:49:08.315 SingleUserNotebookApp application:555] Looking for jupyter_config in /Users/aman.garg
[D 2018-09-13 17:49:08.316 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /etc/jupyter
[D 2018-09-13 17:49:08.317 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 2018-09-13 17:49:08.317 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter
[D 2018-09-13 17:49:08.317 SingleUserNotebookApp application:577] Loaded config file: /Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 17:49:08.317 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /Users/aman.garg/.jupyter
[D 2018-09-13 17:49:08.324 SingleUserNotebookApp application:577] Loaded config file: /Users/aman.garg/.jupyter/jupyter_notebook_config.py
[D 2018-09-13 17:49:08.324 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /Users/aman.garg
[D 2018-09-13 17:49:08.559 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 17:49:08.559 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 17:49:08.560 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 17:49:08.561 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/Users/aman.garg/.jupyter/jupyter_notebook_config.json
[I 2018-09-13 17:49:08.594 SingleUserNotebookApp extension:59] JupyterLab extension loaded from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterlab
[I 2018-09-13 17:49:08.594 SingleUserNotebookApp extension:60] JupyterLab application directory is /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab
[I 2018-09-13 17:49:08.600 SingleUserNotebookApp init:18] Loaded nb2kg extension
[I 2018-09-13 17:49:08.600 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernelspecs/(?P<kernel_name>[\w\.\-%]+)$', <class 'nb2kg.handlers.KernelSpecHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:49:08.600 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernelspecs$', <class 'nb2kg.handlers.MainKernelSpecHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:49:08.600 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels/(?P<kernel_id>\w+-\w+-\w+-\w+-\w+)/channels$', <class 'nb2kg.handlers.WebSocketChannelsHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:49:08.600 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels/(?P<kernel_id>\w+-\w+-\w+-\w+-\w+)/(?Prestart|interrupt)$', <class 'nb2kg.handlers.KernelActionHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:49:08.600 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels/(?P<kernel_id>\w+-\w+-\w+-\w+-\w+)$', <class 'nb2kg.handlers.KernelHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:49:08.600 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels$', <class 'nb2kg.handlers.MainKernelHandler'>, kwargs=None, name=None)
[I 2018-09-13 17:49:08.601 SingleUserNotebookApp singleuser:405] Starting jupyterhub-singleuser server version 0.9.2
[I 2018-09-13 17:49:08.614 JupyterHub log:158] 200 GET /hub/api (@127.0.0.1) 1.05ms
[D 2018-09-13 17:49:08.615 SingleUserNotebookApp _version:53] jupyterhub and jupyterhub-singleuser both on version 0.9.2
[I 2018-09-13 17:49:08.615 SingleUserNotebookApp notebookapp:1685] Serving notebooks from local directory: /Users/aman.garg
[I 2018-09-13 17:49:08.615 SingleUserNotebookApp notebookapp:1685] The Jupyter Notebook is running at:
[I 2018-09-13 17:49:08.616 SingleUserNotebookApp notebookapp:1685] http://127.0.0.1:61840/user/aman.garg/
[I 2018-09-13 17:49:08.616 SingleUserNotebookApp notebookapp:1686] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2018-09-13 17:49:08.858 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/ -> /user/aman.garg/lab? (@127.0.0.1) 0.99ms
[D 2018-09-13 17:49:08.858 JupyterHub utils:188] Server at http://127.0.0.1:61840/user/aman.garg/ responded with 302
[D 2018-09-13 17:49:08.858 JupyterHub _version:53] jupyterhub and jupyterhub-singleuser both on version 0.9.2
[I 2018-09-13 17:49:08.859 JupyterHub base:628] User aman.garg took 1.076 seconds to start
[I 2018-09-13 17:49:08.859 JupyterHub proxy:242] Adding user aman.garg to proxy /user/aman.garg/ => http://127.0.0.1:61840
[D 2018-09-13 17:49:08.859 JupyterHub proxy:678] Proxy: Fetching POST http://127.0.0.1:8001/api/routes/user/aman.garg
17:49:08.860 - info: [ConfigProxy] Adding route /user/aman.garg -> http://127.0.0.1:61840
17:49:08.861 - info: [ConfigProxy] 201 POST /api/routes/user/aman.garg
[I 2018-09-13 17:49:08.862 JupyterHub log:158] 302 GET /hub/user/aman.garg/ -> /user/aman.garg/?redirects=1 (aman.garg@::1) 1092.03ms
[I 2018-09-13 17:49:08.868 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/?redirects=1 -> /user/aman.garg/lab?redirects=1 (@::1) 0.64ms
[D 2018-09-13 17:49:08.874 SingleUserNotebookApp auth:421] No user identified
[D 2018-09-13 17:49:08.875 SingleUserNotebookApp auth:741] Redirecting to login url: /hub/api/oauth2/authorize?client_id=jupyterhub-user-aman.garg&redirect_uri=%2Fuser%2Faman.garg%2Foauth_callback&response_type=code&state=eyJ1dWlkIjogIjczNjE2ZTMyNmEwYjQ3OWRhMzMxODBkZTI1MThmYTVjIiwgIm5leHRfdXJsIjogIi91c2VyL2FtYW4uZ2FyZy9sYWI_cmVkaXJlY3RzPTEifQ
[I 2018-09-13 17:49:08.876 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/lab?redirects=1 -> /hub/api/oauth2/authorize?client_id=jupyterhub-user-aman.garg&redirect_uri=%2Fuser%2Faman.garg%2Foauth_callback&response_type=code&state=[secret] (@::1) 2.56ms
[I 2018-09-13 17:49:08.896 JupyterHub log:158] 302 GET /hub/api/oauth2/authorize?client_id=jupyterhub-user-aman.garg&redirect_uri=%2Fuser%2Faman.garg%2Foauth_callback&response_type=code&state=[secret] -> /user/aman.garg/oauth_callback?code=[secret]&state=[secret] (aman.garg@::1) 14.64ms
[D 2018-09-13 17:49:08.903 SingleUserNotebookApp auth:421] No user identified
[D 2018-09-13 17:49:08.931 SingleUserNotebookApp auth:263] Cache miss: token:ce482d6ec67044cdb32974bbe3f0444b:2d115226-848e-4e6d-aa66-4a175e114fcd
[I 2018-09-13 17:49:08.935 JupyterHub log:158] 200 POST /hub/api/oauth2/token (aman.garg@127.0.0.1) 19.34ms
[D 2018-09-13 17:49:08.950 SingleUserNotebookApp auth:269] Received request from Hub user {'kind': 'user', 'name': 'aman.garg', 'admin': False, 'groups': [], 'server': '/user/aman.garg/', 'pending': None, 'created': '2018-09-13T12:19:07.751562Z', 'last_activity': '2018-09-13T12:19:08.945364Z', 'servers': None}
[I 2018-09-13 17:49:08.950 SingleUserNotebookApp auth:875] Logged-in user {'kind': 'user', 'name': 'aman.garg', 'admin': False, 'groups': [], 'server': '/user/aman.garg/', 'pending': None, 'created': '2018-09-13T12:19:07.751562Z', 'last_activity': '2018-09-13T12:19:08.945364Z', 'servers': None}
[D 2018-09-13 17:49:08.951 SingleUserNotebookApp auth:656] Setting oauth cookie for ::1: jupyterhub-user-aman.garg, {'path': '/user/aman.garg/', 'httponly': True}
[I 2018-09-13 17:49:08.951 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/oauth_callback?code=[secret]&state=[secret] -> /user/aman.garg/lab?redirects=1 (@::1) 49.15ms
[I 2018-09-13 17:49:08.955 JupyterHub log:158] 200 GET /hub/api/authorizations/token/[secret] (aman.garg@127.0.0.1) 13.45ms
[D 2018-09-13 17:49:08.958 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 17:49:08.959 SingleUserNotebookApp handlers:264] Using contents: services/contents
[I 2018-09-13 17:49:08.967 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab?redirects=1 (aman.garg@::1) 9.49ms
[D 2018-09-13 17:49:08.983 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 17:49:08.984 SingleUserNotebookApp handlers:770] Path vendorsmain.332e64a3f8e79a6a6a50.js served from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab/static/vendorsmain.332e64a3f8e79a6a6a50.js
[D 2018-09-13 17:49:08.985 SingleUserNotebookApp log:158] 304 GET /user/aman.garg/lab/static/vendors~main.332e64a3f8e79a6a6a50.js (aman.garg@::1) 2.99ms
[D 2018-09-13 17:49:08.987 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 17:49:08.987 SingleUserNotebookApp handlers:770] Path main.4dabccaa6191334b21b3.js served from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab/static/main.4dabccaa6191334b21b3.js
[D 2018-09-13 17:49:08.988 SingleUserNotebookApp log:158] 304 GET /user/aman.garg/lab/static/main.4dabccaa6191334b21b3.js (aman.garg@::1) 1.57ms
[D 2018-09-13 17:49:09.185 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.186 SingleUserNotebookApp managers:283] Request list kernel specs at: /api/kernelspecs
[D 2018-09-13 17:49:09.187 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.187 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/terminals?1536841149182 (aman.garg@::1) 0.89ms
[I 2018-09-13 17:49:09.191 JupyterHub log:158] 302 GET /api/kernelspecs -> /hub/api/kernelspecs (@::ffff:127.0.0.1) 0.57ms
[W 2018-09-13 17:49:09.198 JupyterHub log:158] 404 GET /hub/api/kernelspecs (@::ffff:127.0.0.1) 2.85ms
[E 2018-09-13 17:49:09.200 SingleUserNotebookApp web:1670] Uncaught exception GET /user/aman.garg/api/kernelspecs?1536841149180 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/user/aman.garg/api/kernelspecs?1536841149180', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(exc_info)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/nb2kg/handlers.py", line 324, in get
kernel_specs = yield gen.maybe_future(ksm.list_kernel_specs())
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(exc_info)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/nb2kg/managers.py", line 284, in list_kernel_specs
response = yield fetch_kg(self.kernelspecs_endpoint, method='GET')
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(exc_info)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/nb2kg/managers.py", line 64, in fetch_kg
response = yield client.fetch(url, **kwargs)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
tornado.httpclient.HTTPClientError: HTTP 404: Not Found
[W 2018-09-13 17:49:09.202 SingleUserNotebookApp handlers:564] Unhandled error
[E 2018-09-13 17:49:09.203 SingleUserNotebookApp log:150] {
"X-Forwarded-Host": "localhost:8888",
"X-Forwarded-Proto": "http",
"X-Forwarded-Port": "8888",
"X-Forwarded-For": "::1",
"Cookie": "jupyterhub-user-aman.garg=2|1:0|10:1536841148|25:jupyterhub-user-aman.garg|48:MmQxMTUyMjYtODQ4ZS00ZTZkLWFhNjYtNGExNzVlMTE0ZmNk|9b846a84d7b692870968904cb8be09f2f1b6790ce2a3b87e73729193496a6703; _xsrf=2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220; username-localhost-9000="2|1:0|10:1534858349|23:username-localhost-9000|44:ZTg5ZjhiNzE1YTRhNDBjYzlhNjYzYjUyMTdlOTRlN2M=|2f81cd64728b2bc8331734e05f7d1beaa184984636a62075e191514146725217"; username-localhost-8085="2|1:0|10:1534946451|23:username-localhost-8085|44:ZWM2ZDBkZTU2MTlmNDE1NThhYzc3YWY0MWQ0MDY1MGE=|ab56d8dcecd2e31f7cc734b48fbb3c726d23a7f787c460ae6dd9ae51a59413da"; jupyterhub-session-id=ce482d6ec67044cdb32974bbe3f0444b; username-localhost-8888="2|1:0|10:1536835429|23:username-localhost-8888|44:Y2U2MTljMjI3ODZlNDRjYmEyNzQ3YWNiZDBiMDA5YjE=|941f03165f39b4c114d20f54f7e8728905631e7ba157cfdf50952fdbe492b5e5"; username-localhost-8890="2|1:0|10:1536835837|23:username-localhost-8890|44:MWFmZTU1YmJmYmIxNDUwZGFiZTUyNTgzMTFjZmMzYTI=|6bb52486f7d613cfb3e5e93ddfdf0669724ef1d4fbb31dd40bc46327ecff8c73"; username-localhost-8889="2|1:0|10:1536836756|23:username-localhost-8889|44:NDIxYmI5MDA5MjQxNDkyYzk1ZWU5M2M0ZmJiZmMxYTA=|f2789b4eb72157e4c873e03dc29616c1da02e92b9bce64d7bc1a61bda87bb9a7"",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Referer": "http://localhost:8888/user/aman.garg/lab?redirects=1",
"Accept": "
/
",
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"X-Xsrftoken": "2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220",
"Connection": "close",
"Host": "localhost:8888"
}
[E 2018-09-13 17:49:09.203 SingleUserNotebookApp log:158] 500 GET /user/aman.garg/api/kernelspecs?1536841149180 (aman.garg@::1) 17.89ms
[D 2018-09-13 17:49:09.226 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.241 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/shortcuts-extension:plugin?1536841149221 (aman.garg@::1) 15.82ms
[D 2018-09-13 17:49:09.243 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.244 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/docmanager-extension:plugin?1536841149224 (aman.garg@::1) 1.65ms
[D 2018-09-13 17:49:09.245 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.246 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/apputils-extension:themes?1536841149225 (aman.garg@::1) 1.71ms
[D 2018-09-13 17:49:09.298 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 17:49:09.299 SingleUserNotebookApp handlers:770] Path @jupyterlab/theme-light-extension/index.css served from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab/themes/@jupyterlab/theme-light-extension/index.css
[D 2018-09-13 17:49:09.299 SingleUserNotebookApp log:158] 304 GET /user/aman.garg/lab/api/themes/@jupyterlab/theme-light-extension/index.css (aman.garg@::1) 1.68ms
[D 2018-09-13 17:49:09.630 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 17:49:09.632 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.648 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/contents/?content=1&1536841149628 (aman.garg@::1) 16.49ms
[D 2018-09-13 17:49:09.651 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.653 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/extensionmanager-extension:plugin?1536841149634 (aman.garg@::1) 3.04ms
[D 2018-09-13 17:49:09.655 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.656 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/notebook-extension:tracker?1536841149643 (aman.garg@::1) 2.33ms
[D 2018-09-13 17:49:09.658 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.660 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/fileeditor-extension:plugin?1536841149645 (aman.garg@::1) 2.18ms
[D 2018-09-13 17:49:09.680 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.682 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/codemirror-extension:commands?1536841149677 (aman.garg@::1) 2.48ms
[D 2018-09-13 17:49:09.686 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.688 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/sessions?1536841149681 (aman.garg@::1) 2.41ms
[D 2018-09-13 17:49:09.718 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:09.718 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/workspaces/user/aman.garg/lab?1536841149714 (aman.garg@::1) 1.49ms
[D 2018-09-13 17:49:10.602 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:49:10.612 SingleUserNotebookApp log:158] 204 PUT /user/aman.garg/lab/api/workspaces/user/aman.garg/lab?1536841150596 (aman.garg@::1) 10.18ms
[I 2018-09-13 17:49:10.645 SingleUserNotebookApp build_handler:43] Build is up to date
[I 2018-09-13 17:49:10.646 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/build?1536841149626 (aman.garg@::1) 1016.73ms
[D 2018-09-13 17:52:23.456 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 17:52:23.464 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/contents/?content=1&1536841343450 (aman.garg@::1) 8.94ms
[D 2018-09-13 17:53:55.780 JupyterHub proxy:678] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
17:53:55.784 - info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 17:53:55.797 JupyterHub proxy:301] Checking routes
[D 2018-09-13 17:59:49.066 JupyterHub proxy:678] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
17:59:49.068 - info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 17:59:49.074 JupyterHub proxy:301] Checking routes
[D 2018-09-13 18:03:55.780 JupyterHub proxy:678] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
18:03:55.782 - info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 18:03:55.787 JupyterHub proxy:301] Checking routes
[D 2018-09-13 18:08:55.779 JupyterHub proxy:678] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
18:08:55.781 - info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 18:08:55.786 JupyterHub proxy:301] Checking routes
[D 2018-09-13 18:13:55.778 JupyterHub proxy:678] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
18:13:55.781 - info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 18:13:55.786 JupyterHub proxy:301] Checking routes
^C
Interrupted
[I 2018-09-13 18:15:38.590 JupyterHub app:1700] Cleaning up single-user servers...
[D 2018-09-13 18:15:38.590 JupyterHub app:1712] Stopping proxy
[I 2018-09-13 18:15:38.590 JupyterHub proxy:619] Cleaning up proxy[8864]...
[D 2018-09-13 18:15:38.590 JupyterHub proxy:520] Removing proxy pid file jupyterhub-proxy.pid
[D 2018-09-13 18:15:38.591 JupyterHub spawner:1191] Interrupting 8878
[I 2018-09-13 18:15:38.593 SingleUserNotebookApp notebookapp:1617] Shutting down 0 kernels
[I 2018-09-13 18:15:39.042 JupyterHub app:1733] ...done
(jupyterhub-nb) ➜ python3 cd
(jupyterhub-nb) ➜ ~
(jupyterhub-nb) ➜ ~ vi ~/.jupyter/jupyterhub_config.py
(jupyterhub-nb) ➜ ~ vi ~/.jupyter/jupyter_notebook_config.py
(jupyterhub-nb) ➜ ~ sudo jupyterhub --port=8888 -f /Users/aman.garg/.jupyter/jupyterhub_config.py --debug
Password:
[D 2018-09-13 18:35:44.461 JupyterHub application:555] Looking for /Users/aman.garg/.jupyter/jupyterhub_config in /Users/aman.garg
[D 2018-09-13 18:35:44.462 JupyterHub application:577] Loaded config file: /Users/aman.garg/.jupyter/jupyterhub_config.py
[I 2018-09-13 18:35:44.463 JupyterHub app:1667] Using Authenticator: jupyterhub.auth.PAMAuthenticator-0.9.2
[I 2018-09-13 18:35:44.463 JupyterHub app:1667] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-0.9.2
[I 2018-09-13 18:35:44.467 JupyterHub app:1014] Loading cookie_secret from /Users/aman.garg/jupyterhub_cookie_secret
[D 2018-09-13 18:35:44.467 JupyterHub app:1069] Connecting to db: sqlite:///jupyterhub.sqlite
[D 2018-09-13 18:35:44.496 JupyterHub orm:685] database schema version found: 896818069c98
[I 2018-09-13 18:35:44.501 JupyterHub proxy:431] Generating new CONFIGPROXY_AUTH_TOKEN
[W 2018-09-13 18:35:44.502 JupyterHub app:1171] No admin users, admin interface will be unavailable.
[W 2018-09-13 18:35:44.502 JupyterHub app:1172] Add any administrative users to c.Authenticator.admin_users in config.
[I 2018-09-13 18:35:44.502 JupyterHub app:1199] Not using whitelist. Any authenticated user will be allowed.
[D 2018-09-13 18:35:44.554 JupyterHub app:1471] Loading state for aman.garg from db
[D 2018-09-13 18:35:44.556 JupyterHub app:1471] Loading state for souvik.gayen from db
[D 2018-09-13 18:35:44.557 JupyterHub app:1487] Loaded users:
aman.garg
souvik.gayen
[W 2018-09-13 18:35:44.558 JupyterHub app:1513] Deleting OAuth client jupyterhub-user-aman.garg
[I 2018-09-13 18:35:44.574 JupyterHub app:1849] Hub API listening on http://127.0.0.1:8081/hub/
[W 2018-09-13 18:35:44.575 JupyterHub proxy:560] Running JupyterHub without SSL. I hope there is SSL termination happening somewhere else...
[I 2018-09-13 18:35:44.575 JupyterHub proxy:562] Starting proxy @ http://:8888/
[D 2018-09-13 18:35:44.575 JupyterHub proxy:563] Proxy cmd: ['configurable-http-proxy', '--ip', '', '--port', '8888', '--api-ip', '127.0.0.1', '--api-port', '8001', '--error-target', 'http://127.0.0.1:8081/hub/error']
[D 2018-09-13 18:35:44.579 JupyterHub proxy:512] Writing proxy pid file: jupyterhub-proxy.pid
18:35:44.990 - info: [ConfigProxy] Proxying http://
:8888 to (no default)
18:35:44.993 - info: [ConfigProxy] Proxy API at http://127.0.0.1:8001/api/routes
[D 2018-09-13 18:35:45.540 JupyterHub proxy:598] Proxy started and appears to be up
[D 2018-09-13 18:35:45.540 JupyterHub proxy:296] Fetching routes to check
[D 2018-09-13 18:35:45.542 JupyterHub proxy:678] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
18:35:45.549 - info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 18:35:45.549 JupyterHub proxy:301] Checking routes
[I 2018-09-13 18:35:45.550 JupyterHub proxy:370] Adding default route for Hub: / => http://127.0.0.1:8081
[D 2018-09-13 18:35:45.550 JupyterHub proxy:678] Proxy: Fetching POST http://127.0.0.1:8001/api/routes/
18:35:45.551 - info: [ConfigProxy] Adding route / -> http://127.0.0.1:8081
18:35:45.552 - info: [ConfigProxy] 201 POST /api/routes/
[I 2018-09-13 18:35:45.552 JupyterHub app:1906] JupyterHub is now running at http://:8888/
^C
Interrupted
[I 2018-09-13 18:35:45.877 JupyterHub app:1700] Cleaning up single-user servers...
[D 2018-09-13 18:35:45.877 JupyterHub app:1712] Stopping proxy
[I 2018-09-13 18:35:45.877 JupyterHub proxy:619] Cleaning up proxy[9791]...
[D 2018-09-13 18:35:45.878 JupyterHub proxy:520] Removing proxy pid file jupyterhub-proxy.pid
[I 2018-09-13 18:35:45.879 JupyterHub app:1733] ...done
(jupyterhub-nb) ➜ ~ sudo jupyterhub --port=8888 -f /Users/aman.garg/.jupyter/jupyterhub_config.py --debug
[D 2018-09-13 18:35:50.018 JupyterHub application:555] Looking for /Users/aman.garg/.jupyter/jupyterhub_config in /Users/aman.garg
[D 2018-09-13 18:35:50.018 JupyterHub application:577] Loaded config file: /Users/aman.garg/.jupyter/jupyterhub_config.py
[I 2018-09-13 18:35:50.020 JupyterHub app:1667] Using Authenticator: jupyterhub.auth.PAMAuthenticator-0.9.2
[I 2018-09-13 18:35:50.020 JupyterHub app:1667] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-0.9.2
[I 2018-09-13 18:35:50.023 JupyterHub app:1014] Loading cookie_secret from /Users/aman.garg/jupyterhub_cookie_secret
[D 2018-09-13 18:35:50.024 JupyterHub app:1069] Connecting to db: sqlite:///jupyterhub.sqlite
[D 2018-09-13 18:35:50.051 JupyterHub orm:685] database schema version found: 896818069c98
[I 2018-09-13 18:35:50.056 JupyterHub proxy:431] Generating new CONFIGPROXY_AUTH_TOKEN
[W 2018-09-13 18:35:50.057 JupyterHub app:1171] No admin users, admin interface will be unavailable.
[W 2018-09-13 18:35:50.058 JupyterHub app:1172] Add any administrative users to c.Authenticator.admin_users in config.
[I 2018-09-13 18:35:50.058 JupyterHub app:1199] Not using whitelist. Any authenticated user will be allowed.
[D 2018-09-13 18:35:50.091 JupyterHub app:1471] Loading state for aman.garg from db
[D 2018-09-13 18:35:50.093 JupyterHub app:1471] Loading state for souvik.gayen from db
[D 2018-09-13 18:35:50.094 JupyterHub app:1487] Loaded users:
aman.garg
souvik.gayen
[I 2018-09-13 18:35:50.102 JupyterHub app:1849] Hub API listening on http://127.0.0.1:8081/hub/
[W 2018-09-13 18:35:50.103 JupyterHub proxy:560] Running JupyterHub without SSL. I hope there is SSL termination happening somewhere else...
[I 2018-09-13 18:35:50.103 JupyterHub proxy:562] Starting proxy @ http://:8888/
[D 2018-09-13 18:35:50.103 JupyterHub proxy:563] Proxy cmd: ['configurable-http-proxy', '--ip', '', '--port', '8888', '--api-ip', '127.0.0.1', '--api-port', '8001', '--error-target', 'http://127.0.0.1:8081/hub/error']
[D 2018-09-13 18:35:50.107 JupyterHub proxy:512] Writing proxy pid file: jupyterhub-proxy.pid
18:35:50.508 - info: [ConfigProxy] Proxying http://*:8888 to (no default)
18:35:50.511 - info: [ConfigProxy] Proxy API at http://127.0.0.1:8001/api/routes
[D 2018-09-13 18:35:50.823 JupyterHub proxy:598] Proxy started and appears to be up
[D 2018-09-13 18:35:50.823 JupyterHub proxy:296] Fetching routes to check
[D 2018-09-13 18:35:50.825 JupyterHub proxy:678] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
18:35:50.834 - info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 18:35:50.834 JupyterHub proxy:301] Checking routes
[I 2018-09-13 18:35:50.834 JupyterHub proxy:370] Adding default route for Hub: / => http://127.0.0.1:8081
[D 2018-09-13 18:35:50.835 JupyterHub proxy:678] Proxy: Fetching POST http://127.0.0.1:8001/api/routes/
18:35:50.836 - info: [ConfigProxy] Adding route / -> http://127.0.0.1:8081
18:35:50.837 - info: [ConfigProxy] 201 POST /api/routes/
[I 2018-09-13 18:35:50.837 JupyterHub app:1906] JupyterHub is now running at http://:8888/
[I 2018-09-13 18:35:55.495 JupyterHub log:158] 302 GET /user/aman.garg/api/contents/?content=1&1536843955481 -> /hub/user/aman.garg/api/contents/?content=1&1536843955481 (@::1) 1.27ms
[W 2018-09-13 18:35:55.503 JupyterHub base:242] Invalid or expired cookie token
[E 2018-09-13 18:35:55.504 JupyterHub web:1670] Uncaught exception GET /hub/user/aman.garg/api/contents/?content=1&1536843955481 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/hub/user/aman.garg/api/contents/?content=1&1536843955481', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 961, in get
if "api" in user_path.split("/") and not user.active:
AttributeError: 'NoneType' object has no attribute 'active'

[D 2018-09-13 18:35:55.507 JupyterHub base:880] No template for 500
[E 2018-09-13 18:35:55.540 JupyterHub log:150] {
"X-Forwarded-Host": "localhost:8888",
"X-Forwarded-Proto": "http",
"X-Forwarded-Port": "8888",
"X-Forwarded-For": "::1",
"Cookie": "jupyterhub-hub-login="2|1:0|10:1536841147|20:jupyterhub-hub-login|44:Yzk1YzU0MTgyOGVlNGIyMzlhNzdiNjFhYTEyYzg4OGU=|27d77fbeaf9a77a5dbae4cc411cebd9f1874c414073799d044aa32afccadf921"; _xsrf=2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220; username-localhost-9000="2|1:0|10:1534858349|23:username-localhost-9000|44:ZTg5ZjhiNzE1YTRhNDBjYzlhNjYzYjUyMTdlOTRlN2M=|2f81cd64728b2bc8331734e05f7d1beaa184984636a62075e191514146725217"; username-localhost-8085="2|1:0|10:1534946451|23:username-localhost-8085|44:ZWM2ZDBkZTU2MTlmNDE1NThhYzc3YWY0MWQ0MDY1MGE=|ab56d8dcecd2e31f7cc734b48fbb3c726d23a7f787c460ae6dd9ae51a59413da"; jupyterhub-session-id=ce482d6ec67044cdb32974bbe3f0444b; username-localhost-8888="2|1:0|10:1536835429|23:username-localhost-8888|44:Y2U2MTljMjI3ODZlNDRjYmEyNzQ3YWNiZDBiMDA5YjE=|941f03165f39b4c114d20f54f7e8728905631e7ba157cfdf50952fdbe492b5e5"; username-localhost-8890="2|1:0|10:1536835837|23:username-localhost-8890|44:MWFmZTU1YmJmYmIxNDUwZGFiZTUyNTgzMTFjZmMzYTI=|6bb52486f7d613cfb3e5e93ddfdf0669724ef1d4fbb31dd40bc46327ecff8c73"; username-localhost-8889="2|1:0|10:1536836756|23:username-localhost-8889|44:NDIxYmI5MDA5MjQxNDkyYzk1ZWU5M2M0ZmJiZmMxYTA=|f2789b4eb72157e4c873e03dc29616c1da02e92b9bce64d7bc1a61bda87bb9a7"",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Referer": "http://localhost:8888/user/aman.garg/lab?redirects=1",
"Accept": "/",
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"X-Xsrftoken": "2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220",
"Connection": "close",
"Host": "localhost:8888"
}
[E 2018-09-13 18:35:55.541 JupyterHub log:158] 500 GET /hub/user/aman.garg/api/contents/?content=1&1536843955481 (@::1) 38.07ms
[I 2018-09-13 18:35:58.974 JupyterHub log:158] 302 GET / -> /hub (@::1) 0.57ms
[I 2018-09-13 18:35:58.981 JupyterHub log:158] 302 GET /hub -> /hub/ (@::1) 0.59ms
[I 2018-09-13 18:35:58.987 JupyterHub log:158] 302 GET /hub/ -> /hub/login (@::1) 0.60ms
[I 2018-09-13 18:35:58.999 JupyterHub log:158] 200 GET /hub/login (@::1) 6.98ms
[D 2018-09-13 18:36:04.616 JupyterHub base:362] Setting cookie for aman.garg: jupyterhub-hub-login
[D 2018-09-13 18:36:04.616 JupyterHub base:357] Setting cookie jupyterhub-hub-login: {'httponly': True, 'path': '/hub/'}
[I 2018-09-13 18:36:04.616 JupyterHub base:499] User logged in: aman.garg
[I 2018-09-13 18:36:04.617 JupyterHub log:158] 302 POST /hub/login?next= -> /user/aman.garg/ (aman.garg@::1) 97.89ms
[I 2018-09-13 18:36:04.625 JupyterHub log:158] 302 GET /user/aman.garg/ -> /hub/user/aman.garg/ (@::1) 0.56ms
[D 2018-09-13 18:36:04.635 JupyterHub user:190] Creating <class 'jupyterhub.spawner.LocalProcessSpawner'> for aman.garg:
[D 2018-09-13 18:36:04.636 JupyterHub base:603] Initiating spawn for aman.garg
[D 2018-09-13 18:36:04.636 JupyterHub base:609] 0/100 concurrent spawns
[D 2018-09-13 18:36:04.636 JupyterHub base:612] 0 active servers
[I 2018-09-13 18:36:04.669 JupyterHub spawner:1099] Spawning jupyterhub-singleuser --port=62340 '--NotebookApp.default_url="/lab"' --debug
[D 2018-09-13 18:36:04.697 JupyterHub spawner:850] Polling subprocess every 30s
[D 2018-09-13 18:36:05.177 SingleUserNotebookApp application:177] Searching ['/Users/aman.garg', '/Users/aman.garg/.jupyter', '/Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2018-09-13 18:36:05.178 SingleUserNotebookApp application:555] Looking for jupyter_config in /etc/jupyter
[D 2018-09-13 18:36:05.178 SingleUserNotebookApp application:555] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2018-09-13 18:36:05.178 SingleUserNotebookApp application:555] Looking for jupyter_config in /Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter
[D 2018-09-13 18:36:05.178 SingleUserNotebookApp application:555] Looking for jupyter_config in /Users/aman.garg/.jupyter
[D 2018-09-13 18:36:05.178 SingleUserNotebookApp application:555] Looking for jupyter_config in /Users/aman.garg
[D 2018-09-13 18:36:05.179 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /etc/jupyter
[D 2018-09-13 18:36:05.179 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 2018-09-13 18:36:05.179 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter
[D 2018-09-13 18:36:05.180 SingleUserNotebookApp application:577] Loaded config file: /Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 18:36:05.180 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /Users/aman.garg/.jupyter
[D 2018-09-13 18:36:05.187 SingleUserNotebookApp application:577] Loaded config file: /Users/aman.garg/.jupyter/jupyter_notebook_config.py
[D 2018-09-13 18:36:05.187 SingleUserNotebookApp application:555] Looking for jupyter_notebook_config in /Users/aman.garg
[D 2018-09-13 18:36:05.429 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 18:36:05.430 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 18:36:05.430 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/Users/aman.garg/anaconda2/envs/jupyterhub-nb/etc/jupyter/jupyter_notebook_config.json
[D 2018-09-13 18:36:05.431 SingleUserNotebookApp config_manager:98] Paths used for configuration of jupyter_notebook_config:
/Users/aman.garg/.jupyter/jupyter_notebook_config.json
[I 2018-09-13 18:36:05.463 SingleUserNotebookApp extension:59] JupyterLab extension loaded from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterlab
[I 2018-09-13 18:36:05.463 SingleUserNotebookApp extension:60] JupyterLab application directory is /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab
[I 2018-09-13 18:36:05.468 SingleUserNotebookApp init:18] Loaded nb2kg extension
[I 2018-09-13 18:36:05.468 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernelspecs/(?P<kernel_name>[\w\.\-%]+)$', <class 'nb2kg.handlers.KernelSpecHandler'>, kwargs=None, name=None)
[I 2018-09-13 18:36:05.468 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernelspecs$', <class 'nb2kg.handlers.MainKernelSpecHandler'>, kwargs=None, name=None)
[I 2018-09-13 18:36:05.468 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels/(?P<kernel_id>\w+-\w+-\w+-\w+-\w+)/channels$', <class 'nb2kg.handlers.WebSocketChannelsHandler'>, kwargs=None, name=None)
[I 2018-09-13 18:36:05.468 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels/(?P<kernel_id>\w+-\w+-\w+-\w+-\w+)/(?Prestart|interrupt)$', <class 'nb2kg.handlers.KernelActionHandler'>, kwargs=None, name=None)
[I 2018-09-13 18:36:05.468 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels/(?P<kernel_id>\w+-\w+-\w+-\w+-\w+)$', <class 'nb2kg.handlers.KernelHandler'>, kwargs=None, name=None)
[I 2018-09-13 18:36:05.468 SingleUserNotebookApp init:42] Overriding handler URLSpec('/user/aman.garg/api/kernels$', <class 'nb2kg.handlers.MainKernelHandler'>, kwargs=None, name=None)
[I 2018-09-13 18:36:05.469 SingleUserNotebookApp singleuser:405] Starting jupyterhub-singleuser server version 0.9.2
[I 2018-09-13 18:36:05.484 JupyterHub log:158] 200 GET /hub/api (@127.0.0.1) 1.01ms
[D 2018-09-13 18:36:05.485 SingleUserNotebookApp _version:53] jupyterhub and jupyterhub-singleuser both on version 0.9.2
[I 2018-09-13 18:36:05.485 SingleUserNotebookApp notebookapp:1685] Serving notebooks from local directory: /Users/aman.garg
[I 2018-09-13 18:36:05.485 SingleUserNotebookApp notebookapp:1685] The Jupyter Notebook is running at:
[I 2018-09-13 18:36:05.485 SingleUserNotebookApp notebookapp:1685] http://127.0.0.1:62340/user/aman.garg/
[I 2018-09-13 18:36:05.485 SingleUserNotebookApp notebookapp:1686] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2018-09-13 18:36:05.999 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/ -> /user/aman.garg/lab? (@127.0.0.1) 0.77ms
[D 2018-09-13 18:36:05.999 JupyterHub utils:188] Server at http://127.0.0.1:62340/user/aman.garg/ responded with 302
[D 2018-09-13 18:36:05.999 JupyterHub _version:53] jupyterhub and jupyterhub-singleuser both on version 0.9.2
[I 2018-09-13 18:36:06.000 JupyterHub base:628] User aman.garg took 1.363 seconds to start
[I 2018-09-13 18:36:06.000 JupyterHub proxy:242] Adding user aman.garg to proxy /user/aman.garg/ => http://127.0.0.1:62340
[D 2018-09-13 18:36:06.000 JupyterHub proxy:678] Proxy: Fetching POST http://127.0.0.1:8001/api/routes/user/aman.garg
18:36:06.001 - info: [ConfigProxy] Adding route /user/aman.garg -> http://127.0.0.1:62340
18:36:06.001 - info: [ConfigProxy] 201 POST /api/routes/user/aman.garg
[I 2018-09-13 18:36:06.003 JupyterHub log:158] 302 GET /hub/user/aman.garg/ -> /user/aman.garg/?redirects=1 (aman.garg@::1) 1373.46ms
[I 2018-09-13 18:36:06.009 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/?redirects=1 -> /user/aman.garg/lab?redirects=1 (@::1) 0.59ms
[D 2018-09-13 18:36:06.015 SingleUserNotebookApp auth:421] No user identified
[D 2018-09-13 18:36:06.016 SingleUserNotebookApp auth:741] Redirecting to login url: /hub/api/oauth2/authorize?client_id=jupyterhub-user-aman.garg&redirect_uri=%2Fuser%2Faman.garg%2Foauth_callback&response_type=code&state=eyJ1dWlkIjogIjI0ZTk5MDlmYmM0YzRiYWI4MjliMGY0MmI1YTI4NDA1IiwgIm5leHRfdXJsIjogIi91c2VyL2FtYW4uZ2FyZy9sYWI_cmVkaXJlY3RzPTEifQ
[I 2018-09-13 18:36:06.016 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/lab?redirects=1 -> /hub/api/oauth2/authorize?client_id=jupyterhub-user-aman.garg&redirect_uri=%2Fuser%2Faman.garg%2Foauth_callback&response_type=code&state=[secret] (@::1) 2.54ms
[I 2018-09-13 18:36:06.038 JupyterHub log:158] 302 GET /hub/api/oauth2/authorize?client_id=jupyterhub-user-aman.garg&redirect_uri=%2Fuser%2Faman.garg%2Foauth_callback&response_type=code&state=[secret] -> /user/aman.garg/oauth_callback?code=[secret]&state=[secret] (aman.garg@::1) 14.95ms
[D 2018-09-13 18:36:06.045 SingleUserNotebookApp auth:421] No user identified
[D 2018-09-13 18:36:06.074 SingleUserNotebookApp auth:263] Cache miss: token:ce482d6ec67044cdb32974bbe3f0444b:19df86b0-b582-4216-807e-87011d20a19d
[I 2018-09-13 18:36:06.078 JupyterHub log:158] 200 POST /hub/api/oauth2/token (aman.garg@127.0.0.1) 19.96ms
[D 2018-09-13 18:36:06.092 SingleUserNotebookApp auth:269] Received request from Hub user {'kind': 'user', 'name': 'aman.garg', 'admin': False, 'groups': [], 'server': '/user/aman.garg/', 'pending': None, 'created': '2018-08-22T10:10:37.285516Z', 'last_activity': '2018-09-13T13:06:06.087817Z', 'servers': None}
[I 2018-09-13 18:36:06.092 SingleUserNotebookApp auth:875] Logged-in user {'kind': 'user', 'name': 'aman.garg', 'admin': False, 'groups': [], 'server': '/user/aman.garg/', 'pending': None, 'created': '2018-08-22T10:10:37.285516Z', 'last_activity': '2018-09-13T13:06:06.087817Z', 'servers': None}
[D 2018-09-13 18:36:06.092 SingleUserNotebookApp auth:656] Setting oauth cookie for ::1: jupyterhub-user-aman.garg, {'path': '/user/aman.garg/', 'httponly': True}
[I 2018-09-13 18:36:06.093 SingleUserNotebookApp log:158] 302 GET /user/aman.garg/oauth_callback?code=[secret]&state=[secret] -> /user/aman.garg/lab?redirects=1 (@::1) 48.83ms
[I 2018-09-13 18:36:06.097 JupyterHub log:158] 200 GET /hub/api/authorizations/token/[secret] (aman.garg@127.0.0.1) 12.77ms
[D 2018-09-13 18:36:06.100 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 18:36:06.100 SingleUserNotebookApp handlers:264] Using contents: services/contents
[I 2018-09-13 18:36:06.108 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab?redirects=1 (aman.garg@::1) 9.53ms
[D 2018-09-13 18:36:06.126 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 18:36:06.126 SingleUserNotebookApp handlers:770] Path vendorsmain.332e64a3f8e79a6a6a50.js served from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab/static/vendorsmain.332e64a3f8e79a6a6a50.js
[D 2018-09-13 18:36:06.127 SingleUserNotebookApp log:158] 304 GET /user/aman.garg/lab/static/vendors~main.332e64a3f8e79a6a6a50.js (aman.garg@::1) 1.85ms
[D 2018-09-13 18:36:06.129 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 18:36:06.129 SingleUserNotebookApp handlers:770] Path main.4dabccaa6191334b21b3.js served from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab/static/main.4dabccaa6191334b21b3.js
[D 2018-09-13 18:36:06.130 SingleUserNotebookApp log:158] 304 GET /user/aman.garg/lab/static/main.4dabccaa6191334b21b3.js (aman.garg@::1) 2.18ms
[D 2018-09-13 18:36:06.460 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.461 SingleUserNotebookApp managers:283] Request list kernel specs at: /api/kernelspecs
[D 2018-09-13 18:36:06.462 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.462 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/terminals?1536843966457 (aman.garg@::1) 0.90ms
[I 2018-09-13 18:36:06.466 JupyterHub log:158] 302 GET /api/kernelspecs -> /hub/api/kernelspecs (@::ffff:127.0.0.1) 0.62ms
[W 2018-09-13 18:36:06.473 JupyterHub log:158] 404 GET /hub/api/kernelspecs (@::ffff:127.0.0.1) 2.75ms
[E 2018-09-13 18:36:06.474 SingleUserNotebookApp web:1670] Uncaught exception GET /user/aman.garg/api/kernelspecs?1536843966455 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/user/aman.garg/api/kernelspecs?1536843966455', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/nb2kg/handlers.py", line 324, in get
kernel_specs = yield gen.maybe_future(ksm.list_kernel_specs())
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(exc_info)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/nb2kg/managers.py", line 284, in list_kernel_specs
response = yield fetch_kg(self.kernelspecs_endpoint, method='GET')
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(exc_info)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/nb2kg/managers.py", line 64, in fetch_kg
response = yield client.fetch(url, **kwargs)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
tornado.httpclient.HTTPClientError: HTTP 404: Not Found
[W 2018-09-13 18:36:06.477 SingleUserNotebookApp handlers:564] Unhandled error
[E 2018-09-13 18:36:06.477 SingleUserNotebookApp log:150] {
"X-Forwarded-Host": "localhost:8888",
"X-Forwarded-Proto": "http",
"X-Forwarded-Port": "8888",
"X-Forwarded-For": "::1",
"Cookie": "jupyterhub-user-aman.garg=2|1:0|10:1536843966|25:jupyterhub-user-aman.garg|48:MTlkZjg2YjAtYjU4Mi00MjE2LTgwN2UtODcwMTFkMjBhMTlk|e0eca790ba4133f8a4593cc534478c9310f5f1d536501c4d2897909ebbdbf665; _xsrf=2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220; username-localhost-9000="2|1:0|10:1534858349|23:username-localhost-9000|44:ZTg5ZjhiNzE1YTRhNDBjYzlhNjYzYjUyMTdlOTRlN2M=|2f81cd64728b2bc8331734e05f7d1beaa184984636a62075e191514146725217"; username-localhost-8085="2|1:0|10:1534946451|23:username-localhost-8085|44:ZWM2ZDBkZTU2MTlmNDE1NThhYzc3YWY0MWQ0MDY1MGE=|ab56d8dcecd2e31f7cc734b48fbb3c726d23a7f787c460ae6dd9ae51a59413da"; jupyterhub-session-id=ce482d6ec67044cdb32974bbe3f0444b; username-localhost-8888="2|1:0|10:1536835429|23:username-localhost-8888|44:Y2U2MTljMjI3ODZlNDRjYmEyNzQ3YWNiZDBiMDA5YjE=|941f03165f39b4c114d20f54f7e8728905631e7ba157cfdf50952fdbe492b5e5"; username-localhost-8890="2|1:0|10:1536835837|23:username-localhost-8890|44:MWFmZTU1YmJmYmIxNDUwZGFiZTUyNTgzMTFjZmMzYTI=|6bb52486f7d613cfb3e5e93ddfdf0669724ef1d4fbb31dd40bc46327ecff8c73"; username-localhost-8889="2|1:0|10:1536836756|23:username-localhost-8889|44:NDIxYmI5MDA5MjQxNDkyYzk1ZWU5M2M0ZmJiZmMxYTA=|f2789b4eb72157e4c873e03dc29616c1da02e92b9bce64d7bc1a61bda87bb9a7"",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Referer": "http://localhost:8888/user/aman.garg/lab?redirects=1",
"Accept": "
/
",
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"X-Xsrftoken": "2|26f7c118|1b54f18f88565dcfd4ee1fc9b02a6121|1534490220",
"Connection": "close",
"Host": "localhost:8888"
}
[E 2018-09-13 18:36:06.477 SingleUserNotebookApp log:158] 500 GET /user/aman.garg/api/kernelspecs?1536843966455 (aman.garg@::1) 17.50ms
[D 2018-09-13 18:36:06.500 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.515 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/shortcuts-extension:plugin?1536843966494 (aman.garg@::1) 16.01ms
[D 2018-09-13 18:36:06.517 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.519 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/docmanager-extension:plugin?1536843966498 (aman.garg@::1) 2.70ms
[D 2018-09-13 18:36:06.521 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.522 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/apputils-extension:themes?1536843966499 (aman.garg@::1) 1.76ms
[D 2018-09-13 18:36:06.573 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 18:36:06.574 SingleUserNotebookApp handlers:770] Path @jupyterlab/theme-light-extension/index.css served from /Users/aman.garg/anaconda2/envs/jupyterhub-nb/share/jupyter/lab/themes/@jupyterlab/theme-light-extension/index.css
[D 2018-09-13 18:36:06.574 SingleUserNotebookApp log:158] 304 GET /user/aman.garg/lab/api/themes/@jupyterlab/theme-light-extension/index.css (aman.garg@::1) 1.87ms
[D 2018-09-13 18:36:06.817 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[D 2018-09-13 18:36:06.819 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.834 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/contents/?content=1&1536843966815 (aman.garg@::1) 15.76ms
[D 2018-09-13 18:36:06.838 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.839 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/extensionmanager-extension:plugin?1536843966822 (aman.garg@::1) 2.70ms
[D 2018-09-13 18:36:06.841 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.843 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/notebook-extension:tracker?1536843966829 (aman.garg@::1) 2.45ms
[D 2018-09-13 18:36:06.844 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.846 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/fileeditor-extension:plugin?1536843966832 (aman.garg@::1) 2.28ms
[D 2018-09-13 18:36:06.867 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.869 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/settings/@jupyterlab/codemirror-extension:commands?1536843966862 (aman.garg@::1) 3.10ms
[D 2018-09-13 18:36:06.872 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.873 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/api/sessions?1536843966866 (aman.garg@::1) 2.18ms
[D 2018-09-13 18:36:06.905 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:06.906 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/workspaces/user/aman.garg/lab?1536843966899 (aman.garg@::1) 2.04ms
[D 2018-09-13 18:36:07.804 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user aman.garg
[I 2018-09-13 18:36:07.805 SingleUserNotebookApp log:158] 204 PUT /user/aman.garg/lab/api/workspaces/user/aman.garg/lab?1536843967798 (aman.garg@::1) 2.13ms
[I 2018-09-13 18:36:07.831 SingleUserNotebookApp build_handler:43] Build is up to date
[I 2018-09-13 18:36:07.832 SingleUserNotebookApp log:158] 200 GET /user/aman.garg/lab/api/build?1536843966812 (aman.garg@::1) 1015.76ms

@willingc

This comment has been minimized.

Copy link
Contributor

willingc commented Sep 18, 2018

Hi @amangarg96,
I'm sorry that you are having difficulty with your configuration. Since you have an open issue on the Kernel Gateway repo jupyter/enterprise_gateway#448, I am closing here as that repo would be the best place for this configuration question. Thanks.

@willingc willingc closed this Sep 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment