加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

从服务器rsync到本地计算机时出错

发布时间:2020-12-14 01:52:58 所属栏目:Linux 来源:网络整理
导读:我尝试从服务器rsync以下命令,并收到以下错误消息: rsync -e ssh -avz name@home.com:/home/name/. .receiving file list ... doneDesktop/Python_Nick/Python-2.4.1/Desktop/Python_Nick/Python-2.4.1/Python/Write failed: Broken pipersync: writefd_unb
我尝试从服务器rsync以下命令,并收到以下错误消息:

rsync -e ssh -avz name@home.com:/home/name/. .

receiving file list ... done
Desktop/Python_Nick/Python-2.4.1/
Desktop/Python_Nick/Python-2.4.1/Python/
Write failed: Broken pipe
rsync: writefd_unbuffered failed to write 4092 bytes [generator]: Broken pipe (32)
rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-42/rsync/io.c(1121) [generator=2.6.9]
rsync error: received SIGUSR1 (code 19) at /SourceCache/rsync/rsync-42/rsync/main.c(1197) [receiver=2.6.9]

有时会出现以下错误:

Read from socket failed: Operation timed out
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [receiver=2.6.9]

然后有时会出现以下错误:

Write failed: Broken pipe
rsync: connection unexpectedly closed (314764 bytes received so far) [receiver]rsync: writefd_unbuffered failed to write 4092 bytes [generator]: Broken pipe (32)

rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-42/rsync/io.c(1121) [generator=2.6.9]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [receiver=2.6.9]

我甚至尝试过使用FETCH(MAC应用程序).
有什么建议?服务器正在运行LINUX,我的本地机器是MAC

解决方法

我有类似的问题,我的解决方案是在我的Mac上更新rsync.

从rsync “current issues and debugging” page的第3点清楚可见,“连接意外关闭”

error tells you that the local rsync was trying to talk to the
remote rsync,but the connection to that rsync is now gone. The thing
you must figure out is why,and that can involve some investigative
work.

此页面上建议的第一件事是更新rsync.事实证明,Apple没有在他们的机器上给我们最新的rsync.因此,我updated the rsync version on my Mac via Macports至3.1.1.在那之后,我没有同步问题.

当然,这不是一般的解决方案,但是对于这个模糊的错误消息似乎没有一般的解决方案:如果这不起作用,我不得不尝试调试它.有关方法的详细信息,请参阅上述rsync问题页面.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读