samba getpeername failed. Error was Transport endpoint is not connected错误
来源:互联网 发布:希尔伯特曲线 python 编辑:程序博客网 时间:2024/04/29 23:06
问题描述:
在检查/var/log/messages日志文件时发现如下错误:
smbd[15295]: getpeername failed. Error was Transport endpoint is not connected
解决方法:
在/etc/samba/smb.conf配置文件中加入以下代码:
smb ports=139
重启smb服务
#service smb restart
(PS: 如果看日志还出现以上错误,把 smb ports=139改成 smb ports=445试试)
相关解释:
其实getpeername failed. Error was Transport endpoint is not connected算不上一个真正的错误。smb ports=139指定smb服务监听的端口号,默认情况下它同时监听139和445端口。windows XP 去连接的时候会两个端口都测试连接上去,最后又只选择其中一个端口使用而断开另外一个端口,所有smb认为是个错误而记录在案。
国外论坛上看到的一段话:
Those entries in log.smbd do not really indicate a problem. They are due to a windows XP machine on local area network which inquires on both ports 445 and 139. Ultimatley, windows XP only uses one of those ports and it disconnects from the other one, which leads to the samba log entry. The log entries can be eliminated by having samba only listen on one of the two ports, as long as your server is not a PDC (Primary Domain Controller)(which mine is). I read somewhere that having samba only listen on one of the ports can cause a reduction in performance.
0 0
- samba getpeername failed. Error was Transport endpoint is not connected错误
- samba Error was Transport endpoint is not connected
- lib/util_sock.c:get_peer_addr(1224) getpeername failed. Error was Transport endpoint is not connecte
- linux 挂载错误Transport endpoint is not connected
- linux 挂载错误Transport endpoint is not connected
- Android问题集锦之十一:Transport endpoint is not connected
- java.net.SocketTimeoutException: Transport endpoint is not connected
- read error : transport endpoint is not connetct
- [Ubuntu]: rm: cannot remove `.pps/fuse': Transport endpoint is not connected
- Android异常总结--- java.net.SocketTimeoutException: Transport endpoint is not connected
- connect errno:127 errinfo:Transport endpoint is already connected
- Zookeeper is not connected yet!
- tomcat启动错误:严重: Error initializing endpoint java.lang.Exception: Socket bind failed: [730048] ???????
- Tomcat启动产生错误严重: Error initializing endpoint java.lang.Exception: Socket bind failed: [730048] ??????
- tomcat启动错误:严重: Error initializing endpoint java.lang.Exception: Socket bind failed: [730048] ???????
- SNMP++: Transport is not supported
- Error was tenMinuteCache Cache: The Disk store is not active.
- Response failed, error buffer: The resource could not be loaded because the App Transport Security p
- how to detemine event file node belongs to which device
- ubuntu 系统设置东西少了很多,重新安装系统设置选项。
- 桥接模式
- 对java接口和抽象类的理解与区别
- win8.1 环境下运行 vc++6.0
- samba getpeername failed. Error was Transport endpoint is not connected错误
- 第一篇:正能量
- Axis2创建WebService实例
- 个人对javascript 中 this 的一些见解
- ArrayList
- org.springframework.web.util.IntrospectorCleanupListener
- 用Xcode 进行Flappy bird 的iOS开发(2)
- bzoj-2150 部落战争
- 在Oracle中采用纵向和横向结构表 .