[Samba] Sick Samba 3.0.14a-3 Server - in a world of pain!

JB Hewitt johnblade at gmail.com
Tue Nov 22 23:35:34 GMT 2005


I wrote such a generic subject line because I'm stuck and not quite
sure where to go...

It's a Samba 3.0.14a-3 server running on Debian stable.  It uses LDAP
authentication and is the primary Domain server on the network.
Until around a month ago the server '''seemed''' to be fine, but now I
have to massage it to life every morning just so the users can access
it (killall -9 smbd, restart samba until most people can see it).
The clients are primarly WinXP SP2 machines with a few Win2K and one NT.

Here's the symptoms.
1) log.smbd was showing the following errors repeatedly " getpeername
failed. Error was Transport endpoint is not connected [2005/10/24
08:00:40, 0] lib/util_sock.c:get_peer_addr(1150)"
I thought this would solve the problem of
So after scanning through the mail archives I gleemed that it could be
a problem with port issues, so I added smb ports = 139 into the
smb.conf and viola the error message dissapeared.
However the 'hanging' samba server issue

2) The server hangs, in pieces.  It continually spawns smbd processes,
however for the clients that cannot connect to the server (forever
timing out) will never successfully connect to it until samba is
shutdown forcibly.  Even then it takes a few times before the system
is working again.

3) nmblookup hq (the server name) yeilds nothing.  Whilst Wins is
working on the clients and nmbd.log shows it is the Wins server,
nmblookup on the actual server doesn't work.  Not critical, but
wondering if it could be related.

4) I cannot find anything in the logs that looks wrong.  I possibly
need some more diagnostics to figure out the cause.

And last, here's a dump of the config file:

# Global parameters
[global]
        unix charset = ISO8859-1
        workgroup = WORKGROUP
        server string = HQ
        interfaces = 192.168.0.0/255.255.0.0
        passdb backend = ldapsam:ldap://localhost
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        unix password sync = Yes
        log level = 4
        log file = /var/log/samba/log.%m
        max log size = 50
        smb ports = 139
        announce version = 4.8
        load printers = No
        printcap name = /dev/null
        add machine script = "/usr/sbin/smbldap-useradd -w %u"
        logon script = logon.bat
        logon path = \\%L\%U\profile
        logon drive = p:
        logon home = \\%L\%U
        domain logons = Yes
        os level = 60
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins support = Yes
        ldap admin dn = cn=admin,dc=soapbox
        ldap group suffix = ou=Groups
        ldap idmap suffix = ou=Idmap,ou=Systems
        ldap machine suffix = ou=Computers
        ldap passwd sync = Yes
        ldap suffix = dc=soapbox
        ldap user suffix = ou=People
        create mask = 0660
        directory mask = 0775
        hosts allow = 192.168., 127., 10.0.0.
        use sendfile = Yes
        case sensitive = No
        short preserve case = No
        veto oplock files = /*.QBW/*.bat/*.mdb/

[share]
        comment = Shared Directory
        path = /srv
        read only = No

[companyshared]
        comment = share
        path = /srv/companyshared
        read only = No


[homes]
        comment = Home Directory for '%u'
        read only = No
        browseable = No

[home]
        path = /home
        read only = No
        browseable = No

[profiles]
        path = /home/samba/profiles/
        read only = No
        create mask = 0600
        directory mask = 0700
        profile acls = Yes
        preserve case = No
        hide files = /desktop.ini/ntuser.ini/NTUSER.*/.*/
        browseable = No

[netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon
        guest ok = Yes
        browseable = No

[printers]
        comment = All printers
        path = /var/spool/samba
        printer admin = root, @ntadmins
        guest ok = Yes
        printable = Yes
        browseable = No

[PRINT$]
        path = /home/samba/printers
        write list = @wheel, root, administrator, rick, pam
        create mask = 0644
        directory mask = 0755
        guest ok = Yes

--
Regards,
      JB Hewitt
Business: http://www.stcpl.com.au
Blog: http://blade.lansmash.com
Best LAN ever: http://www.lansmash.com
How to ask a ?: http://www.catb.org/~esr/faqs/smart-questions.html


More information about the samba mailing list