-
Notifications
You must be signed in to change notification settings - Fork 799
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
Using GRANT_SUDO and --allow-root crashes notebook #2177
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
You missed one key parameter from the comment you linked, In general Z2JH isn't responsible for features or limitations of the singleuser server (e.g Jupyter notebook or lab). For example, |
@manics I see, thanks! I presumed wrong; that the |
Bug description
According to the documentation here #1021 (comment) — the way to make it possible for users of this project to install dependencies, is to configure
singleuser
like this:However, when a pod is launched and has a browser connected to it, it immediately exists with logs:
The minus here denotes the exiting of the notebook.
Why? Because I want to mimick how colab works, and because the roles that 1) update the infrastructure, and 2) work with notebooks are two different ones — requiring the infra person to upgrade a dockerfile to install a package is more work than needed — instead the infra role can use network policies, istio network security and other mechanisms to have trusted co-workers being able to sudo inside a container.
Thera are some issues at play here:
NOTEBOOK_ARGS
flag doesn't seem to work, or the notebook shouldn't crash as it doesExpected behaviour
It should be documented how to opt-out of the extra security. Furthermore, the documented way to do it should work.
Actual behaviour
It's not documented (besides the comment) and the notebook crashes immediately.
I'm documenting it here, and I'm going to try not to set
uid
now, to see whether the default user cansudo
from theGRANT_SUDO
flag alone. TheNOTEBOOK_ARGS
flag doesn't seem to work (since the crash tells me to do something I'm already doing), so I'm going to remove itHow to reproduce
With the config above, do:
helm template jhub jupyterhub/jupyterhub --namespace flows --version 0.11.1 --values config.yaml --output-dir k8s/template cp -r k8s/template/jupyterhub/templates/ k8s/base/ kustomize build k8s/prod | kubectl apply -f - open https://jhub.example.com
Your personal set up
Latest Helm chart on GKE with the above configuration.
Configuration
/lab
only shows a white page, but going to/tree
lets you see the default interface when testing withoutuid
in theconfig.yaml
file.The text was updated successfully, but these errors were encountered: