5

I installed slurm on a workstation and it seemed to work, i can use the slurm commands, srun is working too. But when i try to launch a job from a script using sbatch test.sh i get the following error : Batch job submission failed: I/O error writing script/environment to file even if the script is the simplest like #!/bin/bash srun hostname

jeb
  • 78,592
  • 17
  • 171
  • 225

1 Answers1

0

Make sure slurmd is running as root. See the SlurmdUser parameter in slurm.conf. Its default value is root and it should be so.

Note this is different from the SlurmUser parameter, that defines the user which runs the controller processes ; this one is preferably not root.

If the configuration is correct, then you might have a faulty filesystem at the location referred to in the SlurmdSpoolDir parameter, where slurmd writes the submission script and environment for jobs assigned to the node.

damienfrancois
  • 52,978
  • 9
  • 96
  • 110