Hi,
We are using HDP 3.0 cluster and Jhub was working fine.
I removed py2 kernal, restarted Jhub and it is fine there. I could not see py2 in jhub. It worked as expected.
Also I was asked to uninstall pycrypto python package. I could not uninstall using pip or conda so I removed only the pycrypto related packages from site-packages path.
I do not face any issues with python but when I tried to restart jupyterhub I am stuck. It is not restarting. I also reverted back and added my py2 kernel also did pip install pycrypto but still it is not restarting. I am not sure whether this issue is happened due to the above two actions or not.
P.S: I just removed these links 127.0.0.1:8081/hub/* from Log trace as I could post more than 2 links.
Log trace:
/usr/share/miniconda2/envs/py36/bin/jupyterhub --debug
[D 2021-03-13 21:25:09.182 JupyterHub application:555] Looking for jupyterhub_config in /root
[I 2021-03-13 21:25:09.183 JupyterHub app:2120] Using Authenticator: jupyterhub.auth.PAMAuthenticator-1.0.0
[I 2021-03-13 21:25:09.183 JupyterHub app:2120] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-1.0.0
[I 2021-03-13 21:25:09.188 JupyterHub app:1257] Loading cookie_secret from /root/jupyterhub_cookie_secret
[D 2021-03-13 21:25:09.189 JupyterHub app:1424] Connecting to db: sqlite:///jupyterhub.sqlite
[D 2021-03-13 21:25:09.211 JupyterHub orm:749] database schema version found: 4dc2d5a8c53c
[I 2021-03-13 21:25:09.216 JupyterHub proxy:460] Generating new CONFIGPROXY_AUTH_TOKEN
[W 2021-03-13 21:25:09.217 JupyterHub app:1532] No admin users, admin interface will be unavailable.
[W 2021-03-13 21:25:09.217 JupyterHub app:1534] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2021-03-13 21:25:09.218 JupyterHub app:1563] Not using whitelist. Any authenticated user will be allowed.
[D 2021-03-13 21:25:09.248 JupyterHub app:1926] Loaded users:
[I 2021-03-13 21:25:09.255 JupyterHub app:2337] Hub API listening on http://127.0.0.1:8081/hub/
[W 2021-03-13 21:25:09.256 JupyterHub proxy:642] Running JupyterHub without SSL. I hope there is SSL termination happening somewhere else...
[I 2021-03-13 21:25:09.256 JupyterHub proxy:645] Starting proxy @ http://:8000
[D 2021-03-13 21:25:09.257 JupyterHub proxy:646] Proxy cmd: ['configurable-http-proxy', '--ip', '', '--port', '8000', '--api-ip', '127.0.0.1', '--api-port', '8001', '--error-target', 'http://127.0.0.1:8081/hub/error']
[D 2021-03-13 21:25:09.260 JupyterHub proxy:561] Writing proxy pid file: jupyterhub-proxy.pid
21:25:09.444 [ConfigProxy] info: Proxying http://*:8000 to (no default)
21:25:09.447 [ConfigProxy] info: Proxy API at http://127.0.0.1:8001/api/routes
[D 2021-03-13 21:25:09.582 JupyterHub proxy:681] Proxy started and appears to be up
[D 2021-03-13 21:25:09.583 JupyterHub proxy:314] Fetching routes to check
[D 2021-03-13 21:25:09.584 JupyterHub proxy:765] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
21:25:09.592 [ConfigProxy] info: 200 GET /api/routes
[I 2021-03-13 21:25:09.593 JupyterHub proxy:319] Checking routes
[I 2021-03-13 21:25:09.593 JupyterHub proxy:399] Adding default route for Hub: / => http://127.0.0.1:8081
[D 2021-03-13 21:25:09.593 JupyterHub proxy:765] Proxy: Fetching POST http://127.0.0.1:8001/api/routes/
21:25:09.595 [ConfigProxy] info: Adding route / -> http://127.0.0.1:8081
21:25:09.596 [ConfigProxy] info: Route added / -> http://127.0.0.1:8081
21:25:09.597 [ConfigProxy] info: 201 POST /api/routes/
[I 2021-03-13 21:25:09.597 JupyterHub app:2422] JupyterHub is now running at http://:8000
[D 2021-03-13 21:30:09.598 JupyterHub proxy:765] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
21:30:09.600 [ConfigProxy] info: 200 GET /api/routes
[I 2021-03-13 21:30:09.601 JupyterHub proxy:319] Checking routes
[D 2021-03-13 21:35:09.598 JupyterHub proxy:765] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
21:35:09.600 [ConfigProxy] info: 200 GET /api/routes
[I 2021-03-13 21:35:09.600 JupyterHub proxy:319] Checking routes
[D 2021-03-13 21:40:09.599 JupyterHub proxy:765] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
21:40:09.601 [ConfigProxy] info: 200 GET /api/routes
[I 2021-03-13 21:40:09.601 JupyterHub proxy:319] Checking routes
[D 2021-03-13 21:45:09.599 JupyterHub proxy:765] Proxy: Fetching GET http://127.0.0.1:8001/api/routes
21:45:09.600 [ConfigProxy] info: 200 GET /api/routes
Jupyter troubleshoot
$PATH:
/usr/share/miniconda2/bin
/usr/share/miniconda2/bin
/usr/lib64/qt-3.3/bin
/usr/local/bin
/usr/bin
/usr/local/sbin
/usr/sbin
/home/hdsuser/.local/bin
/home/hdsuser/bin
sys.path:
/usr/share/miniconda2/bin
/usr/share/miniconda2/lib/python27.zip
/usr/share/miniconda2/lib/python2.7
/usr/share/miniconda2/lib/python2.7/plat-linux2
/usr/share/miniconda2/lib/python2.7/lib-tk
/usr/share/miniconda2/lib/python2.7/lib-old
/usr/share/miniconda2/lib/python2.7/lib-dynload
/usr/share/miniconda2/lib/python2.7/site-packages
sys.executable:
/usr/share/miniconda2/bin/python
sys.version:
2.7.15 |Anaconda, Inc.| (default, May 1 2018, 23:32:55)
[GCC 7.2.0]
platform.platform():
Linux-3.10.0-1160.15.2.el7.x86_64-x86_64-with-redhat-7.2-Maipo
which -a jupyter:
/usr/share/miniconda2/bin/jupyter
/usr/share/miniconda2/bin/jupyter
Can any one please look into this assist to resolve this?