Close Menu
DPC Virtual Tips
    Read More

    Linux Commands to Investigate High Disk Partition Usage

    July 20, 2026

    Essential Slurm Administration Commands Every HPC Administrator Should Know

    July 15, 2026

    How to Install, Configure, and Use tmux on Linux

    July 14, 2026
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Sunday, August 2
    DPC Virtual Tips
    • Home
    • Operating Systems
    • CLI
    • PowerFlex
    • HPC
    • Certificates
    • Virtualization
    • About Us
    • Contact
    DPC Virtual Tips
    Home ยป Slurm srun Invalid account or account/partition combination specified
    HPC

    Slurm srun Invalid account or account/partition combination specified

    DaniloBy DaniloJanuary 13, 2026Updated:August 2, 2026No Comments5 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Slurm invalid account error
    Share
    Facebook Twitter LinkedIn Pinterest Email

    The Slurm invalid account error can occur when a user tries to submit jobs without a valid association in the Slurm database. In this guide, I will demonstrate a real troubleshooting scenario where a job submission fails with an account or account/partition combination error.

    While testing a Slurm cluster, I received this error when submitting a job using the srun command. The issue was related to the user configuration in Slurm accounting rather than the operating system user or home directory configuration.

    This article explains how to identify the cause of the problem, verify users and accounts with sacctmgr, and configure the required association so users can successfully submit jobs to the cluster.

    First and foremost, I’d like to share two articles related to this topic. The first is an introduction to HPC and Slurm (click here to access the article), and the second is a step-by-step guide to setting up a Slurm cluster in a lab environment (click here to access the article).

    Let’s Talk About the Error

    So, I was testing my Slurm cluster submiting some jobs, and I got the following error:

    As we can see:

    • I was logged in as root into the login node (hpclogin01).
    • I changed to “user15” from root.
    • And I used the “srun” command to submit a job.

    From the login node, the user can submit a job to the cluster. In the following picture, we can see our Slurm cluster topology:

    Based on the error, “user15” could not submit jobs to the cluster due to an invalid account or account/partition combination.

    Checking the User and Home Directory

    This troubleshooting focuses on our lab topology. Since all home directories are on the NFS server (and all users must be created there first), the head nodes, login nodes, and compute nodes must have the users locally (with the same User ID to maintain consistency across the entire cluster).

    Checking if “user15” exists on all compute nodes – we’re executing this command from our physical machine:

    for i in {01..15}; do echo -n hpcnode$i- && ssh hpcnode$i "id user15"; done

    Doing the same on the head and login nodes:

    for i in {01..02}; do echo -n hpchead$i- && ssh hpchead$i "id user15"; done
    
    for i in {01..02}; do echo -n hpclogin$i- && ssh hpclogin$i "id user15"; done

    Note: As we can see, all nodes have the “user15”!

    Going forward, let’s check if all nodes have the NFS share “/srv/nfs/home” – To remember, this NFS share contains the home directory for all users:

    # checking the compute nodes:
    for i in {01..15}; do echo -n hpcnode$i- && \
    > ssh hpcnode$i "df -Th | grep nfs"; done
    
    # checking the head nodes:
    for i in {01..02}; do echo -n hpchead$i- && \
    > ssh hpchead$i "df -Th | grep nfs"; done
    
    # checking the login nodes:
    for i in {01..02}; do echo -n hpclogin$i- && \
    > ssh hpclogin$i "df -Th | grep nfs"; done

    Compute nodes:

    Head nodes:

    Login nodes:

    Note: As we can see, all nodes have the NFS share “/srv/nfs/home” mounted on /home!

    Inspecting Users with sacctmgr

    sacctmgr is used to view or modify Slurm account information. The account information is maintained within a database with the interface being provided by slurmdbd (Slurm Database daemon).

    Slurm account information is recorded based on four parameters that form what is referred to as an “association”. These parameters are:

    • user: is the login name.
    • cluster: is the name of a Slurm-managed cluster as specified by the “ClusterName” parameter in the slurm.conf configuration file.
    • partition: is the name of a Slurm partition on that cluster.
    • account: is the account for a job.

    To get the cluster name with sacctmgr:

    sacctmgr show clusters

    To list all users with sacctmgr, we can execute the following command (in this case, we’re executing this command on the first head node):

    sacctmgr show users

    As we can see, “user15” is not on the list of users!

    Adding a User with sacctmgr

    Before adding the “user15” into the Slurm database, let’s check the accounts:

    sacctmgr show accounts

    As we can see, in our lab, the “users” is the default account. So, we’ll create the “user15”, associating it with the “users” account:

    sacctmgr add user user15 Account=users

    To confirm the “user15” association:

    sacctmgr show users withassoc user15

    Now, go back to the login node and test a job submission with “user15”:

    As we can see, it worked successfully ๐Ÿ™‚

    To Wrap This Up

    Several Slurm configuration parameters must be set to support archiving information in SlurmDBD. If you don’t set the configuration parameters that begin with “AccountingStorage”, then accounting information will not be referenced or recorded.

    From the head node, we can show the Slurm configuration parameters that begin with “AccountingStorage”:

    scontrol show config | grep AccountingStorage

    Let’s discuss the parameter “AccountingStorageEnforce”. This option contains a comma-separated list of options you may want to enforce. The valid options are any comma-separated combination of (from the Slurm documentation):

    So, since we’re using:

    AccountingStorageEnforce = associations

    This will prevent users from running jobs if their association is not in the database. This option will prevent users from accessing invalid accounts. It explains why “user15” could not submit jobs earlier!

    Note: The default value for AccountingStorageEnforce is none. With this default value, jobs run even if:

    • User is not in the accounting DB.
    • Account is missing.
    • Slurmdbd is down.

    The parameter “AccountingStorageEnforce” controls whether jobs are executed. Jobs are REJECTED unless:

    • User exists in Slurm DB.
    • User is associated with an account.
    • Account is allowed on a partition.
    • Limits are respected.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleCreating a Simple Python Project Using a Virtual Environment
    Next Article An Introduction to Job Submission on a Slurm Cluster
    Danilo

    Infrastructure Engineer with experience in Virtualization, Linux, Windows Server and learning automation using Python. DPC Virtual Tips was created to share practical tutorials, lab experiences and troubleshooting guides focused on enterprise infrastructure technologies.

    Related Posts

    Essential Slurm Administration Commands Every HPC Administrator Should Know

    July 15, 2026

    Getting Started with Lustre File System

    July 13, 2026

    View Information About Slurm Nodes and Partitions

    February 3, 2026

    Comments are closed.

    Search
    Categories
    • Certificates (5)
    • CLI (7)
    • HPC (7)
    • Operating Systems (75)
    • PowerFlex (22)
    • Virtualization (122)
    Read More
    Operating Systems

    Linux Commands to Investigate High Disk Partition Usage

    By DaniloJuly 20, 20260
    HPC

    Essential Slurm Administration Commands Every HPC Administrator Should Know

    By DaniloJuly 15, 20260
    Operating Systems

    How to Install, Configure, and Use tmux on Linux

    By DaniloJuly 14, 20260
    HPC

    Getting Started with Lustre File System

    By DaniloJuly 13, 20260
    Operating Systems

    Installing Rocky Linux

    By DaniloApril 27, 20260
    Latest Posts

    Linux Commands to Investigate High Disk Partition Usage

    July 20, 2026

    Essential Slurm Administration Commands Every HPC Administrator Should Know

    July 15, 2026

    How to Install, Configure, and Use tmux on Linux

    July 14, 2026
    Images from Gallery
    linux tux
    hpc main commands
    linux commands
    install rock linux
    lustre fs
    Categories
    • Certificates
    • CLI
    • HPC
    • Operating Systems
    • PowerFlex
    • Virtualization
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Copyright © 2026, DPC Virtual Tips. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies to ensure your best experience on our website. If you continue using our website, we'll assume you agree to our cookie policy