Job Failed¶
Your job exited unexpectedly? Here’s how to diagnose and fix common issues.
Check Job Status¶
# View recent job information
sacct --user $USER --output jobid,state,exitcode,start,end
Common Failure Causes¶
1. Out of Memory¶
Symptom: Job killed with “Out Of Memory” or exit code 137
Solution:
Request more memory:
#SBATCH --mem=32GOptimize your code to use less memory
Process data in smaller chunks
2. Time Limit Exceeded¶
Symptom: Job state = TIMEOUT
Solution:
Request more time:
#SBATCH --time=24:00:00Optimize your code for speed
Check if you can use checkpoint/restart
3. Wrong Partition/Queue¶
Symptom: Job rejected or stuck
Solution:
Check available partitions:
sinfoUse correct partition:
#SBATCH --partition=<valid_partition>Verify you have access to the requested partition
4. Missing Modules/Dependencies¶
Symptom: Command not found or library errors
Solution:
Load required modules in your script
Use
module availto check available modulesVerify paths are correct
5. Disk Space Issues¶
Symptom: Write failures, “No space left on device”
Solution:
Check disk usage:
df -hClean up old files
Use appropriate filesystem (
/work,/home, etc.)
Debugging Tips¶
Run interactively first: Test your script with
srun --pty bashAdd echo statements: Track where your script fails
Check exit codes:
echo $?after commandsReview output files: Look for error messages