标签:contents failed protocol error rsync
@ERROR: chdir failed
rsync error: error startingclient-server protocol (code 5) at main.c(1503) [sender=3.0.6]
服务端指定模块没有对应目录
[root@nfs01 ~]# mkdir –p/backup 在服务端创建指定模块对应目录
sending incremental file list
./
rsync: failed to set times on"." (in backup): Operation not permitted (1)
nfs01_172.16.1.31/
rsync: recv_generator: mkdir"nfs01_172.16.1.31" (in backup) failed: Permission denied (13)
*** Skipping any contents fromthis failed directory ***
sent 106 bytes received 15 bytes 80.67 bytes/sec
total size is 655 speedup is 5.41
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]
1> 服务端配置文件中指定的用户和模块指定的目录的属主属组不同
2> 服务端模块指定的目录属组属组没有权限
将模块指定目录的属主属组修改为 配置文件中指定的 uid gid
[root@nfs01 ~]# chown rsync.rsync /backup 配置文件中指定的用户和组
sending incremental file list
rsync: ERROR: cannot statdestination "." (in backup): Permission denied (13)
rsync error: errors selectinginput/output files, dirs (code 3) at main.c(554) [receiver=3.0.6]
rsync: read error: Connectionreset by peer (104)
rsync error: error in rsyncprotocol data stream (code 12) at io.c(759) [sender=3.0.6]
服务端rsync对目录操作权限不足
修改对应目录权限为755
[root@backup ~]# chmod 755 /backup/
@ERROR: auth failed on module backup
rsync error: error startingclient-server protocol (code 5) at main.c(1503) [sender=3.0.6]
1> 客户端密码文件的权限不是600
2> 服务端密码文件不是600
3> 服务端密码文件不存在(名字写错了/没有创建/配置文件参数写错了)
4> 服务端密码文件里保存的用户名和密码不正确
@ERROR: Unknown module ‘backup‘
rsync error: error starting client-server protocol (code 5) at main.c(1522)[receiver=3.0.3]
1> 推送/拉取命令写错了
2> 服务端模块名字写错了
rsync: write failed on"/home/backup2010/wensong": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(302) [receiver=3.0.7]
rsync: connection unexpectedly closed (2721 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(601)[generator=3.0.7]
服务端磁盘空间被占满
rsync: failed to connect to172.16.1.41: No route to host (113)
rsync error: error in socket IO(code 10) at clientserver.c(124) [sender=3.0.6]
关服务端selinux 和 iptabs 防火墙
感谢老男孩教育
标签:contents failed protocol error rsync
原文地址:http://bzjxs.blog.51cto.com/9534278/1766988