最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

rsync @ERROR: chdir failed 的解決方法

 更新時間:2015年01月21日 15:36:32   投稿:mdxy-dxy  
這篇文章主要介紹了rsync @ERROR: chdir failed 的解決方法,需要的朋友可以參考下

CwRsyncServer在windows服務器上遇到這樣的問題:

@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1495) [rec
eiver=3.0.2]

權限問題:

1)新建一個目錄比如, 進入 開始菜單>cwRsync Server>Prep a Dir for Upload, 選擇D:\folder1 ,確定
2)右鍵點擊folder1 文件夾, 進入 屬性>安全, "添加"用戶, 輸入對象名稱為Svcwrsync, 并將Svcwrsync的權限設置為 所有都允許。

提升用戶權限:

如果安全性要求不是很高的情況下,目錄較多可以將Svcwrsync提升為管理員權限,一定配置限制制定ip才能同步文件。

ps: 修改完rsyncd.conf, 要重啟RsyncServer服務才能生效

原因三、檢查目錄是不是有問題,我這把就是d與e盤錯了盤符導致無法同步

linux服務器下:

系統(tǒng)平臺:RHEL5.3
客戶機:
[root@test1 ~]# rsync -vzrtopg --progress --delete --password-file=/etc/rsyncd.pwd marsaber@10.10.10.3::backup /var/www/html
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1296) [sender=2.6.8]

服務器日志(/var/log/rsyncd.log):
rsync: chdir /backup failed: Permission denied (13)

原因及解決辦法:
SELinux;

setsebool -P rsync_disable_trans on

error總結:

@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=2.6.8]
原因及解決辦法:
這一般是在服務器端沒有建立目錄
或者是如果有開啟SELinux只要執(zhí)行一下命令
SELinux;
setsebool -P rsync_disable_trans on

切記: rsyncd.secrets的權限必須為600
(注意:這個安全設置很重要,如果不這樣做客戶機連接服務器時會提示:
password file must not be other-accessible
rsync error: some files could not be transferred (code 23) at main.c(1298) [generator=2.6.8]
@ERROR: auth failed on module
rsync: connection unexpectedly closed (102 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
服務器端日志將出現錯誤提示:
2005/08/23 06:32:01 [8388] secrets file must not be other-accessible (see strict modes option)
2005/08/23 06:32:01 [8388] continuing without secrets file
2005/08/23 06:32:01 [8388] auth failed on module from documentserver
服務器端rsyncd.secrets (用戶:密碼)<用戶必須是系統(tǒng)用戶,密碼盡量不要為系統(tǒng)用戶密碼>
客戶端rsyncd.secrets (密碼)<服務器端密碼>
服務器和客戶端的帳戶密碼都不可以有空格,否則會出現
@ERROR: auth failed on module
注意:
如果改變了端口號,一定要在/etc/services中把對應的端口改變才能正常運行

如rsync 873/tcp改成
rsync 3334/tcp即可
error3:
rsyncd.secrets的密碼一定要和Rsync Server密碼設定檔案里的密碼一樣。如果不同(跟不是linux合法用戶錯誤一樣),將會出現如下的錯誤:
#rsync -azv /home rsync://root@192.168.1.107/hadoop --password-file=/home/rsyncd.secrets
@ERROR: auth failed on module hadoop
rsync error: error starting client-server protocol (code 5) at main.c(1296) [sender=2.6.8]
error4:
在client上遇到問題:
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:
@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

error5:
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
error6:
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 來查看可用空間和已用空間
error7:
1、權限問題
類似如下的提示:rsync: opendir "/kexue" (in dtsChannel) failed: Permission denied (13)注意查看同步的目錄權限是否為755
2、time out
rsync: failed to connect to 203.100.192.66: Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.5]
檢查服務器的端口netstat –tunlp,遠程telnet測試。
3、服務未啟動
rsync: failed to connect to 10.10.10.170: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.5]
啟動服務:rsync --daemon --config=/etc/rsyncd.conf
4、磁盤空間滿
rsync: recv_generator: mkdir "/teacherclubBackup/rsync……" failed: No space left on device (28)
*** Skipping any contents from this failed directory ***
5、Ctrl+C或者大量文件
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(544) [receiver=3.0.5]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(544) [generator=3.0.5]
6、xnetid啟動(linux)
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(759) [receiver=3.0.5]

相關文章

  • HTTP-Header中常見字段及含義詳解

    HTTP-Header中常見字段及含義詳解

    這篇文章主要為大家介紹了HTTP-Header中常見字段及含義詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪
    2023-11-11
  • Samba服務器的配置與管理教程(保姆級)

    Samba服務器的配置與管理教程(保姆級)

    在Linux中,大家聽的最多的可能就是Samba服務,什么是Samba呢,下面小編就來和大家聊聊Samba服務器的配置與管理,感興趣的小伙伴可以了解一下
    2023-09-09
  • 微服務架構之服務注冊與發(fā)現功能詳解

    微服務架構之服務注冊與發(fā)現功能詳解

    這篇文章主要為大家介紹了微服務架構之服務注冊與發(fā)現的功能詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步早日升職加薪
    2022-01-01
  • dell 服務器開機總是提示按F1才能進入系統(tǒng)解決方法

    dell 服務器開機總是提示按F1才能進入系統(tǒng)解決方法

    這篇文章主要介紹了dell 服務器開機總是提示按F1才能進系統(tǒng)解決方法,不過提示上面一般都會有具體的提示信息,這里簡單分享一下,需要的朋友可以參考下
    2016-04-04
  • rsync ssh 數據同步分析

    rsync ssh 數據同步分析

    可通過ssh進行網絡加密傳輸,也可以利用ssh客戶端密鑰建立信任關系。當在兩臺計算機之間保持大型、復雜目錄結構的同步時候,比tar或wget等方式都要快。而且可以做到精確同步
    2012-08-08
  • Windows Server 2016 上配置 APACHE+SSL+PHP+perl的教程詳解

    Windows Server 2016 上配置 APACHE+SSL+PHP+perl的教程詳解

    這篇文章主要介紹了Windows Server 2016 上配置 APACHE+SSL+PHP+perl的教程詳解,需要的朋友可以參考下
    2017-01-01
  • 開源SFTP服務器軟件SFTPGo詳解

    開源SFTP服務器軟件SFTPGo詳解

    SFTPGo 是一種事件驅動的文件傳輸解決方案,使用 SFTPGo,您可以利用本地和云存儲后端,使用您已經熟悉的相同工具和流程在內部或與業(yè)務伙伴交換和存儲文件,這篇文章給大家介紹開源SFTP服務器軟件SFTPGo的相關知識,感興趣的朋友一起看看吧
    2024-08-08
  • 服務器運維基礎指南教程

    服務器運維基礎指南教程

    作為一個開發(fā)人員,對于服務器的操作不可避免,最常用的操作就是部署應用到服務器,及在生產,測試環(huán)境通過查看日志排查問題,這篇文章主要介紹了服務器運維基礎指南,需要的朋友可以參考下
    2023-02-02
  • TaiShan?200服務器安裝Ubuntu?18.04的圖文教程

    TaiShan?200服務器安裝Ubuntu?18.04的圖文教程

    這篇文章主要介紹了TaiShan?200服務器安裝Ubuntu?18.04,本文通過圖文并茂的形式給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2022-06-06
  • 解決xshell連接服務器報找不到匹配的host?key算法問題

    解決xshell連接服務器報找不到匹配的host?key算法問題

    這篇文章主要介紹了xshell連接服務器報找不到匹配的host?key算法,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2023-08-08

最新評論

天峨县| 上虞市| 阿克| 纳雍县| 二连浩特市| 蕉岭县| 弥勒县| 泾源县| 承德县| 朝阳市| 固安县| 淮安市| 牡丹江市| 溆浦县| 泸州市| 萨嘎县| 仁寿县| 阳新县| 鄂尔多斯市| 平乐县| 彭泽县| 兰溪市| 博湖县| 边坝县| 蕲春县| 黄浦区| 色达县| 无极县| 剑河县| 桦南县| 鹤山市| 安溪县| 义乌市| 康定县| 鸡泽县| 马鞍山市| 武隆县| 河东区| 成都市| 海淀区| 南靖县|