On 3/4/25 09:43, Steffen Grunewald via slurm-users wrote:
Following the setup at,  
https://slurm.schedmd.com/accounting.html#mysql-configuration

When I try to start slurmdbd it fails.

[root@vuwunicoslurmd3 ~]# systemctl status slurmdbd
? slurmdbd.service - Slurm DBD accounting daemon
      Loaded: loaded (/usr/lib/systemd/system/slurmdbd.service; disabled; 
preset: disabled)
      Active: inactive (dead)
[root@vuwunicoslurmd3 ~]# systemctl enable --now slurmdbd
Created symlink /etc/systemd/system/multi-user.target.wants/slurmdbd.service ? 
/usr/lib/systemd/system/slurmdbd.service.
[root@vuwunicoslurmd3 ~]# systemctl status slurmdbd
? slurmdbd.service - Slurm DBD accounting daemon
      Loaded: loaded (/usr/lib/systemd/system/slurmdbd.service; enabled; 
preset: disabled)
      Active: inactive (dead)
   Condition: start condition failed at Tue 2025-03-04 00:54:38 UTC; 1s ago
              ?? ConditionPathExists=/etc/slurm/slurmdbd.conf was not met

TIL about the "--now" option to "systemctl enable"... thanks for this one! ;)
although I admit to prefer a step-by-step approach (and I'd only enable a unit
if it's been successfully started once, to avoid complaints at reboot)...

You wrote that you configured MySQL but didn't mention SlurmDBD config.
Does the file that is being complained about exist (on that machine)?

So there seems to be a hole in the guide.   Some config  is needed?

To be honest, I've been following Ole's detailed setup instructions since
Adam and Eve - not the ones directly from the horse's mouth.
Whatever, I'd first try to track down that ConditionPathExists issue...

The Systemd error message "ConditionPathExists=/etc/slurm/slurmdbd.conf was not met" is a critical error! Check that the file exists and is owned by the user slurm and group slurm, for example:

$ ls -l /etc/slurm/slurmdbd.conf
-rw-------. 1 slurm slurm 504 Feb 28  2023 /etc/slurm/slurmdbd.conf

Make sure that you configured slurmdbd.conf correctly, see this Wiki page:
https://wiki.fysik.dtu.dk/Niflheim_system/Slurm_database/#slurmdbd-configuration

IHTH,
Ole


--
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com

Reply via email to