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.

JupyterHub checks wrong server url after restart

See original GitHub issue

Bug description

I use a subclass of BatchSpawner (created for Univa Grid Engine), JupyterHub 2.0.0. If I restart JupyterHub it uses wrong url to check if user’s server is still running. It concludes that server is not running and deletes cluster job.

Expected behaviour

Cluster jobs should survive JupyterHub restart

Actual behaviour

logs contain lines like these (note port 0) Verifying that tryauuum is running at http://my-hostname:0/user/tryauuum/ Of course server is not reachable via this url. After some time JupyterHub runs qdel to delete cluster job.


The bug is probably with my custom class

I see that after restart there still is a correct port and IP in sqlite database. I want to ask, where exactly in code server IP and port are read from servers table of sqlite database? do I have to implement it manually? All I see in code in terms of restoring IP and port from database is this iteration over list of spawners here https://github.com/jupyterhub/jupyterhub/blob/aa0ce1c88a8e34da1779cb13d3f36f81a6a24df7/jupyterhub/app.py#L2517-L2535

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
minrkcommented, Apr 7, 2022
0reactions
minrkcommented, Apr 7, 2022

I think you’re right, get_env probably shouldn’t modify the state. It also shouldn’t be called except during Spawner.start(), so I’m not entirely sure how/why this is coming up, but that much is easy to fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting — JupyterHub 3.1.0 documentation
This is typically the first page at /user/<your_name> after logging in or clicking “Start my server”. When a single-user notebook server receives a...
Read more >
Jupyterhub checks for notebook servers at wrong port at startup?
I'm upgrading to Jupyterhub 2.1.1. When I restart the hub it does a check for all the servers that were running. But it...
Read more >
jupyterhub redirect issue #742 - GitHub
I am having issues with jupyterhub public port not working and the private port not being able to redirect the page to jupyter-single ......
Read more >
Troubleshooting issues in the Hub — Curriculum Guide
One common error is a Jupyter notebook becoming unresponsive. ... Users with admin privileges on DataHub can restart other users' servers.
Read more >
JupyterHub: regular error message: "Your server at ... is not ...
Two solutions: First solution - Quick and dirty and tested successfully: I realized that the error appeared when scripts have been running ...
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