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/




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