dima vasiletc
2009-Jun-15 13:31 UTC
[389-users] which user must have access to /var/run/dirsrv ?
Hello When i try start dirsrv i have error Failed to delete old semaphore for stats file (/var/run/dirsrv/slapd-MY-DOMAIN-COM.stats). Error 13 (Permission denied). but access for dirsrv user permited. also -- С уважением, Дмитрий
Richard Megginson
2009-Jun-15 15:53 UTC
Re: [389-users] which user must have access to /var/run/dirsrv ?
----- "dima vasiletc" <pronix.service@gmail.com> wrote:> Hello > When i try start dirsrv i have error > Failed to delete old semaphore for stats file > (/var/run/dirsrv/slapd-MY-DOMAIN-COM.stats). Error 13 (Permission > denied). > > but access for dirsrv user permited. > alsols -al /var/run/dirsrv> > -- > С уважением, Дмитрий > > -- > 389 users mailing list > 389-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users
dima vasiletc
2009-Jun-15 15:55 UTC
Re: [389-users] which user must have access to /var/run/dirsrv ?
On 06/15/2009 07:53 PM, Richard Megginson wrote:> ls -al /var/run/dirsrv >drwxrwxrwx 2 dirsrv nobody 4096 2009-06-15 10:21 . drwxr-xr-x 31 root root 4096 2009-06-15 10:21 .. -rw-r--r-- 1 dirsrv dirsrv 6 2009-06-15 10:21 slapd-MYDOMAIN-COM.startpid -rw-r--r-- 1 dirsrv dirsrv 2072 2009-06-15 10:07 slapd-MYDOMAIN-COM.stats -- С уважением, Дмитрий
Nathan Kinder
2009-Jun-15 16:08 UTC
Re: [389-users] which user must have access to /var/run/dirsrv ?
dima vasiletc wrote:> Hello > When i try start dirsrv i have error > Failed to delete old semaphore for stats file > (/var/run/dirsrv/slapd-MY-DOMAIN-COM.stats). Error 13 (Permission > denied).Note that this is referring to a semaphore that coordinates access to the stats file, not the stats file itself. Did you previously install and remove a DS instance with the same name on this system? Did you recently change the user that this DS instance runs as?> > but access for dirsrv user permited. > also >
dima vasiletc
2009-Jun-15 16:16 UTC
Re: [389-users] which user must have access to /var/run/dirsrv ?
On 06/15/2009 08:08 PM, Nathan Kinder wrote:> dima vasiletc wrote: >> Hello >> When i try start dirsrv i have error >> Failed to delete old semaphore for stats file >> (/var/run/dirsrv/slapd-MY-DOMAIN-COM.stats). Error 13 (Permission >> denied). > Note that this is referring to a semaphore that coordinates access to > the stats file, not the stats file itself. > > Did you previously install and remove a DS instance with the same name > on this system? Did you recently change the user that this DS > instance runs as? >> >> but access for dirsrv user permited. >> also >> > > -- > 389 users mailing list > 389-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >Yes i reinstall and change more configurations. You think reboot can help ? -- С уважением, Дмитрий
dima vasiletc
2009-Jun-15 16:19 UTC
Re: [389-users] which user must have access to /var/run/dirsrv ?
dima vasiletc
2009-Jun-15 16:27 UTC
Re: [389-users] which user must have access to /var/run/dirsrv ?
On 06/15/2009 08:08 PM, Nathan Kinder wrote:> dima vasiletc wrote: >> Hello >> When i try start dirsrv i have error >> Failed to delete old semaphore for stats file >> (/var/run/dirsrv/slapd-MY-DOMAIN-COM.stats). Error 13 (Permission >> denied). > Note that this is referring to a semaphore that coordinates access to > the stats file, not the stats file itself. > > Did you previously install and remove a DS instance with the same name > on this system? Did you recently change the user that this DS > instance runs as? >> >> but access for dirsrv user permited. >> also >> > > -- > 389 users mailing list > 389-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >Thanks. After reboot resolved. -- С уважением, Дмитрий
Nathan Kinder
2009-Jun-15 16:29 UTC
Re: [389-users] which user must have access to /var/run/dirsrv ?
dima vasiletc wrote:> On 06/15/2009 08:08 PM, Nathan Kinder wrote: >> dima vasiletc wrote: >>> Hello >>> When i try start dirsrv i have error >>> Failed to delete old semaphore for stats file >>> (/var/run/dirsrv/slapd-MY-DOMAIN-COM.stats). Error 13 (Permission >>> denied). >> Note that this is referring to a semaphore that coordinates access to >> the stats file, not the stats file itself. >> >> Did you previously install and remove a DS instance with the same >> name on this system? Did you recently change the user that this DS >> instance runs as? >>> >>> but access for dirsrv user permited. >>> also >>> >> >> -- >> 389 users mailing list >> 389-users@redhat.com >> https://www.redhat.com/mailman/listinfo/fedora-directory-users >> > Thanks. > After reboot resolved.Posix named semaphores are removed during a reboot, which is why the reboot fixed your problem. A reboot is not necessary to clean up a left over semaphore. You can see the current named semaphores and their ownership by doing a ''ls -l /dev/shm''. For DS, we create a semaphore named something similar to "sem.slapd-localhost.stats". I believe simply removing this would have fixed your problem as well.