[備忘][轉]rsync使用時的常見問題


sync使用時的常見問題: 

錯誤1: rsync: read error: Connection reset by peer (104) 
rsync error: error in rsync protocol data stream (code 12) at io.c(794) [receiver=3.0.2] 
解決:很大可能是服務器端沒有開啟 rsync 服務。開啟服務。 或者開啟了防火牆指定的端口無法訪問。 

錯誤2:@ERROR: chdir failed 
rsync error: error starting client-server protocol (code 5) at main.c(1495) [receiver=3.0.2] 
解決:服務器端同步目錄沒有權限,cwrsync默認用戶是Svcwrsync。為同步目錄添加用戶Svcwrsync權限。 

錯誤3:@ERROR: failed to open lock file 
rsync error: error starting client-server protocol (code 5) at main.c(1495) [receiver=3.0.2] 
解決:服務器端配置文件 rsyncd.conf中添加 lock file = rsyncd.lock 即可解決。 

錯誤4:@ERROR: invalid uid nobody 
rsync error: error starting client-server protocol (code 5) at main.c(1506) [Receiver=3.0.2] 
解決:在rsyncd.conf文件中添加下面兩行即可解決問題 
UID = 0 
GID = 0 

錯誤5:@ERROR: auth failed on module test2 
rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=3.0.2] 
解決:服務端沒有指定正確的secrets file,請在 [test2]配置段添加如下配置行: 
auth users = coldstar #同步使用的帳號 
secrets file = rsyncd.secrets #密碼文件 

錯誤6:password file must not be other-accessible 
解決:客戶端的pass文件要求權限為600, chmod 600 /etc/rsync.pass 即可。 

錯誤7:rsync: chdir /cygdrive/c/work failed
: No such file or directory (2)

解決:服務器端同步文件夾路徑或名稱寫錯了,檢查path。

===============================================================

rsyncserver 服務啟動時報錯“rsyncserver服務啟動后又停止了。一些服務自動停止,如果它們沒有什么可做的,例如“性能日志和警報”服務。”

解決方法:將安裝目錄下的rsyncd.pid文件刪除,再重新啟動RsyncServer服務。一般是異常關機導致的。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM