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           配置文件中指定的用户和组

 

服务端rsync对目录操作权限不足

报错详情

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 防火墙



感谢老男孩教育

www.oldboyedu.com

www.etiantian.org

http://oldboy.blog.51cto.com/




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章