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

error: Configured MailProg is invalid #30

Open
jamesbeedy opened this issue Oct 8, 2024 · 3 comments
Open

error: Configured MailProg is invalid #30

jamesbeedy opened this issue Oct 8, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@jamesbeedy
Copy link
Contributor

Bug Description

Slurmctld always starts with this error "error: Configured MailProg is invalid" ... possibly we need to take a look at the charm configured MailProg vs what is actually available on the system.

To Reproduce

deploy main

Environment

deploy main

Relevant log output

[2024-10-08T06:10:43.540] error: Configured MailProg is invalid

Additional context

No response

@NucciTheBoss
Copy link
Member

Having a proper mail program integration is on our radar along with re-enabling controller high-availability. Looking at the sauce, looks like the configured mail program is mail.mailutils which is provided by the mailutils package:

"MailProg": "/usr/bin/mail.mailutils",

Seems like the problem could be one of two things:

  1. mailutils isn't installed on the slurmctld node.
  2. /usr/bin/mail.mailutils isn't considered a valid mail program by Slurm.

@NucciTheBoss NucciTheBoss added the needs triage Needs further investigation to determine cause and/or work required to implement fix/feature label Oct 8, 2024
@jamesbeedy
Copy link
Contributor Author

jamesbeedy commented Oct 8, 2024

We can fix by installing mailutils for slurmctld.

$ apt-cache policy mailutils
mailutils:
  Installed: (none)
  Candidate: 1:3.14-1
  Version table:
     1:3.14-1 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
sudo apt install mailutils -y

...

$ ls -larth /usr/bin/mail.mailutils
-rwxr-xr-x 1 root root 230K Jan 12  2022 /usr/bin/mail.mailutils

@NucciTheBoss
Copy link
Member

This an easy addition to the slurm_ops charm library. We need to spend some time scoping out a charmed solution for the mail server (email is hard), but we should make Slurm happy for if someone manually sets up a mail server integration.

We can fix by installing mailutils for slurmctld

I love it when the solution to the problem is a simple fix 🤩

@NucciTheBoss NucciTheBoss added bug Something isn't working and removed needs triage Needs further investigation to determine cause and/or work required to implement fix/feature labels Oct 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
Projects
None yet
Development

No branches or pull requests

2 participants