[Samba] getpeername failed. Error was Transport endpoint is notconnected (3.0.37)
Gaiseric Vandal
gaiseric.vandal at gmail.com
Thu Mar 10 20:30:20 MST 2011
I find I have to have both ports open- then again my main samba servers are
configured as DC's. I don't know about member servers, but DC file server
are using SMB-over-NetBIOS-over-IP (NT4 style) - I don't think they can
support pure SMB-over-TCP/IP. I had tried setting to 139 only- I think
some XP and Win 7 clients make an initial connection to port 445 then get
redirected.
If I disabled Netbios on the XP clients, they can't connect to a samba DC.
-----Original Message-----
From: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org]
On Behalf Of Andrew Masterson
Sent: Thursday, March 10, 2011 1:56 PM
To: Jack Bush; samba at lists.samba.org
Subject: Re: [Samba] getpeername failed. Error was Transport endpoint is
notconnected (3.0.37)
>
> Hi All,
>
> I have a Solaris 10 server (Sun Fire T5520) that has recently been patched
with
> Samba 3.0.37 but is not able to share any drives to Windows clients.
Instead,
> the /var/samba/log/log.smbd is showing the following errros:
> getpeername failed. Error was Transport endpoint is not connected
> Denied connection from 0.0.0.0 (0.0.0.0)
> [2011/03/10 21:10:04, 1] smbd/process.c:(1076)
> [2011/03/10 21:10:04, 0] lib/util_sock.c:(1224)
> write_data: write failure in writing to client 0.0.0.0. Error Broken
pipe
> Error writing 5 bytes to client. -1. (Broken pipe)
>
> It would be very much appreciate some guidances on how to resolve this
issue.
>
This error is very old, and seems to be related to samba binding to multiple
ports (139 and 445). You only need 445 in most modern worlds, unless you're
a PDC from what I can tell. I stuck this in my smb.conf file:
# restrict ports to avoid
# "getpeername failed. Error was Transport endpoint is not connected" and
# "Error writing 4 bytes to client. -1. (Transport endpoint is not
connected)"
# errors from port 139 legacy mode - PDC may need 139 open
smb ports = 445
-=Andrew
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list