Further bind problem + explanation of Error 0

Stewart Boutcher (stew@webworlds.net)
Thu, 06 Nov 1997 14:38:43 +0000

Hi all,

Thanks to those that replied to the original "Error 0 & bind" message.
This is a continuation and I will summarise once all is sorted.

Especially thanks to Michael Hill who put me straight on Error 0 :

> The problem is, some process is calling perror() or a related library
> function, when errno has not been set to a non-zero error value by
> any other library function. (It's as if you opened a file normally,
> with no errors, and then called perror() - you would get "Error 0".)

Thanks for that. As a result I decided to upgrade to Bind 8.1.1,
the latest "release" version and see if the error message would be
somewhat more helpful. It was :

* amuse#(67) ndc start
* socket(SOCK_DGRAM): Too many open files
* Abort - core dumped
* amuse#(68)

>From /var/adm/messages :

* Nov 6 14:18:27 amuse
root@amuse:/export/home/src/bind8.1/obj/bin/named
* Nov 6 14:18:34 amuse named[21705]: fcntl(dfd, F_DUPFD, 20): Too many
open files
(repeated 14 times)
* Nov 6 14:18:35 amuse named[21705]: socket(SOCK_DGRAM): Too many open
files
* Nov 6 14:18:35 amuse named[21705]: socket(SOCK_DGRAM): Too many open
files

I suspect that this is a file descriptor problem (from F_DUPFD), but
the output from sysdef -i has the following :

* Process Resource Limit Tunables (Current:Maximum)
40: 400 file descriptors

Which I take to mean (since the current is 40) that this is not the
problem here? Please correct me if I am wrong (please!).

I can find no reference to either "F_DUPFD", or "SOCK_DGRAM" in
the manual pages for either sysconf or system, nor are they referenced
in the sun System Administration Guide in the section on the kernel
parameters.

Any suggestions as to what needs to be changed to allow named to
restart.
It seems to be okay on boot, just not re-start/re-load.
BTW, we are running primary for some 250+ domains, so it is not
unfeasible that we are running out of file handles (I think)...

Output of uname -a :
SunOS amuse 5.5.1 Generic_103640-03 sun4m sparc SUNW,SPARCstation-5

Thanks in advance.
Stewart

-- 
Stewart Boutcher ; Sysadm, Support, Whatever
 stew@webworlds.net ; tel +44(0)121.4465552
   
  WebWorlds Limited : the premier www host
           http://webworlds.net/