被用户终止。复制文件致命失败。将文件复制到远程端失败

时间:2018-10-16 17:20:30

标签: winscp winscp-net

我基于winscp的.net应用程序停止工作。上传较大的文件时,我得到了

WinSCP.SessionRemoteException
  HResult=0x80131500
  Nachricht = Terminated by user.
Copying file 'test.mp4' fatally failed.
Copying files to remote side failed.
  Quelle = WinSCPnet
  Stapelüberwachung:
   bei WinSCP.OperationResultBase.Check()
   bei Hochladen.Form1.hochladenscp(String file) in Form1.cs: Zeile81
   bei Hochladen.Form1.<>c__DisplayClass10_0.<werfen>b__0() in Form1.cs: Zeile175
   bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Threading.ThreadHelper.ThreadStart()

它指向transferResult.Check();,说

WinSCP.SessionRemoteException: Terminated by user.
Copying file 'test.mp4' fatally failed.
Copying files to remote side failed.

Scp在服务器上存在,就像以前一样,scp密码正确,就像ssh-key一样。

这是日志的结尾

. 2018-10-19 13:00:37.119 Binary transfer mode selected.
> 2018-10-19 13:00:37.120 T1539559055 0 1539946831 0
. 2018-10-19 13:00:37.151 SCP remote side confirmation (0)
> 2018-10-19 13:00:37.151 C0644 1487483772 WeitWeg.mp4
. 2018-10-19 13:00:37.195 SCP remote side confirmation (0)
. 2018-10-19 13:00:37.195 Sending BINARY data (first block, 32768 bytes)
. 2018-10-19 13:01:06.560 Waiting for dispatching send buffer timed out, asking user what to do.
. 2018-10-19 13:01:06.560 Asking user:
. 2018-10-19 13:01:06.560 **Host is not communicating for 15 seconds.
. 2018-10-19 13:01:06.560 
. 2018-10-19 13:01:06.560 Wait for another 15 seconds?** ()
< 2018-10-19 13:01:06.560 Script: Host is not communicating for more than 15 seconds.
< 2018-10-19 13:01:06.560 Still waiting...
< 2018-10-19 13:01:06.560 Note: If the problem repeats, try turning off 'Optimize connection buffer size'.
< 2018-10-19 13:01:06.560 Warning: Aborting this operation will close connection!
. 2018-10-19 13:02:06.162 Attempt to close connection due to fatal exception:
* 2018-10-19 13:02:06.162 **Terminated by user.**
. 2018-10-19 13:02:06.162 Closing connection.
. 2018-10-19 13:02:06.162 Sending special code: 12
. 2018-10-19 13:02:06.162 Sent EOF message
< 2018-10-19 13:02:06.166 Script: Terminated by user.
< 2018-10-19 13:02:06.166 Copying file 'test.mp4' fatally failed.

< 2018-10-19 13:02:06.166 Copying files to remote side failed.

有什么解决方案?

0 个答案:

没有答案