You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running the proxy and the hub separately in installs (this allows me to restart them independently). This leads to some issues when the hub is restarted but the proxy isn't.
Hub calls user.stop() on all currently running users
This stops all the running singleuser services, but doesn't actually remove entries from the proxy!
Hub comes back, correctly determins there are no singleuser servers running. But the Proxy still thinks they are, and so this state is mismatched
Next time when you try to spawn something, the proxy proxies it back to where the singleuser server used to run, and fails with a 5xx error.
Restarting the proxy clears the proxy route table, bringing it back in sync with what the hub sees. This 'fixes' the issue
This doesn't manifest itself in the traditional configuration of the hub managing the proxy, since the proxy does usually get restarted with the hub. It also doesn't manifest when c.JupyterHub.cleanup_servers = False, since single user servers aren't stopped when the hub restarts. So it only manifests when you are running the proxy and hub separately with cleanup_servers = True
I think the real fix is to also cleanup the routes in the proxy when cleaning up single user servers on restart.
The text was updated successfully, but these errors were encountered:
Agreed. It checks that all the routes for running containers are present, and fills them in if not, but it doesn't do the opposite - finding routes for not running users, and removing those.
I'm running the proxy and the hub separately in installs (this allows me to restart them independently). This leads to some issues when the hub is restarted but the proxy isn't.
This doesn't manifest itself in the traditional configuration of the hub managing the proxy, since the proxy does usually get restarted with the hub. It also doesn't manifest when
c.JupyterHub.cleanup_servers = False
, since single user servers aren't stopped when the hub restarts. So it only manifests when you are running the proxy and hub separately withcleanup_servers = True
I think the real fix is to also cleanup the routes in the proxy when cleaning up single user servers on restart.
The text was updated successfully, but these errors were encountered: