Discussion:
(unknown)
Erica Riello
2014-08-05 17:20:32 UTC
Permalink
Hi all,

I've been trying to run the slurm controller daemon, but I get an error I
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
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
Mike Johnson
2014-08-05 18:33:33 UTC
Permalink
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
Post by Erica Riello
Hi all,
I've been trying to run the slurm controller daemon, but I get an error I
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
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
Kiran Thyagaraja
2014-08-05 18:54:30 UTC
Permalink
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
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
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
2014-08-05 20:03:36 UTC
Permalink
Kiran,

that's exactly what I've done, but I still get the same error messages.

Erica
Post by 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
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
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
Uwe Sauter
2014-08-05 20:10:35 UTC
Permalink
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".

Here's the line of my /etc/passwd for this user:

slurm:x:222:222:SLURM Manager:/:/bin/false


Regards,

Uwe
Post by Erica Riello
Kiran,
that's exactly what I've done, but I still get the same error messages.
Erica
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
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
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
2014-08-05 20:19:38 UTC
Permalink
Hi 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
Post by 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
Kiran,
that's exactly what I've done, but I still get the same error messages.
Erica
Post by 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
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
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
Uwe Sauter
2014-08-05 20:32:20 UTC
Permalink
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 Riello
Hi 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
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 Riello
Kiran,
that's exactly what I've done, but I still get the same error messages.
Erica
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
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
2014-08-05 20:37:48 UTC
Permalink
Uwe,

Thank you for the info.

I compiled it myself, following the instructions available in the website.

Regards,

Erica.
Post by Uwe Sauter
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
Hi 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
Post by 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
Kiran,
that's exactly what I've done, but I still get the same error messages.
Erica
Post by 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
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
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
Uwe Sauter
2014-08-05 20:55:54 UTC
Permalink
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
Post by Erica Riello
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 Riello
Hi 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
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 Riello
Kiran,
that's exactly what I've done, but I still get the same error messages.
Erica
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
2014-08-06 15:49:03 UTC
Permalink
Uwe,

I've created slurm user and edited the value in slurm.conf. However, it
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.
Post by Uwe Sauter
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
Hi 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
Post by 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
Kiran,
that's exactly what I've done, but I still get the same error messages.
Erica
Post by 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
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
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
Marcin Stolarek
2014-08-06 16:16:32 UTC
Permalink
Post by Erica Riello
Uwe,
I've created slurm user and edited the value in slurm.conf. However, it
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...
http://pl.wikipedia.org/wiki/Security-Enhanced_Linux
;-)
Post by Erica Riello
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.
Post by Uwe Sauter
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
Hi 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
Post by 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
Kiran,
that's exactly what I've done, but I still get the same error messages.
Erica
Post by 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
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
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
Mike Johnson
2014-08-06 16:20:04 UTC
Permalink
Hi Erica

Which Linux distro are you using? Which version?

Also can you post the output of the following commands:

sestatus
lsb_release -a
which mail

As for the /var/log/audit directory, if the software wants it to be there
then there's no harm in creating it.

mkdir -p /var/log/audit
chown erica:root /var/log/audit
chmod 775 /var/log/audit



To be honest, and without wanting to sound rude, if you're so unsure about
fixing these issues then you might do better to get a packaged version of
the software. We all have to learn this stuff at some point though. If
your aim is to get a cluster up and running, maybe the packaged software
would let you achieve this faster. On the other hand, if you're doing this
to learn more about system administration then learning to fix these sort
of things is all part of the fun :)

Mike
Post by Erica Riello
Uwe,
I've created slurm user and edited the value in slurm.conf. However, it
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.
Post by Uwe Sauter
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
Hi 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
Post by 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
Kiran,
that's exactly what I've done, but I still get the same error messages.
Erica
Post by 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
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
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
Kiran Thyagaraja
2014-08-06 17:53:36 UTC
Permalink
Hi,

To get rid of the errors you're seeing, install a program such as mailx
which provides /bin/mail. Next make the following changes in your slurm.conf

StateSaveLocation=/var/spool/slurm

Those two changes should take care of the errors.

Kiran
Post by Erica Riello
Uwe,
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 Riello
Hi 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 Riello
Kiran,
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
Erica Riello
2014-08-05 20:00:59 UTC
Permalink
Hi Mike,

SlurmUser=erica

#MailProg=/bin/mail

There is no mail in /bin/ directory. What's the aim of mail? How can I
install it?

Erica
Post by Mike Johnson
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
Post by Erica Riello
Hi all,
I've been trying to run the slurm controller daemon, but I get an error I
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
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
Continue reading on narkive:
Loading...