Hi everyone,
I’m stuck on a little problem with my Jupyterhub hosted on Kubernetes and deployed my Helm Chart.
I use JupyterHub 2.0.0 from here: hub.jupyter - helm-chart
And I use jupyter minimal-notebook (2022-11-21) from here : quay.io
Symtpomes
When user try to start it’s server (By going on JupyterHub HUB webpage and click on “Start my server”), server never start and I have CrashLoopBack, when I check container of my pod, I see the Image of Minimal-Notebook in state of Error and the logs says <<PermissionError: [Errno 13] Permission denied: ‘/home/jovyan/.local’>>
Commit new image named “minimal-notebook-2022-11-21-custom” and import this image on my Harbor Registry, now I use the custom image but the error persist.
I see singleuser.allowPrivilegeEscalation in jupyterhub_config.py
I added this on my yaml :
They may or may not have an effect when embedded in built images so you’ll need to pass them in the spawner environment:
I’m able to pass argument in the container.
Now I got this following error :
Warning Failed <invalid> (x3 over <invalid>) kubelet Error: failed to create containerd task: failed to create shim t
ask: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/lib/kubelet/pods/026
9a99d-edce-4fde-8a69-fab2f908290f/volume-subpaths/tmp-notebook-groups/notebook/7" to rootfs at "/etc/group": mount /var/lib/kubelet/pods/0269a99d-edce-4fde-8
a69-fab2f908290f/volume-subpaths/tmp-notebook-groups/notebook/7:/etc/group (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown
Probably a mount problem on my part, I dig on my own. I’ll compile a list of solutions.
About this last point :
The 2022-11-21 image is very old, can you try a more recent version, e.g. 2024-02-21
Unfortunately, my cluster is old and we cannot upgrade now… I tried with the last version of JupyterHub on my Kubernetes version 1.25 and I’ve never been able to start it. We have to upgrade Kubernetes cluster first.
OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting
It was error in my side, I haven’t configured it properly my configmap. Now it’s back.
The container look like start with root user and now everything looking fine :
Entered start.sh with args: start-singleuser.sh
Running hooks in: /usr/local/bin/start-notebook.d as uid: 0 gid: 2001
Done running hooks in: /usr/local/bin/start-notebook.d
Updated the jovyan user:
- username: jovyan -> jdomper
- home dir: /home/jovyan -> /home/jdomper
Update jdomper's UID:GID to 1139:2001
id: ‘jdomper’: no such user
id: ‘jdomper’: no such user
groupadd: cannot open /etc/group
Stream closed EOF for jupyterhub/jupyter-jdomper (notebook)
As you can see, container didn’t find the user… Do I create a new topic?
Thanks :).
Can you try simplifying your configuration to the minimal required? Get rid of profileList and kubespawner_override, just have a single image and config. This will help with debugging.
Can you also show us your full Z2JH config? Which version of Z2JH are you using?