免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 980 | 回复: 0
打印 上一主题 下一主题

Linux.Samba [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-11 10:53 |只看该作者 |倒序浏览

About 10 days ago, I started looking at the “getpeername failed. Error was
Transport endpoint is not connected” message appearing on our logs.  This
message was being produced very frequently during the day and somewhat
less frequently at night.
Our configuration is samba 3.0.2a as a PDC with WINS support.  Our network
has about 60 XP Pro PC’s and 100 W98 PC’s.  The signorseal registry patch
was applied to all the XP Pro PC’s last year while we were still running
samba 2.
It was quickly apparent that this message was only being issued for our XP
Pro PC’s.  Also, at night when the network was pretty idle, the message
was being issued only on certain XP PRO PC’s, but the PC’s varied on a
nightly basis.  Furthermore, at night, for a particular XP Pro PC, the
messages were occurring at intervals that were multiples of 15 minutes.
After doing some reading and taking some network traces, I inferred that
the XP PRO PC’s for which the message occurred at night were backup
browsers getting their 15 minute refresh.  By disabling the Computer
Browsing service on a bunch of the XP Pro PC’s, the night time messages
were reduced.
In any event, I did some more reading and looked at some more network
traces, without a real understanding.  However, one of the items I read
was that the XP Pro PC Client attempts to initially communicate with the
server over both ports 445 and 139 and that whichever port responds first
is used for further communication.  So I decided to try disabling port 445
at the server by using iptables to force all session traffic across port
139.
“iptables -I INPUT 1 -p tcp --dport 445 -j DROP”
I did this last night and, since applying this iptables rule, there have
been no “getpeername failed. Error was Transport endpoint is not
connected” messages in the log.   It is now midmorning with regular
network traffic.  I regard this as a circumvention rather than a fix.
So I suspect that the production of this message is a software issue that
is somehow related to the initial communication over both ports 445 and
139 rather than being any type of network hardware issue.  If the samba
group needs some network traces, I can supply them.
Mark Orenstein
East Granby School System (Connecticut, USA)
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On Tue, 6 Apr 2004, Collen Blijenberg  wrote:
>> Just wandering, wether this bug is fixed in the 303 pre 2 ??
>> ------------------------------------------------------
>>       [2004/02/19 14:03:00, 0] lib/util_sock.c:read_socket_data(342)
>>        read_socket_data: recv failure for 4. Error = Connection reset by
>> peer
>>       [2004/02/19 14:06:18, 0] lib/util_sock.c:get_peer_addr(952)
>>        getpeername failed. Error was Transport endpoint is not connected
>>       [2004/02/19 14:06:18, 0] lib/util_sock.c:send_smb(605)
>>        Error writing 4 bytes to client. -1. (Connection reset by peer)
>> -----------------------------------------------------
> The client disconnected.  This is not a Samba bug.  Best to check
> for bad network hardware, hubs, switches, mismatched duplex settings on
> NICs, etc...
> Now if we did something to cause the client to disconnect (e.g. blue
> screen the client), then we would need to fix that.
> cheers, jerry
> - ----------------------------------------------------------------------
> Hewlett-Packard            -------------------------
http://www.hp.com

> SAMBA Team                 ----------------------
http://www.samba.org

> GnuPG Key                  ----
http://www.plainjoe.org/gpg_public.asc

> "...a hundred billion castaways looking for a home." ----------- Sting
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
> Comment: For info see
http://quantumlab.net/pine_privacy_guard/

> iD8DBQFAcm+LIR7qMdg1EfYRAiy1AJ9/kHvF125iphdpTpzhOTR3bGIk5wCfQiyC
> DfuYD54GBUh+4irRyE/y6fI=
> =Y2uI
> -----END PGP SIGNATURE-----
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  
http://lists.samba.org/mailman/listinfo/samba

--
To unsubscribe from this list go to the following URL and read the
instructions:  
http://lists.samba.org/mailman/listinfo/samba



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/18616/showart_461432.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP