This document explains how to fix a Slurm Jobs submission script that either doces not run or runs imcorrectly, and lists common mistakes as well as how to identify and fix them.[1]
Errors in Submitting Jobs
No Slurm account
sbatch: error: Batch job submission failed: Invalid account or account/partition combination specifiedsrun: error: Unable to allocate resources: Invalid account or account/partition combination specified
The Slurm account is a different system with LInux account. When you face this problem, please contact to the Admin.
Schedular is busy
Sometimes when the cluster is being very heavily utilized, the Slurm controller will be busy, and unable to accept your job submission request. If this is happening, you will notice that your job submission commands will hang; you can recieve an error message like:
Unable to allocate resources: Socket timed out on send/recv operation
If this happends, wait a few minutes and try submitting your job again. Please contact the Admin if the error persists.
Missing -t
Job not submitted: please specify runtime limit with -t.
Requested time limit is invalid (missing or exceeds some limit)
All job submission commands need an estimate of how long the job will run, specified with the -t parameter. Your job will be killed once it hits this limit, so you may want to slightly overestimate.
Missing -p
Job not submitted: please specify partition with -p.
Unable to allocate resources: Invalid partition name specified
All job submission commands need to include a partition to run the job in, specified with the -p parameter. For more details on which partition to choose, reference: 1.8 Reference-of-Slurm
Runtime is too short for the specified partition
Job not submitted: please submit jobs that are less than 12 hours long to the short (or priority) partition.
Job not submitted: please submit jobs that are less than 5 days long to the medium (or priority) partition.
If your submit a job to the wrong partition (based on the runtime of you job), you will encounter these errors. Please choose a proper partition for you job.
Too many CPUs requested
Job not submitted: jobs may not be submitted with greater than 40 cores to GPU-Compute partition.
Currently, the maximum number of cores that can be requested in any partition (besides mpi) isjobs may not be submitted with greater than 40 cores``CPU-Compute-1``CPU-Compute-2``GPU-Compute``-n
Too many memory requested
Memory specification can not be satisfied
Batch job submission failed: Requested node configuration is not available
If you ask for more memory than any nod has, you job will not be submitted. You will need to reuduce the amount of memory requested in your job submission (currently should be less than 120GB)
Slurm Job Sates
Your job will report different state before, during, and after execution. The most common ones are seen below, but this is not an exhausitive list. For further information, look at Job State Codes in the squeue manual.
| Job State Long Form | Job State Short Form | Meaning |
|---|---|---|
| ``CANCELLED | ``CA | Job was killed, either by the user who submitted it, a system administrator, or by the Cgroups plugin (for using more resources than requested). |
| ``COMPLETED | ``CD | Job has ended in a zero exit status, and all processes from the job are no longer running. |
| ``COMPLETING | ``CG | This status differs from COMPLETED because some processes may still be running from this job. |
| ``FAILED | ``F | Job did not complete successfully, and ended in a non-zero exit status. |
| ``NODE_FAIL | ``N | The node or nodes that the job was running on had a problem. |
| ``PENDING | ``PD | Job is queued, so it is not yet running. Look at the Jobs that never start section for details on why jobs can remain in pending state. |
| ``RUNNING | ``R | Job has been allocated resources, and is currently running. |
| ``TIMEOUT | ``TO | Job exited because it reached its walltime limit. |
Slurm Job Reasons
If your job is pending, the squeue command will show the reason why it is in pending state. Some of these reasons are detailed below, but please reference Job Reason Codes in the squeue manual for more detail.
| Job Reason | Meaning |
|---|---|
| ``AssocGrpMemLimit | The job cannot run because you are currently using the maximum amount of memory allowed overall per user (12TB). A similar reason will be seen if you have hit the maximum amount of cores allowed to be used at one type per user (1500 cores). |
| ``Dependency | The job can’t start until a job dependency finishes. |
| ``JobHeldAdmin | The job will stay pending, as it has been held by an administrator. |
| ``JobHeldUser | The job will stay pending, as it has been held by the user. |
| ``NodeDown | A node that the job requires is in “down” state, meaning that the node can’t be currently used. |
| ``Priority | Your job has lower priority than others in the queue. The jobs with higher priority must dispatch first. |
| ``QOSMaxJobsPerUserLimit | This job is unable to run because you have submittted more jobs of a certain type (e.g. >2 jobs in interactive partition, or >2 jobs in priority partition) than are allowed to run at one time. The “QOS” refers to “quality of service”, through which these number of concurrent jobs are limited. For example, you will see this reason if you try to have more than two jobs running one time in the interactive partition. |
| ``ReqNodeNotAvail | A node that the job requests using cannot currently accept jobs. ``ReqNodeNotAvail is a generic reason; in the simplest case, it means that the node is fully in use and is unable to run any more jobs. In other scenarios, this reason can indicate that there is a problem with the node. |
| ``ReqNodeNotAvail, UnavailableNodes: | This job reason is most commonly seen when there is an upcoming reservation for a maintenance window. Reservations are used to ensure that the required resources are available during a specific timeframe. RC uses reservations to reserve all the nodes in the cluster during times when maintenance will be done, so no user jobs will be affected. |
| ``Resources | The required resources for running this job are not yet available. |
Password Expired
If this information is shown on your shell when you connect to the compute node, please contact the administrator.
WARNING: Your password has expired.
You must change your password now and login again!
passwd: Authentication token manipulation error
passwd: password unchanged
Connection to compute2030005000 closed.
- Thanks to Harvard.edu’s O2 Cluster Wiki ↩︎
