gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 22:01:19 32 4
gpt4 key购买 nike

我尝试使用以下命令从服务器进行 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 问题页面。

关于rsync - 从服务器 rsync 到本地计算机时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19525940/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com