设置远程连接时Visual Studio 2019无法创建rsync配置

时间:2019-08-24 13:14:07

标签: visual-studio remote-debugging rsync visual-studio-2019

因此,我尝试将远程连接添加到我的Ubuntu 18.04服务器,以便在VS中进行远程调试。添加连接以及尝试刷新远程标头时,都会出现以下错误:

An error has occured. 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

检查日志,我得到以下更多有用的错误:

liblinux.IO.RsyncException: Could not create daemon configuration file on remote device

我该如何解决呢?如果我无法使其自动工作,是否可以通过某种方式手动设置此文件?

以下是日志中的完整错误:

liblinux.IO.RsyncException: 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. ---> liblinux.IO.RsyncException: Could not create daemon configuration file on remote device ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'ShellStream'.
   at liblinux.Ssh.ShellStream.Write(String text)
   at liblinux.Ssh.ShellStream.WriteLine(String line)
   at liblinux.Shell.StreamingShell.WriteLine(String line)
   at liblinux.IO.RemoteRsyncDaemon.Start()
   --- End of inner exception stack trace ---
   at liblinux.IO.RemoteRsyncDaemon.Start()
   at liblinux.IO.Rsync.StartRemoteServer(RemoteRsyncDaemon daemon)
   --- End of inner exception stack trace ---
   at liblinux.IO.Rsync.StartRemoteServer(RemoteRsyncDaemon daemon)
   at liblinux.IO.Rsync.PrepareForDirectorySync(Int32 sessionID, String localPath, String remotePath, RsyncDirection direction, RemoteRsyncDaemon daemon, RsyncVerbosity verbosity, Boolean recursive, List`1 includes, List`1 excludes, Boolean& sourcePathExists, String customOptions)
   at liblinux.IO.Rsync.<SyncDirectoryAsync>d__20.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at liblinux.Services.RsyncRemoteCompilerIOImpl.<DownloadDirectoriesAsync>d__13.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at liblinux.Services.RemoteCompiler.<DownloadSysrootAsync>d__152.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at liblinux.Services.RemoteCompiler.<CreateSysrootAsync>d__186.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at liblinux.Services.RemoteCompiler.<CreateLocalSysrootAsync>d__147.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.VisualStudio.Linux.Package.Dialogs.HeaderUpdateDialog.<DownloadUpdateAsync>d__18.MoveNext()

0 个答案:

没有答案