服務端
問題一
@ERROR: chroot failed
rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.3]
原因:
服務器端的目錄不存在或無權限,創建目錄并修正權限可解決問題,
問題二
@ERROR: auth failed on module tee
rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.3]
原因:
服務器端該模塊(tee)需要驗證用戶名密碼,但客戶端沒有提供正確的用戶名密碼,認證失敗,
提供正確的用戶名密碼解決此問題,
問題三
@ERROR: Unknown module ‘tee_nonexists’
rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.3]
原因:
服務器不存在指定模塊,提供正確的模塊名或在服務器端修改成你要的模塊以解決問題,
客戶端
在client上遇到問題:
問題一
rsync: failed to set times on “/.” (in module): Operation not permitted (1)
這個是rsyncd.conf 里面 read only = no 注銷也不行,因為默認值是yes
rsync -auzv --progress --password-file=/etc/rsync.pas root@192.168.133.128::backup /home/
rsync: could not open password file “/etc/rsync.pas”: No such file or directory (2)
Password:
問題2
@ERROR: auth failed on module backup
rsync error: error starting client-server protocol (code 5) at main.c(1506) [Receiver=3.0.7]
遇到這個問題:client端沒有設定/etc/rsync.pas這個檔案,而在使用rsync命令的時候,加了這個引數–
password-file=/etc/rsync.pas
問題3
rsync -auzv --progress --password-file=/etc/rsync.pas root@192.168.133.128::backup /home/
@ERROR: auth failed on module backup
rsync error: error starting client-server protocol (code 5) at main.c(1506) [Receiver=3.0.7]
遇到這個問題:client端已經設定/etc/rsync.pas這個檔案,里面也設定了密碼111111,和服務器一致,但是
服務器段設定有錯誤,服務器端應該設定/etc/rsync.pas ,里面內容root:111111 ,這里登陸名不可缺少
問題4
rsync -auzv --progress --password-file=/etc/rsync.pas root@192.168.133.128::backup /home/
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1506) [Receiver=3.0.7]
遇到這個問題,是因為服務器端的/home/backup 其中backup這個目錄并沒有設定,所以提示:chdir failed
問題5
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]
磁盤空間不夠,所以無法操作,
可以通過df /home/backup2010 來查看可用空間和已用空間
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/45830.html
標籤:其他
