rsync error: error starting client-server protocol (code 5) at main.c(1530) [receiver=3.0.6]

同步一个重要的数据目录,自己之前安装过,现在做起来轻车熟路,只需要简单回顾一下。

之前安装的笔记:http://blog.csdn.net/huoyunshen88/article/details/17922533
[root@test-1 ~]# rsync -avz --password-file=/etc/rsync.password root@172.10.23.250::backup /usr/local/sonatype-work/
password file must not be other-accessible
continuing without password file
Password:
@ERROR: auth failed on module backup
rsync error: error starting client-server protocol (code 5) at main.c(1530) [receiver=3.0.6]

运行时还是发现有错误,遇到问题查找资料,给了一些提示:
http://bbs.chinaunix.net/thread-3675077-1-1.html
http://kerry.blog.51cto.com/172631/734087
http://loveyan.blog.51cto.com/829079/713816
http://blog.sina.com.cn/s/blog_6dc4dbed0100w2ub.html

总结一下:
这个1530错误根据网上的资料说是权限问题:
两种解决方法复制下来方便查看:
1.@ERROR: daemon security issue -- contact admin
rsync error: error starting client-server protocol (code 5) at main.c(1530) [sender=3.0.6]
原因:同步的目录里面有软连接文件,需要服务器端的/etc/rsyncd.conf打开use chroot = yes。掠过软连接文件。


2.远程rsync服务器的帐户密码文件的权限必须为600,例如,你在rsyncd.conf中设置了secrets file = /etc/rsyncd/rsync.password
针对这个1530的错,网上有说是密码文件权限问题,修改了还是不生效。
[root@test-2 ~]# chmod 600 /etc/rsync.password

最后在仔细查看配置文件rsync.conf的时候,发现auth users = test,修改为auth users = root,问题解决。

uid = nobody
gid = nobody
user chroot = no
max connections = 200
timeout = 600
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
log file = /var/log/rsyncd.log
[hadoop]             #定义要同步的模块
path=/opt/chd4.5/    #定义要同步备份的目录
ignore errors
read only = no
list = no
hosts allow = 192.168.21.0/255.255.255.0
auth users = test   
secrets file = /etc/rsyncd.password


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值