On Tue, 2025-03-04 at 01:03:00 +0000, Slurm users wrote:
> I am trying to add slurmdbd to my first attempt of slurmctld.
> 
> I have mariadb 10.11 running and permissions set.
> 
> MariaDB [(none)]> CREATE DATABASE slurm_acct_db;
> Query OK, 1 row affected (0.000 sec)
> 
> MariaDB [(none)]> show databases;
> +--------------------+
> | Database           |
> +--------------------+
> | information_schema |
> | slurm_acct_db      |
> +--------------------+
> 
> 
> 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...

Best, Steffen

-- 
Steffen Grunewald, Cluster Administrator
Max Planck Institute for Gravitational Physics (Albert Einstein Institute)
Am Mühlenberg 1 * D-14476 Potsdam-Golm * Germany
~~~
Fon: +49-331-567 7274
Mail: steffen.grunewald(at)aei.mpg.de
~~~

-- 
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