其他教程

其他教程

Products

当前位置:首页 > 其他教程 >

rsync常见问题及解决办法(亲测)

GG网络技术分享 2025-03-18 16:14 0


大家好,这里是关于[Rsync同步报错error in socket IO (code 10) at clientserver.c(125) [Receiver=3.1.2]],[rsync常见问题及解决办法(亲测)]问题的解答,希望对您有所帮助。如果你还想了解更多这方面的信息,请关注本站其他相关内容,共同学习吧!

Rsync同步报错error in socket IO (code 10) at clientserver.c(125) [Receiver=3.1.2]

教程大全rsync

前些天重启了一下服务器,忘记了以前都是关闭防火墙的。今天同步数据发现Rsync报错。

首先检查了下Rsync的服务是否在运行,发现停止的。启动后测试发现还无法同步。查找资料发现是防火墙的问题。

系统环境

CentOS 7.x

解决办法

可以通过两种方式解决。

1.直接关闭系统防火墙

#centos7操作系统

systemctl stop firewalld

#旧版本操作系统

service iptables stop

2.在防火墙中放行端口

873是Rsync的默认端口

/sbin/iptables -I INPUT -p tcp –dport 873 -j ACCEPT

报错信息

rsync: failed to connect to 隐藏IP地址 (隐藏IP地址): No route to host (113)

rsync error: error in socket IO (code 10) at clientserver.c(125) [Receiver=3.1.2]

rsync常见问题及解决办法(亲测)

摘要: rsync在使用中往往会报错误,综合自己亲身经验,总结几条错误的解决方案(IP以10.10.10.10代替):

错误0: password file must not be other-accessible continuing without password file Password: rs

rsync在使用中往往会报错误,综合自己亲身经验,总结几条错误的解决方案(IP以10.10.10.10代替):

错误一:

password file must not be other-accessiblecontinuing without password filePassword:rsync客户端路径是否写错,权限设置不对,需要再次输入密码,客户端和服务端的密码文件都应该是600的权限才可以

错误二:

@ERROR: Unknown module ‘bak’rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver= 3.0.3]服务端server的配置中的[bak]名字和客户端client的10.10.10.10::bak不符

错误三:

rsync: failed to connect to 10.10.10.10: Connection timed out (110)rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]检查服务端server服务是否正常启动,检查端口防火墙,iptables打开873端口如果服务端是windows server则在防火墙入站规则中增加873端口如果服务端是Linux则先检查服务是否启动#ps aux | grep rsync然后开启873端口#iptables -A INPUT -p tcp --dport 873 -j ACCEPT开启873端口附:安装rsync yum install rsync启动服务/usr/bin/rsync --daemon启动服务错误failed to create pid file /var/rsyncd.pid: File exists看看提示服务错误的路径(这个路径不一定就是这个,看自己的报错路径)这里是/var/rsyncd.pid所以rm -rf /var/rsyncd.pid;再重新启动Rsync服务此时在看一下ps aux | grep rsync启动成功

错误四:

@ERROR: access denied to gmz88down from unknown (10.10.10.10)rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]看看是不是服务端server hosts allow限制了IP,把这里的IP加入到服务端server的hosts allow白名单中,windows rsync不能写多个allow,可以在一个allow中加多个IP,例:hosts allow=10.10.10.10 20.20.20.20

错误五:

@ERROR: chdir failedrsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]服务端server的目录不存在或者没有权限(要同步的那个文件路径),安装windows rsync时候会创建一个SvcCWRSYNC用户,这个用户对要拷贝的目录没有权限,方法一,将这个用户给权限加入到目录中,方法二,修改这个用户隶属于的组,修改后要在管理中重启服务

错误六:

rsync error: error starting client-server protocol (code 5) at main.c(1524) [Receiver= 3.0.7 ]

标签:

提交需求或反馈

Demand feedback