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

tell systemd to not kill child jupyterhub processes #106

Merged
merged 7 commits into from
Mar 14, 2022

Conversation

Adam-D-Lewis
Copy link
Member

@Adam-D-Lewis Adam-D-Lewis commented Mar 4, 2022

fixes #104

@costrouc I believe it's ready to merge after review.

Adam-D-Lewis added 2 commits March 8, 2022 19:06
@ericdwang
Copy link
Contributor

Hm I tried out this change (testing #105 as well, which works!) and unfortunately it still killed a server I had running before the deploy.

@costrouc costrouc merged commit af0abf7 into main Mar 14, 2022
@costrouc
Copy link
Member

This has been tested an works!

ericdwang added a commit to ericdwang/qhub-hpc that referenced this pull request Apr 11, 2022
Follow-up to nebari-dev#106 and fixes nebari-dev#104 (again)

We discovered in the JupyterHub logs that it was trying to contact the
master node for jobs scheduled on worker nodes which was incorrect and
led to them getting killed:

```
Notebook server job 157 started at hpc-worker-02:52649
(JupyterHub restart)
server never showed up at http://hpc-master-node:52649
```

This fixes the problem by preserving `self.server.ip` similar to
`self.server.port` in `QHubHPCSpawnerBase.poll()`.
costrouc pushed a commit that referenced this pull request Apr 11, 2022
Follow-up to #106 and fixes #104 (again)

We discovered in the JupyterHub logs that it was trying to contact the
master node for jobs scheduled on worker nodes which was incorrect and
led to them getting killed:

```
Notebook server job 157 started at hpc-worker-02:52649
(JupyterHub restart)
server never showed up at http://hpc-master-node:52649
```

This fixes the problem by preserving `self.server.ip` similar to
`self.server.port` in `QHubHPCSpawnerBase.poll()`.
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.

JupyterLab servers are being killed when jupyterhub is updated
3 participants