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
I am getting an error in the slurm-xxxxx.out /var/spool/slurm/d/job242029/slurm_script: line 5: module: command not found
Looks like it can not find the module.
However, if I manually submit the script using sbatch mytest.sub, and I do not see the error.
More details
I compared the env output from the slurm.out generated by SlurmSpawner and the one generated by manual submission, and I found out the following module related envs are missing from the slurm.out generated by the spawner.
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Hey, As you rightly figured out, this is problem of the environment not being complete when batchspawner submitting the job. Under the hood, batchspawner submits the job using command sudo -E -u <target_user> sbatch --parsable <script>. You can run test this command as same user as the JupyterHub running under to see why complete environment is not being sourced. But I do not think this has to do anything with batchspawner and more with your platform configuration.
Bug description
My sbatch script is:
I am getting an error in the slurm-xxxxx.out
/var/spool/slurm/d/job242029/slurm_script: line 5: module: command not found
Looks like it can not find the module.
However, if I manually submit the script using
sbatch mytest.sub
, and I do not see the error.More details
I compared the
env
output from the slurm.out generated by SlurmSpawner and the one generated by manual submission, and I found out the following module related envs are missing from the slurm.out generated by the spawner.Is it a bug or did I miss anything when using the SlurmSpawner?
The text was updated successfully, but these errors were encountered: