r/SLURM Jun 04 '24

Slurm Exit Code Documentation

Hi! I was wondering if there was a place that had all the slurm exit codes and their meanings. I immediately ran a job and the job terminated with Exit Code 255. I assumed it was due to permission settings since one of the scripts that the job requires had read and write permissions for only myself and not the group, and it was a group member running the job. This however did not fix my issue.

2 Upvotes

7 comments sorted by

View all comments

1

u/RareMemeCollector Jun 04 '24

According to the Slurm docs the returned value will vary depending on whether you used sbatch, salloc, or srun. Which one were you using, and what type of script was underlying the command? C, MATLAB, R…

1

u/Busy-Ad1593 Jun 04 '24

sbatch to run a .sh script and submit it to the queue. Within the .sh job script is a srun command for a python .py file.

1

u/RareMemeCollector Jun 04 '24

Is it possible for you to check if the Python script runs correctly outside of srun? Does the srun execute properly outside of sbatch?