which provides /bin/mail. Next make the following changes in your slurm.conf
Those two changes should take care of the errors.
Post by Erica RielloUwe,
I've created slurm user and edited the value in slurm.conf. However,
sudo slurmctld -D -vvvv
slurmctld: pidfile not locked, assuming no running daemon
slurmctld: error: Configured MailProg is invalid
slurmctld: error: Job accounting information gathered, but not stored
slurmctld: fatal: Incorrect permissions on state save loc: /var/spool
There's no /var/log/audit directory, is it supposed to be there?
I'm a newbie, I don't know what's SELinux...
The file slurm.conf is attached to this email.
Regards,
Erica
I suggest that you create the slurm user as described in the
guide. Check again the permissions of all folders that are
configured in slurm.conf. (Does munge run as a separate user?)
If you still have problems then it would be good if you post your
complete slurm.conf so the list can check that for errors.
Also take a look into /var/log/audit/audit.log (at least on RHEL
based distributions this is the file where SELinux logs errors).
I'm not sure if SELinux could be another piece in this puzzle but
you could also try turning off SELinux temporarily (run setenforce
0, this won't survive a reboot).
Regards,
Uwe
Uwe,
Thank you for the info.
I compiled it myself, following the instructions available in the website.
Regards,
Erica.
Erica,
sure it could be changed. But then you have to change all the
permissions of the different folders that slurm uses to reflect that.
Running daemons as root is discouraged since a few years for
security reasons. This doesn't necessarly mean that the
daemon is started by that user account but that it gives up
all those privileges that it doesn't need right after the
start and that it also changes the EUID (effective user id)
once it did setup all the things it needs root privileges for
(like binding a socket <1024).
The keyword to search for is "capabilities". A very good and
detailed book about this and many other topics is "The Linux
Programming Interface" by Michael Kerrisk (http://man7.org/tlpi/)
Can you tell us how you installed slurm? Did you compile it
yourself or used RPMs? If you used RPMs, those should have
created the user account I was referring to.
I didn't have problems installing by following
http://slurm.schedmd.com/quickstart_admin.html
Regards,
Uwe
Post by Erica RielloHi Uwe,
I thought it could be changed to another user. Well, if it
is the user who will run the daemons, shouldn't it be root?
Regards,
Erica
2014-08-05 17:10 GMT-03:00 Uwe Sauter
Hi Erica,
I think you misunderstood the concept of "service user"
in Linux.
SlurmUser in the slurm.conf doesn't mean which user
should be able to use SLURM (submit jobs, etc.) but
which system user will run the slurm control daemon and
slurm database daemon. This user is usually called "slurm".
slurm:x:222:222:SLURM Manager:/:/bin/false
Regards,
Uwe
Post by Erica RielloKiran,
that's exactly what I've done, but I still get the same
error messages.
Erica
2014-08-05 15:54 GMT-03:00 Kiran Thyagaraja
You should be ideally specifying a directory under
/var/spool
e.g /var/spool/slurm and then change its
permissions so that the
SlurmUser can write to it.
Kiran
Re: [slurm-dev]
Hi Erica
What's the value of SlurmUser in the slurm.conf?
You'll need to make sure the MailProg exists
and is executable by the SlurmUser too
Mike
On 5 August 2014 18:20, Erica Riello
Hi all,
I've been trying to run the slurm
controller daemon, but I get an
sudo slurmctld -Dcvvvv
slurmctld: pidfile not locked, assuming no
running daemon
slurmctld: error: Configured MailProg is
invalid
slurmctld: error: Job accounting
information gathered, but not stored
slurmctld: fatal: Incorrect permissions on
state save loc: /var/spool
Munge daemon is running and /var/spool
ls -ld /var/spool
drwxr-xr-x 10 root root 4096 Ago 5 13:31
/var/spool
Does anyone knows how should /var/spool
permissions be set?
Thanks in advance.
-- Erica
--
===============
Erica Riello
Aluna Engenharia de Computação PUC-Rio
--
===============
Erica Riello
Aluna Engenharia de Computação PUC-Rio
--
===============
Erica Riello
Aluna Engenharia de Computação PUC-Rio
--
===============
Erica Riello
Aluna Engenharia de Computação PUC-Rio