the-littlest-jupyterhub: Spawn failed: Server at http://127.0.0.1

On a local server, cannot connect as admin or users. I am not sure but it seems this issue comes after installing configparser with sudo -E pip install configparser

error message:

Spawn failed: Server at http://127.0.0.1:42359/user/devbox/ didn't respond in 30 seconds
Event log
Server requested
Spawning server...
Spawn failed: Server at http://127.0.0.1:42359/user/devbox/ didn't respond in 30 seconds

the logs:

Jul 12 15:20:16 quantiota python3[1241]: [I 2019-07-12 15:20:16.148 JupyterHub log:174] 200 GET /hub/api/users/devbox/server/progress (devbox@192.168.0.254) 30931.27ms
Jul 12 15:21:52 quantiota python3[1241]: [I 2019-07-12 15:21:52.529 JupyterHub log:174] 302 GET /hub/ -> /hub/spawn (devbox@192.168.0.254) 20.00ms
Jul 12 15:21:52 quantiota python3[1241]: [I 2019-07-12 15:21:52.645 JupyterHub systemdspawner:217] user:devbox Unit jupyter-devbox in a failed state. Resetting state.
Jul 12 15:21:52 quantiota python3[1241]: Running as unit: jupyter-devbox.service
Jul 12 15:21:53 quantiota python3[1241]: [I 2019-07-12 15:21:53.567 JupyterHub log:174] 302 GET /hub/spawn -> /hub/spawn-pending/devbox (devbox@192.168.0.254) 1017.31ms
Jul 12 15:21:53 quantiota python3[1241]: [I 2019-07-12 15:21:53.608 JupyterHub pages:303] devbox is pending spawn
Jul 12 15:21:56 quantiota python3[1241]: [I 2019-07-12 15:21:56.024 JupyterHub proxy:319] Checking routes
Jul 12 15:22:02 quantiota python3[1241]: ERROR:asyncio:Task exception was never retrieved
Jul 12 15:22:02 quantiota python3[1241]: future: <Task finished coro=<BaseHandler.spawn_single_user() done, defined at /opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/handlers/base.py:697> exception=HTTPError()>
Jul 12 15:22:02 quantiota python3[1241]: Traceback (most recent call last):
Jul 12 15:22:02 quantiota python3[1241]:   File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 889, in spawn_single_user
Jul 12 15:22:02 quantiota python3[1241]:     timedelta(seconds=self.slow_spawn_timeout), finish_spawn_future
Jul 12 15:22:02 quantiota python3[1241]: tornado.util.TimeoutError: Timeout
Jul 12 15:22:02 quantiota python3[1241]: During handling of the above exception, another exception occurred:
Jul 12 15:22:02 quantiota python3[1241]: Traceback (most recent call last):
Jul 12 15:22:02 quantiota python3[1241]:   File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 922, in spawn_single_user
Jul 12 15:22:02 quantiota python3[1241]:     % (status, spawner._log_name),
Jul 12 15:22:02 quantiota python3[1241]: tornado.web.HTTPError: HTTP 500: Internal Server Error (Spawner failed to start [status=1]. The logs for devbox may contain details.)
Jul 12 15:22:21 quantiota python3[1241]: [W 2019-07-12 15:22:21.321 JupyterHub user:678] devbox's server never showed up at http://127.0.0.1:42359/user/devbox/ after 30 seconds. Giving up
Jul 12 15:22:21 quantiota python3[1241]: [E 2019-07-12 15:22:21.372 JupyterHub gen:593] Exception in Future <Task finished coro=<BaseHandler.spawn_single_user.<locals>.finish_user_spawn() done, defined at /opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/handlers/base.py:800> exception=TimeoutError("Server at http://127.0.0.1:42359/user/devbox/ didn't respond in 30 seconds",)> after timeout
Jul 12 15:22:21 quantiota python3[1241]:     Traceback (most recent call last):
Jul 12 15:22:21 quantiota python3[1241]:       File "/opt/tljh/hub/lib/python3.6/site-packages/tornado/gen.py", line 589, in error_callback
Jul 12 15:22:21 quantiota python3[1241]:         future.result()
Jul 12 15:22:21 quantiota python3[1241]:       File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 807, in finish_user_spawn
Jul 12 15:22:21 quantiota python3[1241]:         await spawn_future
Jul 12 15:22:21 quantiota python3[1241]:       File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/user.py", line 654, in spawn
Jul 12 15:22:21 quantiota python3[1241]:         await self._wait_up(spawner)
Jul 12 15:22:21 quantiota python3[1241]:       File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/user.py", line 701, in _wait_up
Jul 12 15:22:21 quantiota python3[1241]:         raise e
Jul 12 15:22:21 quantiota python3[1241]:       File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/user.py", line 669, in _wait_up
Jul 12 15:22:21 quantiota python3[1241]:         http=True, timeout=spawner.http_timeout, ssl_context=ssl_context
Jul 12 15:22:21 quantiota python3[1241]:       File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/utils.py", line 234, in wait_for_http_server
Jul 12 15:22:21 quantiota python3[1241]:         timeout=timeout,
Jul 12 15:22:21 quantiota python3[1241]:       File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/utils.py", line 177, in exponential_backoff
Jul 12 15:22:21 quantiota python3[1241]:         raise TimeoutError(fail_message)
Jul 12 15:22:21 quantiota python3[1241]:     TimeoutError: Server at http://127.0.0.1:42359/user/devbox/ didn't respond in 30 seconds
Jul 12 15:22:21 quantiota python3[1241]:
Jul 12 15:22:21 quantiota python3[1241]: [I 2019-07-12 15:22:21.374 JupyterHub log:174] 200 GET /hub/api/users/devbox/server/progress (devbox@192.168.0.254) 27538.02ms

About this issue

Most upvoted comments

@mukhendra Im facing the same problem with jupyterhub for multiuser in a docker env, let me know if you found a solution for this, I’ve googled but without success til now.

1.-> docker exec -it jupyterhub bash
2.-> pip install notebook hope it worked

Hello All,

I’m also facing the similar issue can you please suggest how to resolve this. " your server is starting up and you will be redirected automaticaly when it’s ready for you." Spawn got failed and it’s pending.

Hello, I faced the same situation with JupyterHub. The solution was to get moe disk space.