Topic "Scripting - No Retry required for File Transfer"

Author Message
Kamesh
[View user's profile]

Joined: 2009-12-09
Posts: 3
WinSCP Version 4.2.5 (Build 624) (OS 5.2.3790 Service Pack 2)

We use WinSCP.com in a batch script that runs when the file is ready to be posted. The problem here as seen in log file is the file is being retried to be sent if there is no response from remote server for 15 seconds. We got a comment from remote server admin that they have received duplicate files.

We do not need our script to retry sending the file incase there is no response from remote server. Instead, it can close the connection with a different error code. Is this already available ? If Yes, Let me know how. Thanks in advance.

Note: I also tried using /timeout=60 which I believe 15 sec will be increased to 60, however, do not see any configuration information or variable inits in the log file which is not giving me a confident answer.

Pasting here the Full log file...

***


. 2010-07-20 10:03:23.015 --------------------------------------------------------------------------
. 2010-07-20 10:03:23.015 WinSCP Version 4.2.5 (Build 624) (OS 5.2.3790 Service Pack 2)
. 2010-07-20 10:03:23.015 Login time: Tuesday, July 20, 2010 10:03:23 AM
. 2010-07-20 10:03:23.015 --------------------------------------------------------------------------
. 2010-07-20 10:03:23.015 Session name: user@transmissions.abcd.com
. 2010-07-20 10:03:23.015 Host name: transmissions.abcd.com (Port: 22)
. 2010-07-20 10:03:23.015 User name: user (Password: No, Key file: No)
. 2010-07-20 10:03:23.015 Tunnel: No
. 2010-07-20 10:03:23.015 Transfer Protocol: SFTP
. 2010-07-20 10:03:23.015 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-07-20 10:03:23.015 Proxy: none
. 2010-07-20 10:03:23.015 SSH protocol version: 2; Compression: No
. 2010-07-20 10:03:23.015 Bypass authentication: No
. 2010-07-20 10:03:23.015 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-07-20 10:03:23.015 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-07-20 10:03:23.015 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-07-20 10:03:23.015 SFTP Bugs: -,-
. 2010-07-20 10:03:23.015 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-07-20 10:03:23.015 Shell: default, EOL: 0
. 2010-07-20 10:03:23.015 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-07-20 10:03:23.015 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-07-20 10:03:23.015 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-07-20 10:03:23.015 Cache directory changes: Yes, Permanent: Yes
. 2010-07-20 10:03:23.015 DST mode: 1
. 2010-07-20 10:03:23.015 --------------------------------------------------------------------------
. 2010-07-20 10:03:23.015 Looking up host "transmissions.abcd.com"
. 2010-07-20 10:03:23.250 Connecting to 114.153.36.161 port 22
. 2010-07-20 10:03:23.296 Server version: SSH-2.0-SSHD
. 2010-07-20 10:03:23.296 Using SSH protocol version 2
. 2010-07-20 10:03:23.296 We claim version: SSH-2.0-WinSCP_release_4.2.5
. 2010-07-20 10:03:23.328 Using Diffie-Hellman with standard group "group14"
. 2010-07-20 10:03:23.328 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-07-20 10:03:24.281 Host key fingerprint is:
. 2010-07-20 10:03:24.281 ssh-rsa 2048 19:fa:d1:5d:7c:3a:b5:2b:6e:ac:9e:1a:49:d2:c8:20
. 2010-07-20 10:03:24.281 Initialised AES-256 CBC client->server encryption
. 2010-07-20 10:03:24.281 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-07-20 10:03:24.296 Initialised AES-256 CBC server->client encryption
. 2010-07-20 10:03:24.296 Initialised HMAC-SHA1 server->client MAC algorithm
. 2010-07-20 10:03:24.343 Reading private key file "c:\progra~1\putty\user.ppk"
! 2010-07-20 10:03:24.375 Using username "user".
. 2010-07-20 10:03:24.406 Offered public key
. 2010-07-20 10:03:24.968 Offer of public key accepted
! 2010-07-20 10:03:24.968 Authenticating with public key "rsa-key-20091124"
. 2010-07-20 10:03:25.234 Access granted
. 2010-07-20 10:03:25.265 Opened channel for session
. 2010-07-20 10:03:25.406 Started a shell/command
. 2010-07-20 10:03:25.406 --------------------------------------------------------------------------
. 2010-07-20 10:03:25.406 Using SFTP protocol.
. 2010-07-20 10:03:25.406 Doing startup conversation with host.
> 2010-07-20 10:03:25.406 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2010-07-20 10:03:25.609 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2010-07-20 10:03:25.609 SFTP version 3 negotiated.
. 2010-07-20 10:03:25.609 We believe the server has signed timestamps bug
. 2010-07-20 10:03:25.609 We will use UTF-8 strings for status messages only
. 2010-07-20 10:03:25.609 Getting current directory name.
. 2010-07-20 10:03:25.609 Getting real path for '.'
> 2010-07-20 10:03:25.609 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2010-07-20 10:03:25.656 Type: SSH_FXP_NAME, Size: 43, Number: 16
. 2010-07-20 10:03:25.656 Real path is '/'
. 2010-07-20 10:03:25.656 Startup conversation with host finished.
. 2010-07-20 10:03:25.656 Cached directory change via "/Inbound/Encrypted" to "/Inbound/Encrypted".
. 2010-07-20 10:03:25.656 Getting current directory name.
. 2010-07-20 10:03:25.656 Copying 1 files/directories to remote directory "/Inbound/Encrypted"
. 2010-07-20 10:03:25.671 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2010-07-20 10:03:25.671 TM: B; ClAr: No; CPS: 0; ExclM(No):
. 2010-07-20 10:03:25.671 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2010-07-20 10:03:25.671 File: "user.ACH.NACHA.20JUL2010.935909.pgp"
. 2010-07-20 10:03:25.671 Copying "user.ACH.NACHA.20JUL2010.935909.pgp" to remote directory started.
. 2010-07-20 10:03:25.671 Binary transfer mode selected.
. 2010-07-20 10:03:25.671 Opening remote file.
> 2010-07-20 10:03:25.671 Type: SSH_FXP_OPEN, Size: 81, Number: 259
< 2010-07-20 10:03:25.734 Type: SSH_FXP_HANDLE, Size: 10, Number: 259
> 2010-07-20 10:03:25.734 Type: SSH_FXP_WRITE, Size: 3045, Number: 774
> 2010-07-20 10:03:25.750 Type: SSH_FXP_CLOSE, Size: 10, Number: 1028
> 2010-07-20 10:03:25.750 Type: SSH_FXP_SETSTAT, Size: 77, Number: 521
. 2010-07-20 10:03:40.750 Waiting for data timed out, asking user what to do.
. 2010-07-20 10:03:40.750 Asking user:
. 2010-07-20 10:03:40.750 Host is not communicating for 15 seconds.
. 2010-07-20 10:03:40.750
. 2010-07-20 10:03:40.750 Wait for another 15 seconds? ()
. 2010-07-20 10:03:40.750 Attempt to close connection due to fatal exception:

* 2010-07-20 10:03:40.750 Terminated by user.
. 2010-07-20 10:03:40.750 Closing connection.
. 2010-07-20 10:03:40.750 Sending special code: 12
. 2010-07-20 10:03:40.750 Sent EOF message
. 2010-07-20 10:03:40.750 Fatal error while disposing the SFTP queue.
. 2010-07-20 10:03:40.750 Connection was lost, asking what to do.
. 2010-07-20 10:03:40.750 Asking user:
. 2010-07-20 10:03:40.750 Terminated by user. ()
. 2010-07-20 10:03:45.843 Looking up host "transmissions.abcd.com"
. 2010-07-20 10:03:45.953 Connecting to 114.153.36.161 port 22
. 2010-07-20 10:03:46.015 Server version: SSH-2.0-SSHD
. 2010-07-20 10:03:46.015 Using SSH protocol version 2
. 2010-07-20 10:03:46.015 We claim version: SSH-2.0-WinSCP_release_4.2.5
. 2010-07-20 10:03:46.046 Using Diffie-Hellman with standard group "group14"
. 2010-07-20 10:03:46.046 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-07-20 10:03:46.984 Host key fingerprint is:
. 2010-07-20 10:03:46.984 ssh-rsa 2048 19:aa:dd:dd:cc:aa:b5:2b:66:ac:9e:1a:49:d2:c8:20
. 2010-07-20 10:03:46.984 Initialised AES-256 CBC client->server encryption
. 2010-07-20 10:03:46.984 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-07-20 10:03:47.015 Initialised AES-256 CBC server->client encryption
. 2010-07-20 10:03:47.015 Initialised HMAC-SHA1 server->client MAC algorithm
. 2010-07-20 10:03:47.171 Reading private key file "c:\progra~1\putty\user.ppk"
! 2010-07-20 10:03:47.171 Using username "user".
. 2010-07-20 10:03:47.187 Offered public key
. 2010-07-20 10:03:47.656 Offer of public key accepted
! 2010-07-20 10:03:47.656 Authenticating with public key "rsa-key-20091124"
. 2010-07-20 10:03:47.875 Access granted
. 2010-07-20 10:03:47.906 Opened channel for session
. 2010-07-20 10:03:48.093 Started a shell/command
. 2010-07-20 10:03:48.093 Doing startup conversation with host.
> 2010-07-20 10:03:48.093 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2010-07-20 10:03:48.343 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2010-07-20 10:03:48.343 SFTP version 3 negotiated.
. 2010-07-20 10:03:48.343 We believe the server has signed timestamps bug
. 2010-07-20 10:03:48.343 We will use UTF-8 strings for status messages only
. 2010-07-20 10:03:48.343 Changing directory to "/Inbound/Encrypted".
. 2010-07-20 10:03:48.343 Getting real path for '/Inbound/Encrypted'
> 2010-07-20 10:03:48.343 Type: SSH_FXP_REALPATH, Size: 27, Number: 1296
< 2010-07-20 10:03:48.390 Type: SSH_FXP_NAME, Size: 77, Number: 1296
. 2010-07-20 10:03:48.390 Real path is '/Inbound/Encrypted'
. 2010-07-20 10:03:48.390 Trying to open directory "/Inbound/Encrypted".
> 2010-07-20 10:03:48.390 Type: SSH_FXP_LSTAT, Size: 27, Number: 1543
< 2010-07-20 10:03:48.437 Type: SSH_FXP_ATTRS, Size: 29, Number: 1543
. 2010-07-20 10:03:48.453 Getting current directory name.
. 2010-07-20 10:03:48.453 Startup conversation with host finished.
. 2010-07-20 10:03:48.453 File: "user.ACH.NACHA.20JUL2010.935909.pgp"
. 2010-07-20 10:03:48.453 Copying "user.ACH.NACHA.20JUL2010.935909.pgp" to remote directory started.
. 2010-07-20 10:03:48.453 Binary transfer mode selected.
. 2010-07-20 10:03:48.453 Opening remote file.
> 2010-07-20 10:03:48.453 Type: SSH_FXP_OPEN, Size: 81, Number: 1795
< 2010-07-20 10:03:48.531 Type: SSH_FXP_HANDLE, Size: 10, Number: 1795
> 2010-07-20 10:03:48.531 Type: SSH_FXP_WRITE, Size: 3045, Number: 2310
> 2010-07-20 10:03:48.531 Type: SSH_FXP_CLOSE, Size: 10, Number: 2564
> 2010-07-20 10:03:48.531 Type: SSH_FXP_SETSTAT, Size: 77, Number: 2057
< 2010-07-20 10:03:58.359 Type: SSH_FXP_STATUS, Size: 49, Number: 2310
< 2010-07-20 10:03:58.578 Type: SSH_FXP_STATUS, Size: 40, Number: 2564
< 2010-07-20 10:03:58.578 Status code: 0
< 2010-07-20 10:03:58.578 Type: SSH_FXP_STATUS, Size: 40, Number: 2057
< 2010-07-20 10:03:58.578 Status code: 0
. 2010-07-20 10:03:58.578 Closing connection.
. 2010-07-20 10:03:58.578 Sending special code: 12
. 2010-07-20 10:03:58.578 Sent EOF message

***
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You can disable transfer resuming in GUI. Script will use the setting. Also read FAQ. If that does not help, come back.
_________________
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