Closed heavenkong closed 5 years ago
Just noting here, have a look at the sudo configuration to make sure that sudo isn't restricting PATHs. I'd suggest not running jupyterhub as root and configuring sudo properly to handle this. There are a few ways to do this as well. In addition, when using sudo, you may want to specify the full path to the Slurm commands.
Thank you. You are right. I had to put full path to the slurm commands. I will close this issue.
I have found the same problem. How do you put the full path to the slurm commands? Is there a config option for that?
Try ‘which slurm’ to get the full path and use it.
2022년 4월 28일 (목) 오후 11:21, miguelmarco @.***>님이 작성:
I have found the same problem. How do you put the full path to the slurm commands? Is there a config option for that?
— Reply to this email directly, view it on GitHub https://github.com/jupyterhub/batchspawner/issues/152#issuecomment-1112268636, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXEHFFGRXZLFN2ZNLDZEDDVHKNIDANCNFSM4ILIN7QQ . You are receiving this because you modified the open/close state.Message ID: @.***>
-- Gmail 모바일에서 보낸 메일
I mean... use it where? Is there some option for that in the jupyterhub config file?
It can be combination of configuring the batchspawner submit, query, and cancel versions to include their appropriate prefix if outside of the sudoers secure_path
and configuring sudo properly for the user running JupyterHub. Usually requires the use of NOPASSWD. I'd suggest reading the docs for sudoers
.
I have run jupyterhub as root. And I found .../lib/python3.6/site-packages/batchspawner/batchspawner.py it is written like this (slurm scheduler part):
the error message is like this:
If I change sudo -E -u {username} sbatch --parsable to sudo -E -u {username} -i sbatch --parsable, then it is submitted successfully. But I found that it can not pass the JUPYTERHUB_API_TOKEN to singleuser in the separated machine.
What is the correct command use here as root to run the jupyterhub? Please help.!