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



On 6 August 2014 16:49, Erica Riello <[email protected]> wrote:

>  Uwe,
>
> I've created slurm user and edited the value in slurm.conf. However, it
> still shows the same error message:
>
> > 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
>
>
>
> 2014-08-05 17:55 GMT-03:00 Uwe Sauter <[email protected]>:
>
>  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
>>
>> Am 05.08.2014 22:39, schrieb Erica Riello:
>>
>> Uwe,
>>
>>  Thank you for the info.
>>
>>  I compiled it myself, following the instructions available in the
>> website.
>>
>>  Regards,
>>
>>  Erica.
>>
>>
>> 2014-08-05 17:32 GMT-03:00 Uwe Sauter <[email protected]>:
>>
>>>  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
>>>
>>>
>>> Am 05.08.2014 22:20, schrieb 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 <[email protected]>:
>>>
>>>>  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
>>>>
>>>>
>>>> Am 05.08.2014 22:04, schrieb 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 <[email protected]>:
>>>>
>>>>>
>>>>> 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
>>>>>
>>>>> On 08/05/2014 01:33 PM, Mike Johnson wrote:
>>>>>
>>>>>> 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 <[email protected]
>>>>>> <mailto:[email protected]>> wrote:
>>>>>>
>>>>>>     Hi all,
>>>>>>
>>>>>>     I've been trying to run the slurm controller daemon, but I get an
>>>>>>     error I have no idea how to solve:
>>>>>>
>>>>>>     > 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 permissions are:
>>>>>>
>>>>>>     > 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
>
>

Reply via email to