Anthony Giggins
2009-May-04 06:41 UTC
[Fedora-directory-users] fds fails to start in centos 5.3 openvz instance
Hi Guys, After installing fds on Centos 5.3 in an OpenVZ virtual instance from the Enterprise Linux 5 instructions provided http://directory.fedoraproject.org/wiki/Download I''m getting the errors below in the logs when starting the service. [04/May/2009:02:33:21 -0400] - Fedora-Directory/1.2.0 B2009.091.197 starting up [04/May/2009:02:33:21 -0400] - Failed to create semaphore for stats file (/var/run/dirsrv/slapd-sso.stats). Error 38.(Function not implemented) I''m pretty sure this is going to be a OpenVZ issue but I thought I''d post here first to get idea what is actually failing so I can investigate the OpenVZ side of things, any information that can help me troubleshoot this issue would be great. Thank You Anthony
Rich Megginson
2009-May-04 13:10 UTC
Re: [Fedora-directory-users] fds fails to start in centos 5.3 openvz instance
Anthony Giggins wrote:> Hi Guys, > > After installing fds on Centos 5.3 in an OpenVZ virtual instance from > the Enterprise Linux 5 instructions provided > http://directory.fedoraproject.org/wiki/Download > I''m getting the errors below in the logs when starting the service. > > > [04/May/2009:02:33:21 -0400] - Fedora-Directory/1.2.0 B2009.091.197 > starting up > [04/May/2009:02:33:21 -0400] - Failed to create semaphore for stats file > (/var/run/dirsrv/slapd-sso.stats). Error 38.(Function not implemented) > > > I''m pretty sure this is going to be a OpenVZ issue but I thought I''d > post here first to get idea what is actually failing so I can > investigate the OpenVZ side of things, any information that can help me > troubleshoot this issue would be great. >Does /var/run/dirsrv exist? Is it writable by your directory server user?> Thank You > > Anthony > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
Anthony Giggins
2009-May-04 23:37 UTC
RE: [Fedora-directory-users] fds fails to start in centos 5.3 openvzinstance
> Does /var/run/dirsrv exist? Is it writable by your directory serveruser? Yep that folder exists, permissions look fine drwxrwxrwx 3 root nobody 4096 May 4 02:33 dirsrv
Rich Megginson
2009-May-05 00:59 UTC
Re: [Fedora-directory-users] fds fails to start in centos 5.3 openvzinstance
Anthony Giggins wrote:>> Does /var/run/dirsrv exist? Is it writable by your directory server >> > user? > > Yep that folder exists, permissions look fine > > drwxrwxrwx 3 root nobody 4096 May 4 02:33 dirsrv >Do you have the nsslapd-rundir attribute in cn=config in /etc/dirsrv/slapd-yourinstance/dse.ldif?> -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
Anthony Giggins
2009-May-05 02:41 UTC
RE: [Fedora-directory-users] fds fails to start in centos5.3 openvzinstance
> Do you have the nsslapd-rundir attribute in cn=config in > /etc/dirsrv/slapd-yourinstance/dse.ldif? > >Yep, that looks good nsslapd-rundir: /var/run/dirsrv
Rich Megginson
2009-May-05 13:29 UTC
Re: [Fedora-directory-users] fds fails to start in centos5.3 openvzinstance
Anthony Giggins wrote:>> Do you have the nsslapd-rundir attribute in cn=config in >> /etc/dirsrv/slapd-yourinstance/dse.ldif? >> > > Yep, that looks good > > nsslapd-rundir: /var/run/dirsrv > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >Try starting the setver in debug mode /usr/lib/dirsrv/slapd-instance/start-slapd -d 1
Anthony Giggins
2009-May-06 00:09 UTC
RE: [Fedora-directory-users] fds fails to startin centos5.3 openvzinstance
> Try starting the setver in debug mode > /usr/lib/dirsrv/slapd-instance/start-slapd -d 1Nope that doesn''t work but as it''s a 64bit virtual instance the command below seems to work /usr/lib64/dirsrv/slapd-sso/start-slapd -d 1 Appears to work up until [05/May/2009:20:04:33 -0400] - add_created_attrs [05/May/2009:20:04:33 -0400] - => send_ldap_result 0:: [05/May/2009:20:04:33 -0400] - <= send_ldap_result [05/May/2009:20:04:33 -0400] - Fedora-Directory/1.2.0 B2009.091.197 starting up [05/May/2009:20:04:33 -0400] - Failed to create semaphore for stats file (/var/run/dirsrv/slapd-sso.stats). Error 38.(Function not implemented)
Rich Megginson
2009-May-06 00:21 UTC
Re: [Fedora-directory-users] fds fails to startin centos5.3 openvzinstance
Anthony Giggins wrote:>> Try starting the setver in debug mode >> /usr/lib/dirsrv/slapd-instance/start-slapd -d 1 >> > > Nope that doesn''t work but as it''s a 64bit virtual instance the command > below seems to work > > /usr/lib64/dirsrv/slapd-sso/start-slapd -d 1 > > Appears to work up until > > [05/May/2009:20:04:33 -0400] - add_created_attrs > [05/May/2009:20:04:33 -0400] - => send_ldap_result 0:: > [05/May/2009:20:04:33 -0400] - <= send_ldap_result > [05/May/2009:20:04:33 -0400] - Fedora-Directory/1.2.0 B2009.091.197 > starting up > [05/May/2009:20:04:33 -0400] - Failed to create semaphore for stats file > (/var/run/dirsrv/slapd-sso.stats). Error 38.(Function not implemented) >Are you attempting to run in a VM or in some sort of chroot environment? I''ve seen this before when running the directory server in a chroot. This is what I had to do: echo tmpfs /dev/shm tmpfs defaults 0 0 >> /etc/fstab mount /dev/shm run the server If you are using a chroot (e.g. mock) you must do the mount /dev/shm in the same chroot "session" - it does not persist.> > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
Anthony Giggins
2009-May-06 03:03 UTC
RE: [Fedora-directory-users] fds failsto startin centos5.3 openvzinstance
> Are you attempting to run in a VM or in some sort of chroot > environment? I''ve seen this before when running the directory serverin> a chroot. This is what I had to do: > echo tmpfs /dev/shm tmpfs defaults 0 0 >> /etc/fstab > mount /dev/shm > run the serverThanks Rich This fixed the issue.