You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the advent of the wrapper script batchspawner-singleuser we can not offer our HPC users to just use off-the-shelf Jupyter container images anymore (e.g. jupyter/datascience-notebook). Instead, the containers do need to contain an installed batchspawner package, which is usually never the case if downloaded from e.g. dockerhub, nvcr.io, ....
When JupyterLab stacks are loaded via Lmod (non-containerized), these stacks also need to have batchspawner to be installed.
Expected behaviour
The old version of batchspawner (0.8.1) allowed to provide JupyterHub + Slurmspawner + off-the-shelf JupyterLab inside docker containers (enroot runtime).
Actual behaviour
Things like this happen:
/var/spool/slurmd/job18872/slurm_script: line 30: batchspawner-singleuser: command not found
Your personal set up
We use a regularly installed JupyterHub + batchspawner in conjunction with JupyterLab in Docker containers using enroot runtime. The integration of enroot and slurm ist done via pyxis.
How to revert to the state as of 0.8.1 that no batchspawner is required for spawning of the (containerized or not) JupyterLab stacks?
The text was updated successfully, but these errors were encountered:
Additionally since the script in question doesn't depend on batchspawner, you can safely run it from inside a stock JupyterLab stack container without an issue.
So bind mount a local (or shared) copy of batchspawner-singleuser to a location like /bin/batchspawner-singleuser inside the container.
And assuming all the appropriate environment variables make their way into the running container, when executed it will function as expected.
Thanks for the replies! @wmoore28 : Our HPC users shall be able to use any image without re-building it. So unfortunately, that is not a solution in our case. @possiblyMikeB : That could be an appropriate solution, however, I'm not sure, if there will be a Python interpreter issue with it. I will test ASAP.
Currently we simply put a python -m pip install --user batchspawner in the JupyterHub spawner prologue and that works. However, the package(s) has to be installed in an image specific volume/directory, as there occur interpreter errors, if the Python versions in the different images differ.
Bug description
Since the advent of the wrapper script
batchspawner-singleuser
we can not offer our HPC users to just use off-the-shelf Jupyter container images anymore (e.g. jupyter/datascience-notebook). Instead, the containers do need to contain an installed batchspawner package, which is usually never the case if downloaded from e.g. dockerhub, nvcr.io, ....When JupyterLab stacks are loaded via Lmod (non-containerized), these stacks also need to have batchspawner to be installed.
Expected behaviour
The old version of batchspawner (0.8.1) allowed to provide JupyterHub + Slurmspawner + off-the-shelf JupyterLab inside docker containers (enroot runtime).
Actual behaviour
Things like this happen:
Your personal set up
We use a regularly installed JupyterHub + batchspawner in conjunction with JupyterLab in Docker containers using enroot runtime. The integration of enroot and slurm ist done via pyxis.
How to revert to the state as of 0.8.1 that no batchspawner is required for spawning of the (containerized or not) JupyterLab stacks?
The text was updated successfully, but these errors were encountered: