Not able to access Jupteryhub - I am using Docker Container for Jupyter.
After executing command - jupyterhub --debug
getting below errors -
JupyterHub app:1677] Error adding user [username] already in db
Traceback (most recent call last):
File “/anaconda3/lib/python3.7/site-packages/jupyterhub/app.py”, line 1675, in init_users
await maybe_future(self.authenticator.add_user(user))
File “/anaconda3/lib/python3.7/site-packages/jupyterhub/auth.py”, line 726, in add_user
user.name
KeyError: ‘User sschecte does not exist on the system. Set LocalAuthenticator.create_system_users=True to automatically create system users from jupyterhub users.’
for all users
and
I 2020-05-06 08:03:38.419 JupyterHub app:2311] Initialized 0 spawners in 0.038 seconds
[W 2020-05-06 08:03:38.421 JupyterHub proxy:517] Found proxy pid file: /jupyterhub-proxy.pid
[W 2020-05-06 08:03:38.421 JupyterHub proxy:534] Proxy still running at pid=142
[C 2020-05-06 08:03:41.424 JupyterHub app:2517] Failed to start proxy
Traceback (most recent call last):
File “/anaconda3/lib/python3.7/site-packages/jupyterhub/app.py”, line 2515, in start
await self.proxy.start()
File “/anaconda3/lib/python3.7/site-packages/jupyterhub/proxy.py”, line 580, in start
self._check_previous_process()
File “/anaconda3/lib/python3.7/site-packages/jupyterhub/proxy.py”, line 558, in _check_previous_process
raise RuntimeError(“Failed to stop proxy at pid=%s”, pid)
RuntimeError: (‘Failed to stop proxy at pid=%s’, 142)
Checked all processes, nothing is there with id - 142.
Executed command - configurable-http-proxy
getting below error
08:14:21.072 - warn: [ConfigProxy] REST API is not authenticated. 08:14:21.087 - info: [ConfigProxy] Proxying http://*:8000 to (no default) 08:14:21.088 - info: [ConfigProxy] Proxy API at http://localhost:8001/api/routes 08:14:21.091 - error: [ConfigProxy] Uncaught Exception Error: listen EADDRINUSE :::8000 at Object.exports._errnoException (util.js:870:11) at exports._exceptionWithHostPort (util.js:893:20) at Server._listen2 (net.js:1237:14) at listen (net.js:1273:10) at Server.listen (net.js:1369:5) at Object.<anonymous> (/usr/local/lib/node_modules/configurable-http-proxy/bin/configurable-http-proxy:253:19) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) 08:14:21.092 - error: [ConfigProxy] Uncaught Exception Error: listen EADDRINUSE 127.0.0.1:8001 at Object.exports._errnoException (util.js:870:11) at exports._exceptionWithHostPort (util.js:893:20) at Server._listen2 (net.js:1237:14) at listen (net.js:1273:10) at net.js:1382:9 at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
Tried with c.JupyterHub.port by assigning different port. Also tried with stopping all process with “configurable-http-proxy”, but any of them didn’t work for me.