Skip to content
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

Notebook server spawning failure #2273

Closed
amangarg96 opened this issue Oct 30, 2018 · 4 comments
Closed

Notebook server spawning failure #2273

amangarg96 opened this issue Oct 30, 2018 · 4 comments

Comments

@amangarg96
Copy link

Hey, I have an issue in using JupyterHub with using NB2KG server extension (which is used to launch jupyter kernels remotely via Jupyter Enterprise Gateway).
So I'm trying to use nb2kg with JupyterHub to launch kernels on Spark using Jupyter Enterprise Gateway.

JupyterHub spawns Notebook Servers locally using the LocalSpawner class, while Jupyter Enterprise Gateway runs on a different server.

KG_URL was set as:
export KG_URL=http://${JKG_HOST}:8888

nb2kg serverextension was activated by:
jupyter serverextension enable --py nb2kg --sys-prefix

Everything is working fine when I am launching the Jupyter Notebook servers (without using JupyterHub) - Notebook server is able to interact with the Enterprise Gateway, kernels are being launched on Spark with no known issues.
But when I try to launch the Notebook servers via JupyterHub, I get the following error log

[C 2018-10-26 12:13:53.576 JupyterHub app:1861] Failed to start proxy
Traceback (most recent call last):
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterhub/app.py", line 1859, in start
await self.proxy.start()
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterhub/proxy.py", line 596, in start
await server.wait_up(1)
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterhub/utils.py", line 165, in wait_for_server
timeout=timeout
File "/Users/aman.garg/anaconda2/envs/jupyterhub-nb/lib/python3.6/site-packages/jupyterhub/utils.py", line 155, in exponential_backoff
raise TimeoutError(fail_message)
TimeoutError: Server at <hostname>:8000 didn't respond in 1 seconds
@minrk
Copy link
Member

minrk commented Nov 23, 2018

Can you include jupyterhub_config.py? This suggests that the notebook server is expected on a public ip, but I'm guessing they should only be listening on localhost (this is ~always the case with LocalProcessSpawner).

@amangarg96
Copy link
Author

These are the only uncommented lines of the jupyterhub_config.py file

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

Can you elaborate on your previous comment?

@yashag66
Copy link

@amangarg96 @minrk How did you resolve this issue?

@manics
Copy link
Member

manics commented Feb 17, 2021

I'm closing this as it's quite old and it's a support issue. If you're still having problems please post on the Jupyter Community Forum. Thanks!

@manics manics closed this as completed Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants