question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spawn failed: Server at http://127.0.0.1

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:15

github_iconTop GitHub Comments

7reactions
subgerocommented, Mar 19, 2020

@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.

4reactions
mjmanas0699commented, Dec 18, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

JupyterHub - Jupyter Community Forum
Common causes of this timeout, and debugging tips: 1. The server didn't finish starting, or it crashed due to a configuration issue. Check...
Read more >
jupyterhub starts up fine, but unable to spawn a server
now, check for event section, It will show an error because of which container didn't spawn. It must be issue in pulling images...
Read more >
Troubleshooting — JupyterHub 3.1.0 documentation
After successfully logging in to JupyterHub with a compatible authenticator, I get a 'Spawn failed' error message in the browser. The JupyterHub logs...
Read more >
jupyterhub/jupyterhub - Gitter
TimeoutError: Server at http://127.0.0.1:46411/user/scott didn't respond in 30 seconds ... [I 2016-10-03 09:52:03.826 JupyterHub spawner:534] Spawning ...
Read more >
JupyterHub Spawn Failed: Server Timedout - FAQ
Why am I getting the "Spawn Failed: Server at http://127.0.0.1:47353/user/fyicenter/ didn't respond in 30 seconds"? ✍: FYIcenter.com. A. If you did not install ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found