[Samba] NT_STATUS_TOO_MANY_OPENED_FILES with Samba 4.0.6 and Internal DNS

Andrew Martin amartin at xes-inc.com
Wed Jul 10 08:43:37 MDT 2013


Hello,

I am using Samba 4.0.6 on Ubuntu 12.04 with the internal DNS and dns forwarder set to forward to an upstream dnsmasq server as follows:
[global]
        workgroup = EXAMPLE
        realm = EXAMPLE.COM
        netbios name = DC0
        server role = active directory domain controller
        dns forwarder = 192.168.010
        idmap_ldb:use rfc2307 = Yes

        # disable printing since we're not using it and to get rid of printcap errors in log
        printcap name = /dev/null
        load printers = no
        printing = bsd

[netlogon]
        path = /var/lib/samba/sysvol/example.com/scripts
        read only = No

[sysvol]
        path = /var/lib/samba/sysvol
        read only = No


Samba 4 has been working well so far as an AD DC, however I have seen this message appear in the samba log:
[2013/07/10 08:52:35,  0] ../source4/smbd/process_single.c:57(single_accept_connection)
  single_accept_connection: accept: NT_STATUS_TOO_MANY_OPENED_FILES

I found this bug report and thread regarding this issue, and stating that it had been fixed in 4.0.0 rc3:
https://bugzilla.samba.org/show_bug.cgi?id=8878
http://samba.2283325.n4.nabble.com/Samba3-gt-samba-4-td4638214.html

I confirmed that the attached patch is indeed applied in my copy of 4.0.6. What else can I do to debug this problem?

Thanks,

Andrew


More information about the samba mailing list