Closed ywkim312 closed 1 year ago
chart has been updated to 2 using bitnami, that is 2.0.2
added parameters
postgres.enabled
hub password: proxy: secretToken: ingress: enabled: true hostname: jupyterhub.local extraEnvVars:
singleuser extraEnvVars:
The chart that we have been using is https://jupyterhub.github.io/helm-chart/ In here, the highest version is only 2.0.0 last updated on Sep 09 2022. It has an app version of 3.0.0 and is using the jupyterhub/k8s-hub:2.0.0. I built the incore-lab version of jupyterhub and tested it. I was deployed okay after just removing "command4: ["echo", "SUCCESS"]" line from values.yaml and got deployed without any problem. However, when it got spawned from the site, it did not opened the jupyterlab but just open jupyterhub itself without any jupyterlab. The original single user that is used in the chart is jupyterhub/k8s-singleuser-sample:2.0.0, so the incore-lab version of jupyterlab should be created based on this image maybe?
The chart that is higher than 2.0.0 is in bitnami. I tried 2.0.2. It is using bitnami/jupyterhub:3.0.0-debian-11-r0 and had to change some parameters. However, there was a problem that it was using the single user image of bitnami/jupyter-base-notebook:3.0.0-debian-11-r0, but the image doesn't exist in the docker.io anymore so the kubernetes image puller made an error in pulling process. This is very weird, because I overrode the singleuser image to our own image that was hub.ncsa.illinois.edu/incore/lab:4.1.0 but it still complained that there was no image for bitnami one that didn't make any sense to me...
As for the jupyterhub one 2.0.0, I tried using chart's own singleuser instead of our own lab image. It got time out instead of spawning jupyterhub, even though all the extra env and extra configs got commented out with this error in log
[E 2023-07-18 20:30:08.475 SingleUserLabApp serverapp:2560] Failed to write server-info to /home/jovyan/.local/share/jupyter/runtime/jpserver-7.json: [Errno 13] Permission denied: '/home/jovyan/.local/share/jupyter/runtime/jpserver-7.json'
Traceback (most recent call last):
File "/usr/local/bin/jupyterhub-singleuser", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/jupyterhub/singleuser/app.py", line 66, in main
return SingleUserLabApp.launch_instance()
File "/usr/local/lib/python3.9/site-packages/jupyter_core/application.py", line 269, in launch_instance
return super().launch_instance(argv=argv, **kwargs)
File "/usr/local/lib/python3.9/site-packages/traitlets/config/application.py", line 976, in launch_instance
app.start()
File "/usr/local/lib/python3.9/site-packages/jupyterhub/singleuser/mixins.py", line 675, in start
super().start()
File "/usr/local/lib/python3.9/site-packages/jupyter_server/serverapp.py", line 2814, in start
self.start_app()
File "/usr/local/lib/python3.9/site-packages/jupyter_server/serverapp.py", line 2743, in start_app
self.write_browser_open_files()
File "/usr/local/lib/python3.9/site-packages/jupyter_server/serverapp.py", line 2619, in write_browser_open_files
self.write_browser_open_file()
File "/usr/local/lib/python3.9/site-packages/jupyter_server/serverapp.py", line 2642, in write_browser_open_file
with open(self.browser_open_file, "w", encoding="utf-8") as f:
PermissionError: [Errno 13] Permission denied: '/home/jovyan/.local/share/jupyter/runtime/jpserver-7-open.html'
This has been implemented
update helm-chart for zero to jupyterhub. This should include the update of the jupyterhub helm chart and the related parameters. Also, this should be worked together with updated jupyterhub for incore-lab