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

conf_dir needs to be writable #124

Closed
dylex opened this issue Apr 9, 2024 · 4 comments
Closed

conf_dir needs to be writable #124

dylex opened this issue Apr 9, 2024 · 4 comments
Assignees
Labels
bug Something isn't working confirmed An issue that has been confirmed to exist
Milestone

Comments

@dylex
Copy link

dylex commented Apr 9, 2024

Versions

OS version: Rocky Linux 8.9
Slurm version: 23.11.4
Slurm Mail version: 4.14

Describe the bug

Our slurmctld runs as non-root (SlurmUser=slurm, which is recommended), and we don't want to run slurm-mail as root either, so I changed /var/log/slurm-mail, /var/spool/slurm-mail, and the cron-job to the same owver, but it still complains that the configuration directory is not writable. Why does this need to be writable?

Logs

ERROR:root:Error: /etc/slurm-mail is not writeable
Error: /etc/slurm-mail is not writeable
@dylex dylex added the bug Something isn't working label Apr 9, 2024
@neilmunday neilmunday added this to the 4.15 milestone Apr 10, 2024
@neilmunday neilmunday added the confirmed An issue that has been confirmed to exist label Apr 10, 2024
@neilmunday
Copy link
Owner

@dylex thanks for raising this issue. You are correct that /etc/slurm-mail does not need to be writeable by Slurm-Mail. The issue is due to the checks that the check_dir function is performing.

I will fix this for version 4.15.

neilmunday added a commit that referenced this issue Apr 10, 2024
…ectories that do not require write accesss (issue #124)
@dylex
Copy link
Author

dylex commented Apr 10, 2024

Great, thanks!

@neilmunday
Copy link
Owner

neilmunday commented Apr 10, 2024

Slurm-Mail 4.15 has been released. Depending on how you have installed Slurm-Mail you can update like so if you have used the Slurm-Mail repository:

dnf update slurm-mail

@neilmunday
Copy link
Owner

It should be noted that if you are not running Slurm-Mail as root, the ability for Slurm-Mail to include user's job output in e-mails will not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed An issue that has been confirmed to exist
Projects
None yet
Development

No branches or pull requests

2 participants