Mikael Kermorgant
2007-Feb-07 08:22 UTC
[Fedora-directory-users] error when restarting FDS
Hello,
This night, FDS (1.0.2) refused to start after backup. I found this in
the logs :
[06/Feb/2007:22:04:39 +0100] - slapd stopped.
Fedora-Directory/1.0.2 B2006.060.1951
host:389 (/opt/fedora-ds/slapd-supann)
[06/Feb/2007:22:04:51 +0100] dse - The entry cn=config in file
/opt/fedora-ds/slapd-supann/config/dse.ldif is invalid, error code 53
(DSA is unwilling to perform) - nsslapd-maxdescriptors: invalid value
"65536", maximum file descriptors must range from 1 to 1024 (the
current process limit)
[06/Feb/2007:22:04:51 +0100] dse - Could not load config file [dse.ldif]
[06/Feb/2007:22:04:51 +0100] dse - Please edit the file to correct the
reported problems and then restart the server.
Fedora-Directory/1.0.2 B2006.060.1951
host:636 (/opt/fedora-ds/slapd-supann)
[07/Feb/2007:08:50:20 +0100] - Fedora-Directory/1.0.2 B2006.060.1951 starting up
Indeed, I checked my system and found :
[root@host logs]# cat /proc/sys/fs/file-max
65536
Which seems correct if I follow this page :
http://directory.fedora.redhat.com/wiki/Performance_Tuning#Linux
However, fds started without any problem some time later.
Any Idea about what I should do about this pb ?
Thanks in advance,
--
Mikael Kermorgant
Morris, Patrick
2007-Feb-07 16:44 UTC
RE: [Fedora-directory-users] error when restarting FDS
> From: fedora-directory-users-bounces@redhat.com > [mailto:fedora-directory-users-bounces@redhat.com] On Behalf > Of Mikael Kermorgant > Sent: Wednesday, February 07, 2007 12:22 AM > To: General discussion list for the Fedora Directory server project. > Subject: [Fedora-directory-users] error when restarting FDS > > Hello, > > This night, FDS (1.0.2) refused to start after backup. I > found this in the logs : > > [06/Feb/2007:22:04:39 +0100] - slapd stopped. > Fedora-Directory/1.0.2 B2006.060.1951 > host:389 (/opt/fedora-ds/slapd-supann) > > [06/Feb/2007:22:04:51 +0100] dse - The entry cn=config in > file /opt/fedora-ds/slapd-supann/config/dse.ldif is invalid, > error code 53 (DSA is unwilling to perform) - > nsslapd-maxdescriptors: invalid value "65536", maximum file > descriptors must range from 1 to 1024 (the current process limit) > [06/Feb/2007:22:04:51 +0100] dse - Could not load config file > [dse.ldif] > [06/Feb/2007:22:04:51 +0100] dse - Please edit the file to > correct the reported problems and then restart the server. > Fedora-Directory/1.0.2 B2006.060.1951 > host:636 (/opt/fedora-ds/slapd-supann)How are you settigng your file descriptor limits, and how does the backup run? Chances are that when the server is restarted after the backup, they are not set correctly. I''m going to take a wild guess that it runs out of cron with an environment that''s not set with the right number.
Nathan Kinder
2007-Feb-07 16:54 UTC
Re: [Fedora-directory-users] error when restarting FDS
Mikael Kermorgant wrote:> Hello, > > This night, FDS (1.0.2) refused to start after backup. I found this in > the logs : > > [06/Feb/2007:22:04:39 +0100] - slapd stopped. > Fedora-Directory/1.0.2 B2006.060.1951 > host:389 (/opt/fedora-ds/slapd-supann) > > [06/Feb/2007:22:04:51 +0100] dse - The entry cn=config in file > /opt/fedora-ds/slapd-supann/config/dse.ldif is invalid, error code 53 > (DSA is unwilling to perform) - nsslapd-maxdescriptors: invalid value > "65536", maximum file descriptors must range from 1 to 1024 (the > current process limit) > [06/Feb/2007:22:04:51 +0100] dse - Could not load config file [dse.ldif] > [06/Feb/2007:22:04:51 +0100] dse - Please edit the file to correct the > reported problems and then restart the server. > Fedora-Directory/1.0.2 B2006.060.1951 > host:636 (/opt/fedora-ds/slapd-supann) > > [07/Feb/2007:08:50:20 +0100] - Fedora-Directory/1.0.2 B2006.060.1951 > starting up > > Indeed, I checked my system and found : > > [root@host logs]# cat /proc/sys/fs/file-max > 65536Try checking the limit by running "ulimit -n". -NGK> > Which seems correct if I follow this page : > http://directory.fedora.redhat.com/wiki/Performance_Tuning#Linux > > However, fds started without any problem some time later. > > Any Idea about what I should do about this pb ? > Thanks in advance, >
Mikael Kermorgant
2007-Feb-08 21:39 UTC
Re: [Fedora-directory-users] error when restarting FDS
2007/2/7, Morris, Patrick <patrick.morris@hp.com>:> > From: fedora-directory-users-bounces@redhat.com > > > > This night, FDS (1.0.2) refused to start after backup. I > > found this in the logs : > > > > [06/Feb/2007:22:04:39 +0100] - slapd stopped. > > Fedora-Directory/1.0.2 B2006.060.1951 > > host:389 (/opt/fedora-ds/slapd-supann) > > > > [06/Feb/2007:22:04:51 +0100] dse - The entry cn=config in > > file /opt/fedora-ds/slapd-supann/config/dse.ldif is invalid, > > error code 53 (DSA is unwilling to perform) - > > nsslapd-maxdescriptors: invalid value "65536", maximum file > > descriptors must range from 1 to 1024 (the current process limit) > > [06/Feb/2007:22:04:51 +0100] dse - Could not load config file > > [dse.ldif] > > How are you settigng your file descriptor limits, and how does the > backup run? Chances are that when the server is restarted after the > backup, they are not set correctly. I''m going to take a wild guess that > it runs out of cron with an environment that''s not set with the right > number.Thanks for your answers, To reply the first mail, "ulimit -n" returns 1024. I run my backup with a script called by bacula (which runs with root privileges). Here''s the content of the script : #!/bin/sh echo "stopping fedora directory server" /etc/init.d/fds stop echo "rsyncing" /usr/bin/rsync -a --delete /opt/fedora-ds /opt/fedora-ds.rsync sleep 10 echo "starting fedora directory server" /etc/init.d/fds start Do you know what command I should add to this script to set up the environment correctly ? Thanks in advance, -- Mikael Kermorgant
Gordon Messmer
2007-Feb-08 22:32 UTC
Re: [Fedora-directory-users] error when restarting FDS
Mikael Kermorgant wrote:> echo "starting fedora directory server" > /etc/init.d/fds start > > Do you know what command I should add to this script to set up the > environment correctly ?Modify /etc/init.d/fds, and add "ulimit -n 65536" there.
Mikael Kermorgant
2007-Feb-11 09:20 UTC
Re: [Fedora-directory-users] error when restarting FDS
2007/2/8, Gordon Messmer <yinyang@eburg.com>:> > echo "starting fedora directory server" > > /etc/init.d/fds start > > Do you know what command I should add to this script to set up the > > environment correctly ? > > Modify /etc/init.d/fds, and add "ulimit -n 65536" there.Thanks a lot, it works ! Regards, -- Mikael Kermorgant