-
Notifications
You must be signed in to change notification settings - Fork 303
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
c.KubeSpawner.default_url doesn’t work #531
Comments
Could you show us your full JupyterHub config with secrets redacted, versions of all components, and show us your Dockerfiles? |
I bet this is a duplicate of #493 (comment) in practice.
I assume |
Do you have any idea of a workaround solution to deal with this issue? |
This might have a proper fix in JupyterHub 2 which passes some spawner parameters as environment variables instead of command line arguments. It's on my to-do list of things to check for the next major Z2JH release but I haven't had time 🙁. Can you show us your full configuration? |
c.JupyterHub.authenticator_class = …
c.JupyterHub.spawner_class = ‘kubespawner.KubeSpawner’
c.KubeSpawner.image = “something that is based on the latest jupyterlab image”
c.KubeSpawner.debug = True
c.Spawner.notebook_dir = “…”
c.Spawner.default_url = ‘/lab’
c.KubeSpawner.default_url = ‘/lab’
c.KubeSpawner.working_dir = “…”
c.KubeSpawner.start_timeout = 1200
c.KubeSpawner.http_timeout = 120
` |
Are you using kubespawner without the jupyterhub helm chart? Well, configure c.Spawner.cmd to jupyterhub-singleuser and i think you will have default_url be passed. |
No I’m not using Helm, why is it recommended? I tried it, but for some reason the pod of the user now crashes each time he logins. |
After updating the user image, we noticed that the hub was launching usres straight into /lab rather than /tree. This change (temporarily) reverts that. I think the underlying problem is described here * jupyterhub/kubespawner#531 So there will be changes to come with JupyterHub 2.x releases and this can be revisited then. Signed-off-by: Callysto Sysadmin <[email protected]>
I'll close this as there's since been a lot of developments including some major updates. If you're still having problems please could you open an issue on the community forum https://discourse.jupyter.org/ with a full reproducible example? Thanks! |
Bug description
When I change the
c.KubeSpawner.default_url
attribute injupyterhub_config.py
file to/lab
, nothing changes.Expected behaviour
The Jupyterlab homepage to be shown instead of Jupyter Notebook.
Actual behaviour
Jupyter Notebook is shown.
How to reproduce
/lab
./tree
is still shown instead of/lab
.The text was updated successfully, but these errors were encountered: