Bug 4297 - Samba stops fileserving for IIS5 client on win2k
Samba stops fileserving for IIS5 client on win2k
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: File Services
3.0.23d
x86 Linux
: P3 critical
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-14 12:48 UTC by James ffolliott
Modified: 2006-12-15 13:45 UTC (History)
0 users

See Also:


Attachments
G-zipped debug log of the smbd process after it stops serving files (72.81 KB, application/octet-stream)
2006-12-15 13:45 UTC, James ffolliott
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description James ffolliott 2006-12-14 12:48:48 UTC
Using samba 3.0.23d on linux 2.4.27 kernel as a PDC with ldap backend (openldap), as well as a fileserver for hosting website files for a couple win2k servers running IIS5 with approx 60-70 sites (which are virtual hosts under IIS).  Each IIS virtual host accesses a network directory which is on the samba server, with the same domain account entered in the "connect as" dialog.  So this means there are 60+ connections made to the \\kingwood\web fileshare by the same user.

This had worked well for several years using Win2k as the fileserver, and with the move to samba it will work for several days however the smbd process for this client will stop serving connections after some time.  Each time the smbd process has worked it's way up to use 260MB of memory (note: the server has 2GB ram and approx 1GB free).  At this point IIS return a 501 status to requests that access the fileshare on samba.  This occurs on a weekly basis and requires a sigkill and restart of samba.

I've attached a diag level 10 of the smbd process after it stopped serving files for this client.  You can also download it from,
http://secure.inline.net/log.juniper.18895.gz

This may, or may not, be related to another bug I've submitted suspecting a possible memory leak.  Bug #4282.
https://bugzilla.samba.org/show_bug.cgi?id=4282

Any help much appreciated!  Please let me know if there's any more information you might need.

Here's the smb.conf

[global]
        workgroup = FOREST
        server string = %h domain server
        interfaces = 127.0.0.0/8, 192.168.12.24/24
        bind interfaces only = Yes
        obey pam restrictions = Yes
        passdb backend = ldapsam:ldaps://kingwood.ourdomain.com/
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        log level = 1
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 0
        max mux = 2048
        time server = Yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        max stat cache size = 1000
        add user script = /usr/sbin/smbldap-useradd -m '%u'
        delete user script = /usr/sbin/smbldap-userdel '%u'
        add group script = /usr/sbin/smbldap-groupadd -p '%g'
        delete group script = /usr/sbin/smbldap-groupdel '%g'
        add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
        delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
        set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
        add machine script = /usr/sbin/smbldap-useradd -w '%u'
        logon script = %U.cmd
        logon path =
        logon drive = H:
        logon home =
        domain logons = Yes
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins support = Yes
        ldap admin dn = cn=samba,ou=DSA,dc=ourdomain,dc=com
        ldap group suffix = ou=Group
        ldap idmap suffix = ou=Idmap
        ldap machine suffix = ou=Computers
        ldap passwd sync = Yes
        ldap suffix = dc=ourdomain,dc=com
        ldap user suffix = ou=People
        message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
        panic action = /usr/share/samba/panic-action %d
        idmap backend = ldap:ldaps://kingwood.ourdomain.com/
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        template shell = /bin/bash
        force unknown acl user = Yes
        use sendfile = Yes
        dos filemode = Yes

[homes]
        comment = Home Directories
        read only = No
        create mask = 0700
        directory mask = 0700
        browseable = No

[netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon/scripts
        guest ok = Yes
        share modes = No
        root preexec = /var/lib/samba/netlogon/scripts/logon.pl %U %I

[printers]
        comment = All Printers
        path = /tmp
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
        write list = root, @ntadmin

[sales]
        comment = Sales material
        path = /home/sales
        read only = No
        create mask = 0770
        directory mask = 0770
        browseable = No

[softdev]
        comment = Common material
        path = /home/softdev
        read only = No
        create mask = 0770
        directory mask = 0770
        browseable = No

[management]
        comment = Management Data
        path = /home/management
        read only = No
        create mask = 0770
        directory mask = 0770
        browseable = No

[web]
        comment = Shared Web Hosting
        path = /home/web
        read only = No
        create mask = 0770
        directory mask = 0770
Comment 1 James ffolliott 2006-12-15 13:45:47 UTC
Created attachment 2239 [details]
G-zipped debug log of the smbd process after it stops serving files

This is a level 10 log of the smbd process that stops serving files for this client.