CLIP-HPC / SlurmCommander

Slurm TUI
MIT License
60 stars 6 forks source link

sinfo not found although it exists #25

Open zimmerrol opened 1 year ago

zimmerrol commented 1 year ago

When running scom I get the following error message: ERROR: Failed to run sinfo command, check your scom.conf and set the correct paths there.

The config file (as recognized and printed by scom) looks like this: INFO: Configuration: &config.ConfigContainer{Prefix:"/usr/bin", Binpaths:map[string]string{"sacct":"/usr/bin/sacct", "sacctmgr":"/usr/bin/sacctmgr", "sbatch":"/usr/bin/sbatch", "scancel":"/usr/bin/scancel", "scontrol":"/usr/bin/scontrol", "sinfo":"/usr/bin/sinfo", "squeue":"/usr/bin/squeue", "sstat":"/usr/bin/sstat"}, Tick:0x3, JobHist:config.ConfigJobHistContainer{Starttime:"now-7days", Endtime:"", Timeout:0x1e}, TemplateDirs:[]string{"/etc/scom/templates"}}

Interestingly, path in the config for the sinfo command (i.e., /usr/bin/sinfo) is valid and points to the sinfo binary. Thus, I don't understand what causes this error message. I'm using slurm 20.11.9.

hehaoyu1023 commented 1 year ago

me too

hehaoyu1023 commented 1 year ago

Version=22.05.8

kjrstory commented 1 year ago

Slurm Commander should be capable of Json-output . And saact command needs Slurmdbd daemons. You can check this with the following command:

sacct --json

If you receive an error message when running this command, scom cannot work properly.