免费注册 查看新帖 |

Chinaunix

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

[网络管理] rsync clinet端取数据时,出Connection reset by peer 的错误。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-05 10:21 |只看该作者 |倒序浏览
客户端:
[root@datest bin]# ./rsync -vzrtopg --progress --delete 192.168.90.18::ccp14web /mnt/test
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(604) [receiver=2.6.9]

服务端:
rsync.conf

log file = /var/log/rsync.log
motd file = /etc/motd
max connections = 25
#syslog facility = local3

[ccp14web]
     comment = regional mirror area
     path = /home/aaa
     read only = yes
     list = yes
     uid = nobody
     gid = nobody
#     hosts allow = *.doobry.ac.uk  148.79.*.*
#     auth users = rsyncuser
#     secrets file = /etc/rsyncd.secrets

xinetd中rsync的设置

# default: off
# description: The rsync server is a good addition to an ftp server, as it \
#       allows crc checksumming etc.
service rsync
{
        disable = no
        socket_type     = stream
        wait            = no
        user            = root
        server          = /opt/rsyncdir/bin/rsync
        server_args     = --daemon
        log_on_failure  += USERID
}

netstat -na | grep 873
tcp        0      0 0.0.0.0:873             0.0.0.0:*               LISTEN  



请问有碰到这种错误的XD么?怎么解决的啊?谢谢
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(604) [receiver=2.6.9]

[ 本帖最后由 NICKY.BOY 于 2007-6-5 10:25 编辑 ]

求职 : Linux运维
论坛徽章:
0
2 [报告]
发表于 2007-06-05 15:46 |只看该作者
配置文件中加入ignore errors # 可以忽略一些无关的IO错误!

论坛徽章:
0
3 [报告]
发表于 2008-09-16 00:13 |只看该作者
我也遇到这个问题,没人能解决么?

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
4 [报告]
发表于 2008-09-16 08:50 |只看该作者
关防火墙试试。还有SELINUX

论坛徽章:
0
5 [报告]
发表于 2009-01-28 07:44 |只看该作者
我今天也遇到了!
[marsaber@server1 ~]$ rsync --list-only marsaber@10.10.10.3::
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(614) [receiver=2.6.8]

我在服务器上查看日志,看到有这么一行:
rsync: unable to open configuration file "/etc/rsyncd.conf": No such file or directory

于是我:
ln -s /etc/rsyncd/rsyncd.conf /etc/rsyncd.conf

解决!

论坛徽章:
0
6 [报告]
发表于 2011-11-25 00:15 |只看该作者
我也遇到过

我是安装了一个新版本,只是把老版本的命令改名字了。后来把服务器重启一下就好了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP