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

Support use of JupyterHub.allow_named_servers #73

Open
mathause opened this issue Oct 1, 2020 · 1 comment · May be fixed by #78
Open

Support use of JupyterHub.allow_named_servers #73

mathause opened this issue Oct 1, 2020 · 1 comment · May be fixed by #78
Labels

Comments

@mathause
Copy link

mathause commented Oct 1, 2020

Proposed change

If I understand correctly it is currently not possible to create named servers with systemdspawner.

If you set

c.JupyterHub.allow_named_servers = True

Creating a new named server will kill the original server. I think this is because the `unit_name_template does not expand the name:

c.SystemdSpawner.unit_name_template = f'jupyter-{USERNAME}-singleuser'

thus the "named server" has the same name as the default server and this the default server is killed...

Alternative options

  • Not using named servers.
  • Issue a warning when c.JupyterHub.allow_named_servers = True

(Optional): Suggest a solution

make c.SystemdSpawner.unit_name_template expand the (optional) name of the server

@welcome
Copy link

welcome bot commented Oct 1, 2020

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@scj643 scj643 linked a pull request Feb 11, 2021 that will close this issue
@consideRatio consideRatio changed the title allow named servers Support use of JupyterHub.allow_named_servers May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants