【问题标题】:rsync does not work in Visual Studio 2019rsync 在 Visual Studio 2019 中不起作用
【发布时间】:2020-06-03 10:49:07
【问题描述】:

我从 Visual Studio 2019 中提供的模板创建了一个简单的 CMake 项目。它连接到远程 Linux 服务器并在使用“rsync”复制文件时出错,并出现以下错误。

Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting.

日志显示错误详情如下。

23:03:25.2045083 [Error, Thread 88]    liblinux.IO.Rsync: liblinux.IO.RsyncException: Could not create daemon configuration file on remote device ---> liblinux.IO.RsyncException: echo config error:  and error output: Unmatched ".

请注意: rsync 安装在远程 Linux 服务器上,并在使用和不使用 ssh 的情况下对其进行了测试。

当我尝试测试 Visual Studio 在“C:\Apps\VS2019Pro\Common7\IDE\VC\Linux\bin\rsync\rsync.exe”下提供的 rsync 以将文件同步/复制到远程 linux 服务器时它失败并出现以下错误。

dup() in/out/err failed
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.3]

我们将不胜感激。

【问题讨论】:

  • rsync 是否实际安装在远程计算机上,连接到该计算机的用户是否可以访问它?
  • @mrblewog 我尝试通过使用 VS 提供的 rsync 从 Windows 机器连接来测试它,并得到了我在更新中发布的错误。
  • @mrblewog VS 内部是使用本地存在的 rsync 二进制文件还是使用远程 Linux 同步目录?
  • VS 内部是否使用 rsync 二进制文件——这是个好问题。你能用VS以外的东西连接到远程机器吗?例如 SSH 会话?是的——你在下面这么说。

标签: visual-studio cmake


【解决方案1】:

Rsync 使用 rsync 协议,它是一个客户端服务器协议。 您正在使用的客户端需要与服务器通信,该服务器是远程服务器上的 rsync 二进制文件,这里似乎没有。

信息很清楚:

Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting.

您确实需要在远程服务器上安装 rsync。

【讨论】:

  • 谢谢,rsync 已安装在远程服务器上,我在使用和不使用 ssh 的情况下进行了测试,它可以正常工作。我更新了我的帖子,提供了更多关于我使用 rsync 进行测试的详细信息。请您看看。
猜你喜欢
  • 2023-03-06
  • 2021-06-21
  • 1970-01-01
  • 2020-09-14
  • 1970-01-01
  • 2021-06-19
  • 2020-11-24
  • 2023-03-29
  • 2020-05-12
相关资源
最近更新 更多