Topic "Time out after uploading > 40 files"

Author Message
zeny
[View user's profile]

Joined: 2016-09-15
Posts: 2
Location: Singapore
I use vb.net program to execute winscp with options.
As long as the numbers of files are less than 40 there is no issue.
But once it is over 40, the timeout always happen.

i make the script such that it can set the timeout base on the total files size.
This is the command which i use.

option batch abort
option confirm off
open sftp://xxx@160.1.1.1 -timeout=100 -passive=on -hostkey="ssh-xxxxxxxxxxxxxxxxxx" -privatekey="D:\xxx_pri.ppk"


This are the log, only the starting and ending part.

batch abort
reconnecttime 120
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "xxx".
Authenticating with public key "dsa-key-111111".
Authenticated.
Starting the session...
Session started.
Active session: [1] xxx@160.1.1.1
.
.
.
.
D:\X55271 | 0 B | 0.0 KB/s | binary | 0%
D:\X55271 | 0 B | 0.0 KB/s | binary | 0%Timeout waiting for external console to complete the command.
Timeout waiting for external console to complete the command.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
How do you execute your script?

Did you read this?
https://winscp.net/eng/docs/message_timeout_external_console
zeny
[View user's profile]

Joined: 2016-09-15
Posts: 2
Location: Singapore
martin wrote:
How do you execute your script?

Did you read this?
https://winscp.net/eng/docs/message_timeout_external_console


I create a windows .net service to execute the WINSCP program with option.
The command are all in a script file.
The option are point to this script file and a XML temp log file.
All information are later written to window event log.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
OK. So I believe the article I linked above explain your problem.

You better use .NET assembly rather than running WinSCP process on your own.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License