read_socket_data Connection timed out

Bill Grzanich organix4 at mindspring.com
Fri Nov 3 19:55:59 GMT 2000


Hello, All.

I've experienced the dreaded connection time out problem here recently, so I
thought I would document it in case it helps.  I've not found a solution,
though.  The only resolved instance I have found through Deja.com had to do
with a router between the server and client, but I have no routers.  Samba
is 2.0.7 running on VA Linux (Red Hat 6.2), kernel 2.2.14.

Here are the entries from my client log for the most recent instance. Note
that nothing unusual is logged prior to the error.  And yes, user bill is
me!
[2000/11/03 08:37:20, 1] smbd/service.c:make_connection(550)
  de-017 (10.111.1.146) connect to service it as user bill (uid=500,
gid=100) (pid 23088)
[2000/11/03 12:26:38, 0] lib/util_sock.c:read_socket_data(477)
  read_socket_data: recv failure for 4. Error = Connection timed out
[2000/11/03 12:26:38, 1] smbd/service.c:close_cnum(583)
  de-017 (10.111.1.146) closed connection to service it
[2000/11/03 12:26:38, 1] smbd/service.c:close_cnum(583)
  de-017 (10.111.1.146) closed connection to service impact
[2000/11/03 12:26:38, 1] smbd/service.c:close_cnum(583)
  de-017 (10.111.1.146) closed connection to service public
[2000/11/03 12:26:38, 1] smbd/service.c:close_cnum(583)
  de-017 (10.111.1.146) closed connection to service bill
[2000/11/03 12:26:38, 1] smbd/service.c:close_cnum(583)
  de-017 (10.111.1.146) closed connection to service appsg
[2000/11/03 12:26:38, 1] smbd/service.c:close_cnum(583)
  de-017 (10.111.1.146) closed connection to service apps

I've written a Perl script that will display currently logged-in users by
massaging the output from smbstatus. The problem is, if the time out occurs,
the results of smbstatus indicate that a user is no longer logged in when,
in fact, they are.  So far this time out has not resulted in reports of
problems, but I would hate to depend on that.  Other discussions indicate
that "netstat -s" might be helpful, so here are the results of that:

Ip:
    90707865 total packets received
    0 forwarded
    8020 incoming packets discarded
    344115 incoming packets delivered
    91132082 requests sent out
Icmp:
    1372 ICMP messages received
    153 input ICMP message failed.
    ICMP input histogram:
        destination unreachable: 1368
        echo requests: 1
        echo replies: 3
    1500 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
        destination unreachable: 1499
        echo replies: 1
Tcp:
    34376 active connections openings
    0 passive connection openings
    419 failed connection attempts
    0 connection resets received
    47 connections established
    90368695 segments received
    91097543 segments send out
    25550 segments retransmited
    182 bad segments received.
    321 resets sent
Udp:
    323216 packets received
    297 packets to unknown port received.
    0 packet receive errors
    33008 packets sent
TcpExt:
    3 resets received for embryonic SYN_RECV sockets
    105 packets pruned from receive queue because of socket buffer overrun
    99 ICMP packets dropped because they were out-of-window

And, finally, the smb.conf file is below.  If anyone has some suggestions on
fixing this, I'd appreciate the advice.  Or, if there is something I can do
to troubleshoot further.  This is a production machine, though, so there is
a limit on what I can do.  I've found maybe six instances of the error in
various client logs over the past few months, so it doesn't happen
frequently.  In the meantime, I thought I would try adding "deadtime = 0"
and "keep alive = 120" to smb.conf and see if that helps.

Thanks in advance.

-Bill Grzanich
IT Manager
ORGANICS/LaGrange


# Samba config file
#

# Global parameters
[global]
        workgroup = ORGANICS
        netbios name = LINUX02
        server string = Samba Server 20001030164100
        security = DOMAIN
        domain logons = No
        encrypt passwords = Yes
        password server = *
        log file = /var/log/samba/log.%m
        max log size = 50
        username map = /etc/smbusermap.conf
        domain master = No
        local master = No
        preferred master = No
        os level = 0
        announce as = NT Workstation
        announce version = 4.0
        socket options = TCP_NODELAY
        message command=/usr/bin/linpopup "%f" "%m" %s; rm %s
        guest account = smbuser
        create mask = 0777
        directory mask = 0777
        hosts allow = localhost, 10.111.1.0/255.255.255.0
        print command = lpr -r -P%p %s
        lpq command = lpq -P%p
        lprm command = lprm -P%p %j
        printer driver file = /home/samba/printer/printers.def
        map hidden = Yes
        map system = Yes
        map archive = Yes
        oplocks = No

[homes]
        comment = Home Directory
        writeable = Yes
        browseable = No

[printer$]
        comment = Printer driver share
        path = /home/samba/printer
        public = Yes
        browseable = Yes

[public]
        comment = Public
        path = /home/public
        writeable = Yes
        guest ok = Yes
        force user = public
[...remaining user/group/printer shares snipped...]





More information about the samba mailing list