Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slurmdbd has an invalid PID file location configuration in slurmdbd.conf #52

Open
NucciTheBoss opened this issue Dec 8, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@NucciTheBoss
Copy link
Member

Bug Description

The slurmdbd service is configured to place its PID file in /var/run/slurmdbd.pid, however, the service fails to create the PID file with permission denied as the slurm user cannot write to the /var/run directory. The PidFile location should be changed to /var/run/slurmdbd/slurmdbd.pid as /var/run/slurmdbd is owned by the slurm user.

"PidFile": "/var/run/slurmdbd.pid",

To Reproduce

  1. tox run -e integration -- --keep-models
  2. juju switch <model-name>
  3. Wait for all units to reach active status...
  4. juju ssh slurmdbd/leader
  5. systemctl status slurmdbd
  6. See permission denied error about the PID file...

Environment

Juju v3.5.3 on local LXD cloud running on Ubuntu 24.04. Using the latest development version of the slurmdbd charm.

Relevant log output

Dec 06 21:28:14 juju-9ba62c-2 systemd[1]: Started slurmdbd.service - Slurm DBD accounting daemon.
░░ Subject: A start job for unit slurmdbd.service has finished successfully
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit slurmdbd.service has finished successfully.
░░
░░ The job identifier is 2812.
Dec 06 21:28:14 juju-9ba62c-2 (slurmdbd)[5821]: slurmdbd.service: Referenced but unset environment variable evaluates to an empty string: SLURMDBD_OPTIONS
Dec 06 21:28:14 juju-9ba62c-2 slurmdbd[5821]: slurmdbd: error: Unable to open pidfile `/var/run/slurmdbd.pid': Permission denied

Additional context

/var/run/slurmdbd is created as part of installing the slurmdbd Debian package from the Ubuntu Archive.

@NucciTheBoss NucciTheBoss added bug Something isn't working good first issue Good for newcomers labels Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant