generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Using default set up for accounting, I have not enabled/added anything to /opt/slurm/config/accounts.yml.
If cluster is not yet enabled with sacct, the program runs, but errors out.
you can see this in /var/log/slurm/create_slurm_accounts.log:
ERROR:2025-07-21 01:00:02,159: Couldn't list associations.
command: ['/opt/slurm/bin/sacctmgr', '--noheader', '--parsable2', 'list', 'assoc', 'format=Cluster,Account,User,Share,ParentName']
output:
Traceback (most recent call last):
File "/opt/slurm/config/bin/create_slurm_accounts.py", line 287, in get_slurm_user_account_dict
lines = subprocess.check_output([self.sacctmgr, '--noheader', '--parsable2', 'list', 'assoc', 'format=Cluster,Account,User,Share,ParentName'], stderr=self.devnull, encoding='UTF-8').split('\n') # nosec
File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/usr/lib64/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/opt/slurm/bin/sacctmgr', '--noheader', '--parsable2', 'list', 'assoc', 'format=Cluster,Account,User,Share,ParentName']' returned non-zero exit status 1.
INFO:2025-07-21 01:30:02,109:
INFO:2025-07-21 01:30:02,109: Creating/updating Slurm users and groups
INFO:2025-07-21 01:30:02,109: Accounts filename: /opt/slurm/config/accounts.yml
I have the users created with the users_create script, and json file exists, but I hadn't enabled accounting yet.
once accounting is enabled, the program stops erroring...
Metadata
Metadata
Assignees
Labels
No labels