[Pkg-samba-maint] Bug#822812: samba: NT_STATUS_TOO_MANY_OPENED_FILES after latest upgrade

Christopher Schramm debian at cschramm.eu
Wed Apr 27 19:49:04 UTC 2016


Package: samba
Version: 2:4.2.10+dfsg-0+deb8u2
Severity: normal

Dear Maintainer,

since the samba version in jessie was updated to 4.2 we have an issue with our server that renders shares unusable. After they've been accessed for a small amount of time, the log constantly shows:

single_accept_connection: accept: NT_STATUS_TOO_MANY_OPENED_FILES

In fact each samba process' /proc/*/limits file shows:

Max open files            1024                 4096                 files

>From what I read on the Internet this limit seems to be quite low for a frequently used Samba server.

ulimit -n in ssh shows 65536. I tried to increase the limit for samba by adding a nofile configuration to /etc/security/limits.conf as well as adding a max open files configuration to /etc/samba/smb.conf but it did not have any effect. I also added pam_limits.so to /etc/pam.d/samba as I found that on the Internet, however I doubt that it makes any sense in my situation as it is not about per-login (smbd) processes but the limit is set for the main samba process and every child.

I'm puzzled how to change the limit and why this shows up after the upgrade. The server worked fine before.

Regards
Christopher


-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages samba depends on:
ii  adduser                              3.113+nmu3
ii  dpkg                                 1.17.26
ii  libbsd0                              0.7.0-2
ii  libc6                                2.19-18+deb8u4
ii  libhdb9-heimdal [heimdal-hdb-api-8]  1.6~rc2+dfsg-9
ii  libldb1                              2:1.1.20-0+deb8u1
ii  libpam-modules                       1.1.8-3.1+deb8u1+b1
ii  libpam-runtime                       1.1.8-3.1+deb8u1
ii  libpopt0                             1.16-10
ii  libpython2.7                         2.7.9-2
ii  libtalloc2                           2.1.2-0+deb8u1
ii  libtdb1                              1.3.6-0+deb8u1
ii  libtevent0                           0.9.25-0+deb8u1
ii  lsb-base                             4.1+Debian13+nmu1
ii  multiarch-support                    2.19-18+deb8u4
ii  procps                               2:3.3.9-9
ii  python                               2.7.9-1
ii  python-dnspython                     1.12.0-1
ii  python-ntdb                          1.0-5
ii  python-samba                         2:4.2.10+dfsg-0+deb8u2
pn  python2.7:any                        <none>
ii  samba-common                         2:4.2.10+dfsg-0+deb8u2
ii  samba-common-bin                     2:4.2.10+dfsg-0+deb8u2
ii  samba-dsdb-modules                   2:4.2.10+dfsg-0+deb8u2
ii  samba-libs                           2:4.2.10+dfsg-0+deb8u2
ii  tdb-tools                            1.3.6-0+deb8u1
ii  update-inetd                         4.43

Versions of packages samba recommends:
ii  attr               1:2.4.47-2
ii  logrotate          3.8.7-1+b1
ii  samba-vfs-modules  2:4.2.10+dfsg-0+deb8u2

Versions of packages samba suggests:
pn  bind9          <none>
pn  bind9utils     <none>
pn  ctdb           <none>
pn  ldb-tools      <none>
ii  ntp            1:4.2.6.p5+dfsg-7+deb8u1
pn  smbldap-tools  <none>
ii  winbind        2:4.2.10+dfsg-0+deb8u2

-- no debconf information



More information about the Pkg-samba-maint mailing list