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

Remote spawned server running but ... waiting to connect #250

Closed
wants to merge 2 commits into from

Conversation

rp2927
Copy link

@rp2927 rp2927 commented Nov 17, 2022

JupyterHub vers. 3.0.0 (python 3.9.7) -- Batchspawner for GridEngine successfully submits the remote server task, the job starts and binds to a reachable port, the Hub acknowledges the running job, but reports "...waiting to connect" and remains this way until (300sec) timeout (then successfully deletes the running job).
Turns out the Hub never receives the random port number generated in the /barchspawner/singleuser.py, run by the spawned job, because the _api_request method was never awaited (a discrete warning is posted in the spawner log).

This suggested fix adds a proper call to the now _api_request async method, and also changes the payload format to match the expected HTTPRequest arguments.

@welcome
Copy link

welcome bot commented Nov 17, 2022

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@jbeal-work
Copy link

Just spent the whole day chasing this down. With my sons help.

Seeing if this fixes the issues for me :)

@curtywang
Copy link

curtywang commented Apr 26, 2023

This totally fixes the issue for SlurmSpawner too... I was going nuts chasing this down as well!

Installed latest jupyterhub, batchspawner from conda-forge.

Versions from jupyter --version

Selected Jupyter core packages...
IPython          : 8.12.0
ipykernel        : 6.22.0
ipywidgets       : not installed
jupyter_client   : 8.2.0
jupyter_core     : 5.3.0
jupyter_server   : 2.5.0
jupyterlab       : 3.6.3
nbclient         : 0.7.3
nbconvert        : 7.3.1
nbformat         : 5.8.0
notebook         : 6.5.4
qtconsole        : not installed
traitlets        : 5.9.0

@consideRatio
Copy link
Member

I think this is a dupliate of #247, and may not be needed nay more.

@minrk I saw that this PR opted to not introduce a dependency on requests, while #247 introduced it without explicitly specifying it as a dependency.. Do you think we should do how its done here without introducing requests?

@consideRatio
Copy link
Member

Thank you @rp2927 @jbeal-work @curtywang for working this, the equivalent fix from #247 will be part of version 1.3.0 I'm preparing to get released.

@rp2927
Copy link
Author

rp2927 commented Apr 4, 2024 via email

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

Successfully merging this pull request may close these issues.

4 participants