[Samba] Network Disconnection problems - Please Help

scott at bolanderhome.com scott at bolanderhome.com
Thu Dec 11 20:30:13 GMT 2003


I have a persistant problem at a client site.  This is the error I am
getting in /var/log/messages:
Dec 10 09:03:41 fileserver smbd[7652]: [2003/12/10 09:03:41, 0] lib/
util_sock.c:read_data(436)
Dec 10 09:03:41 fileserver smbd[7652]:   read_data: read failure for 4.
Error = Connection reset by peer

No errors in log.smbd

Here is the Layout:

Three clients:
Win2000
Win2000
WinXP Pro

Server:
Mandrake 9.2
Samba Verion 2.28
All current patches and updates installed
Network card: 3Com 3c905b
PII-450
256Mb SDRAM
40Gb Hard Drive (IDE)

Network:
10/100 switched (U.S. Robotics SOHO 8 port Switch)
Cat-5 Wiring

All PCs have 10/100 network cards in them.

Primary use of server is to share Quickbooks files to the other computers.
This is where the problem is.  Once or twice a day they get booted out of
the client file that they are in.  This corresponds with the error in the
log.  This is a big problem for the customer.

The main user was gone last week; and no errors occurred for the other
users all week.  Her machine was on but not used during this time.

Here are the steps I have taken:
*ALL new hardware in server with the exception of the hard drive
*Replaced Switch
*Ran new cable to machine with most issues
*Replaced Network card in machine that was unoccupied last week.
*Checked network settings on clients - removed extra protocal (netbeui,
etc)
*Mapped clients directly to Server IP address to exclude name resolution
issues.
*Made TCPDUMP log - during errors there is no unusual messages in this
*Played with smb.conf setting - including trying different locking things
and such.  Bear in mind that the clients are NOT working within the same
account file - so there should be no locking or sharing issue there
*Set dead time=0

I REALLY need to get this fixed - it is a big problem.  Let me know if
more info is needed.


Here is my smb.conf:

[global]
        encrypt passwords = yes
        os level = 20
        map to guest = bad user
        printing = cups
        preferred master = no
        security = user
        load printers = yes
        printer admin = @adm
        dns proxy = no
        smb passwd file = /etc/samba/smbpasswd
        log file = /var/log/samba/log.%m
        server string = Samba Server %v
        printcap name = cups
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        workgroup = MDKGROUP
        max log size = 50

[homes]
   comment = Home Directories
   browseable = no
   writable = yes
[pdf-generator]
   path = /var/tmp
   guest ok = No
   printable = Yes
   comment = PDF Generator (only valid users)
   #print command = /usr/share/samba/scripts/print-pdf file path win_path
recipient
IP doc_name &
   print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I &

[pdf-screen]
  copy = pdf-generator
  comment = PDF Generator - Screen quality (only valid users)
  print command=/usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I ""
%S &

[pdf-printer]
  copy = pdf-generator
  comment = PDF Generator - Print quality (only valid users)
  print command=/usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I ""
%S &

[pdf-prepress]
  copy = pdf-generator
  comment = PDF Generator - PrePress quality (only valid users)
  print command=/usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I ""
%S &


[files]
        path = /files
        sync always = yes
        delete readonly = yes
        writeable = yes
        guest account = root
        public = yes

Here is my log.smbd:

[2003/11/22 15:20:00, 0] smbd/server.c:main(791)
  smbd version 2.2.8a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
[2003/11/22 15:20:00, 0] printing/print_cups.c:cups_printer_fn(107)
  Unable to connect to CUPS server localhost - Connection refused
[2003/11/22 16:43:11, 0] smbd/server.c:main(791)
  smbd version 2.2.8a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
[2003/11/22 16:43:11, 0] printing/print_cups.c:cups_printer_fn(107)
  Unable to connect to CUPS server localhost - Connection refused
[2003/11/24 08:07:35, 0] smbd/server.c:main(791)
  smbd version 2.2.8a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
[2003/11/24 08:07:35, 0] printing/print_cups.c:cups_printer_fn(107)
  Unable to connect to CUPS server localhost - Connection refused
[2003/11/24 08:17:03, 0] smbd/server.c:main(791)
  smbd version 2.2.8a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
[2003/11/24 08:17:03, 0] printing/print_cups.c:cups_printer_fn(107)
  Unable to connect to CUPS server localhost - Connection refused
[2003/11/27 01:55:08, 0] smbd/server.c:main(791)
  smbd version 2.2.8a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
[2003/11/27 01:55:08, 0] printing/print_cups.c:cups_printer_fn(107)
  Unable to connect to CUPS server localhost - Connection refused
[2003/12/09 12:39:52, 0] smbd/server.c:main(791)
  smbd version 2.2.8a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
[2003/12/09 12:39:52, 0] printing/print_cups.c:cups_printer_fn(107)
  Unable to connect to CUPS server localhost - Connection refused

Here is the results of ifconfig:
eth0      Link encap:Ethernet  HWaddr 00:10:4B:67:47:A2
          inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1148931 errors:1 dropped:0 overruns:0 frame:1
          TX packets:1103423 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:612519847 (584.1 Mb)  TX bytes:883590537 (842.6 Mb)
          Interrupt:10 Base address:0xdc00

Scott Bolander
Computer Services of Cincinnati
http://www.cincysystems.com
scott at cincysystems.com




More information about the samba mailing list