I have a JupyterHub 4.0 running, and it works fine with “normal” users.
Using dockerspawner those users can spawn and use their own servers.
But when I define a special group of users (that should have additional rights accessing a service), those users cannot spawn single-user-severs any more.
I get an error like this:
jupyterhub | [D 2023-11-20 09:56:11.585 JupyterHub dockerspawner:982] Getting container 'jupyter-mytestuser'
jupyterhub | [I 2023-11-20 09:56:11.587 JupyterHub dockerspawner:988] Container 'jupyter-mytestuser' is gone
jupyterhub | [W 2023-11-20 09:56:11.587 JupyterHub dockerspawner:963] Container not found: jupyter-mytestuser
jupyterhub | [W 2023-11-20 09:56:24.873 JupyterHub user:933] instructor2's server never showed up at http://----:8888/user/mytestuser/ after 30 seconds. Giving up.
jupyterhub |
jupyterhub | Common causes of this timeout, and debugging tips:
Can someone explain why jupyterhub is trying to start a container for jupyter-mytestuser instead of jupyterhub-user-mytestuser (as it seems to be done for the “normal” users) ?
The only difference to a “normal” user is beeing part of the group test, which is defined in the jupyterhub_config.py like this:
c.JupyterHub.load_roles = roles = [
{
‘name’: ‘mytest_group’,
‘groups’: [‘test’],
‘scopes’: [
‘list:services’,
‘read:services’,
],
},
I want users in this group to be able to do what “normal” users can do, but I do not know how to create a group in the necessary way (without disrupting the usual behavior). Are there any examples (beyond Scopes in JupyterHub — JupyterHub documentation) available somewhere?