Closed Frank-Steiner closed 1 year ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
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.
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! :wave:
Welcome to the Jupyter community! :tada:
It turned out that this was caused by JUPYTER_CONFIG_DIR
being set to /opt/jhub/etc
accidentally. Unsetting this fixed the problem.
Hi,
after having setup sudospawner jupyterhub starts fine. But when the first user tries to login the session fails because it cannot create the etc/migrated file:
When I set /opt/jhub/etc to permissions 1777 the startup works find and /opt/jhub/etc/migrated is created with user fst as owner.
That doesn't make sense, I guess, because etc/ shouldn't be writeable for everyone.
Is there a way to force the migrated file to be created in some tmp dir? Or is this just a bug?
Once the file has been created, other users can login and start a session, too. I can also touch the migrated file as root (being empty), then the login works, too. But if doesn't exist yet, it should be created as the user running jupyterhub and not as the user who first logs in.
This happens with jupyterhub 3.1.1 and pthon 3.10.8 on SuSE Linux Enterprise 15 SP4
Configuration
```python # jupyterhub_config.py c.Spawner.cmd = ['jupyter-labhub'] c.Spawner.default_url = '/lab' c.JupyterHub.cleanup_servers = False c.ConfigurableHTTPProxy.should_start = False c.JupyterHub.cookie_secret_file = '/etc/jhub/jupyterhub_cookie_secret' c.ConfigurableHTTPProxy.api_url = 'http://localhost:8791' c.JupyterHub.pid_file = '/run/jhub/jhub.pid' c.JupyterHub.db_url = '/var/lib/jhub/jupyterhub.sqlite' c.JupyterHub.spawner_class = 'sudospawner.SudoSpawner' c.SudoSpawner.sudospawner_path = '/opt/jhub/bin/sudospawner' ```