Topic "File Transfer Failure (put) SFTP"

Author Message
bobbyc303
[View user's profile]

Joined: 2010-04-09
Posts: 2
I am having an issue transfering a file through scripting SFTP. The script should send 3 files, the first 2 transfer successfully but the third does not.
Thank you for the assistance, please let me know if any other information is needed.
Here is the versioning information:

WINSCP Version 4.2.7
Windows Server 2003 SP2
SFTP Protocol
Scripting

Belowis the script I am using, with the password redacted.

option batch on

option confirm off

open PMPMH:XXXXXXXXXX@fnfsftp1.fnfs.net

cd Notes

put \\olympus\wamudatafiles\LPS\*NOTE*

cd ..

cd Images

put \\olympus\wamudatafiles\LPS\*IMAGE*

cd ..

cd data

put \\olympus\wamudatafiles\LPS\*DATA*


close


exit

Below is the log from the most recent run:
The file that fails to transfer is:"\\olympus\wamudatafiles\LPS\TEST_WAMU_PMH_DATA_201004112322.TXT" The other 2 files transfer successfully.


. 2010-04-11 23:45:00.989 --------------------------------------------------------------------------
. 2010-04-11 23:45:00.989 WinSCP Version 4.2.7 (Build 758) (OS 5.2.3790 Service Pack 2)
. 2010-04-11 23:45:00.989 Login time: Sunday, April 11, 2010 11:45:00 PM
. 2010-04-11 23:45:00.989 --------------------------------------------------------------------------
. 2010-04-11 23:45:00.989 Session name: PMPMH@fnfsftp1.fnfs.net
. 2010-04-11 23:45:00.989 Host name: fnfsftp1.fnfs.net (Port: 22)
. 2010-04-11 23:45:00.989 User name: PMPMH (Password: Yes, Key file: No)
. 2010-04-11 23:45:00.989 Tunnel: No
. 2010-04-11 23:45:00.989 Transfer Protocol: SFTP (SCP)
. 2010-04-11 23:45:00.989 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-04-11 23:45:00.989 Proxy: none
. 2010-04-11 23:45:00.989 SSH protocol version: 2; Compression: No
. 2010-04-11 23:45:00.989 Bypass authentication: No
. 2010-04-11 23:45:00.989 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-04-11 23:45:00.989 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-04-11 23:45:00.989 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-04-11 23:45:00.989 SFTP Bugs: -,-
. 2010-04-11 23:45:00.989 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-04-11 23:45:00.989 Shell: default, EOL: 0
. 2010-04-11 23:45:00.989 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-04-11 23:45:00.989 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-04-11 23:45:00.989 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-04-11 23:45:00.989 Cache directory changes: Yes, Permanent: Yes
. 2010-04-11 23:45:00.989 DST mode: 1
. 2010-04-11 23:45:00.989 --------------------------------------------------------------------------
. 2010-04-11 23:45:00.989 Looking up host "fnfsftp1.fnfs.net"
. 2010-04-11 23:45:01.114 Connecting to 74.203.153.9 port 22
. 2010-04-11 23:45:01.270 Server version: SSH-2.0-1.36 sshlib: GlobalScape
. 2010-04-11 23:45:01.270 We believe remote version ignores SSH-2 maximum packet size
. 2010-04-11 23:45:01.270 Using SSH protocol version 2
. 2010-04-11 23:45:01.270 We claim version: SSH-2.0-WinSCP_release_4.2.7
. 2010-04-11 23:45:01.286 Using Diffie-Hellman with standard group "group1"
. 2010-04-11 23:45:01.286 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-04-11 23:45:01.442 Host key fingerprint is:
. 2010-04-11 23:45:01.442 ssh-dss 1024 52:39:c7:9f:e7:f0:33:e1:b1:42:73:6b:ce:f0:9c:4c
. 2010-04-11 23:45:01.442 Initialised AES-256 CBC client->server encryption
. 2010-04-11 23:45:01.442 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-04-11 23:45:01.442 Initialised AES-256 CBC server->client encryption
. 2010-04-11 23:45:01.442 Initialised HMAC-SHA1 server->client MAC algorithm
! 2010-04-11 23:45:01.645 Using username "PMPMH".
. 2010-04-11 23:45:01.692 Prompt (6, SSH password, , &Password: )
. 2010-04-11 23:45:01.692 Using stored password.
. 2010-04-11 23:45:01.692 Sent password
. 2010-04-11 23:45:01.739 Access granted
. 2010-04-11 23:45:01.786 Opened channel for session
. 2010-04-11 23:45:02.083 Started a shell/command
. 2010-04-11 23:45:02.083 --------------------------------------------------------------------------
. 2010-04-11 23:45:02.083 Using SFTP protocol.
. 2010-04-11 23:45:02.083 Doing startup conversation with host.
> 2010-04-11 23:45:02.083 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2010-04-11 23:45:02.129 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2010-04-11 23:45:02.129 SFTP version 3 negotiated.
. 2010-04-11 23:45:02.129 We believe the server has signed timestamps bug
. 2010-04-11 23:45:02.129 We will use UTF-8 strings for status messages only
. 2010-04-11 23:45:02.129 Getting current directory name.
. 2010-04-11 23:45:02.129 Getting real path for '.'
> 2010-04-11 23:45:02.129 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2010-04-11 23:45:02.176 Type: SSH_FXP_NAME, Size: 69, Number: 16
. 2010-04-11 23:45:02.176 Real path is '/ProcessManagement/PMPMH'
. 2010-04-11 23:45:02.176 Startup conversation with host finished.
. 2010-04-11 23:45:02.176 Cached directory change via "Notes" to "/ProcessManagement/PMPMH/Notes".
. 2010-04-11 23:45:02.192 Getting current directory name.
. 2010-04-11 23:45:02.192 Copying 1 files/directories to remote directory "/ProcessManagement/PMPMH/Notes"
. 2010-04-11 23:45:02.192 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2010-04-11 23:45:02.192 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2010-04-11 23:45:02.192 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2010-04-11 23:45:02.208 File: "\\olympus\wamudatafiles\LPS\TEST_WAMU_PMH_NOTES_201004112322.TXT"
. 2010-04-11 23:45:02.208 Copying "\\olympus\wamudatafiles\LPS\TEST_WAMU_PMH_NOTES_201004112322.TXT" to remote directory started.
. 2010-04-11 23:45:02.208 Ascii transfer mode selected.
. 2010-04-11 23:45:02.208 Opening remote file.
> 2010-04-11 23:45:02.208 Type: SSH_FXP_OPEN, Size: 92, Number: 259
< 2010-04-11 23:45:02.364 Type: SSH_FXP_HANDLE, Size: 10, Number: 259
> 2010-04-11 23:45:02.364 Type: SSH_FXP_WRITE, Size: 4068, Number: 774
. 2010-04-11 23:45:02.364 1 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2010-04-11 23:45:02.364 Type: SSH_FXP_CLOSE, Size: 10, Number: 1284
> 2010-04-11 23:45:02.364 Type: SSH_FXP_SETSTAT, Size: 88, Number: 521
< 2010-04-11 23:45:02.426 Type: SSH_FXP_STATUS, Size: 21, Number: 774
< 2010-04-11 23:45:02.489 Type: SSH_FXP_STATUS, Size: 21, Number: 1030
< 2010-04-11 23:45:02.489 Type: SSH_FXP_STATUS, Size: 21, Number: 1284
< 2010-04-11 23:45:02.489 Status code: 0
< 2010-04-11 23:45:02.489 Type: SSH_FXP_STATUS, Size: 21, Number: 521
< 2010-04-11 23:45:02.489 Status code: 0
. 2010-04-11 23:45:02.489 Cached directory change via ".." to "/ProcessManagement/PMPMH".
. 2010-04-11 23:45:02.489 Getting current directory name.
. 2010-04-11 23:45:02.489 Cached directory change via "Images" to "/ProcessManagement/PMPMH/Images".
. 2010-04-11 23:45:02.489 Getting current directory name.
. 2010-04-11 23:45:02.504 Copying 1 files/directories to remote directory "/ProcessManagement/PMPMH/Images"
. 2010-04-11 23:45:02.504 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2010-04-11 23:45:02.504 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2010-04-11 23:45:02.504 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2010-04-11 23:45:02.504 File: "\\olympus\wamudatafiles\LPS\TEST_WAMU_PMH_IMAGES_201004112322.ZIP"
. 2010-04-11 23:45:02.504 Copying "\\olympus\wamudatafiles\LPS\TEST_WAMU_PMH_IMAGES_201004112322.ZIP" to remote directory started.
. 2010-04-11 23:45:02.504 Binary transfer mode selected.
. 2010-04-11 23:45:02.504 Opening remote file.
> 2010-04-11 23:45:02.504 Type: SSH_FXP_OPEN, Size: 94, Number: 1539
< 2010-04-11 23:45:02.583 Type: SSH_FXP_HANDLE, Size: 10, Number: 1539
> 2010-04-11 23:45:02.583 Type: SSH_FXP_WRITE, Size: 44, Number: 2054
> 2010-04-11 23:45:02.583 Type: SSH_FXP_CLOSE, Size: 10, Number: 2308
> 2010-04-11 23:45:02.583 Type: SSH_FXP_SETSTAT, Size: 90, Number: 1801
< 2010-04-11 23:45:02.645 Type: SSH_FXP_STATUS, Size: 21, Number: 2054
< 2010-04-11 23:45:02.723 Type: SSH_FXP_STATUS, Size: 21, Number: 2308
< 2010-04-11 23:45:02.723 Status code: 0
< 2010-04-11 23:45:02.723 Type: SSH_FXP_STATUS, Size: 21, Number: 1801
< 2010-04-11 23:45:02.723 Status code: 0
. 2010-04-11 23:45:02.723 Cached directory change via ".." to "/ProcessManagement/PMPMH".
. 2010-04-11 23:45:02.723 Getting current directory name.
. 2010-04-11 23:45:02.723 Cached directory change via "data" to "/ProcessManagement/PMPMH/data".
. 2010-04-11 23:45:02.723 Getting current directory name.
. 2010-04-11 23:45:02.723 Copying 1 files/directories to remote directory "/ProcessManagement/PMPMH/data"
. 2010-04-11 23:45:02.723 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2010-04-11 23:45:02.723 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2010-04-11 23:45:02.723 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2010-04-11 23:45:02.723 File: "\\olympus\wamudatafiles\LPS\TEST_WAMU_PMH_DATA_201004112322.TXT"
. 2010-04-11 23:45:02.723 Copying "\\olympus\wamudatafiles\LPS\TEST_WAMU_PMH_DATA_201004112322.TXT" to remote directory started.
. 2010-04-11 23:45:02.723 Ascii transfer mode selected.
. 2010-04-11 23:45:02.723 Opening remote file.
> 2010-04-11 23:45:02.723 Type: SSH_FXP_OPEN, Size: 90, Number: 2563
< 2010-04-11 23:45:02.786 Type: SSH_FXP_HANDLE, Size: 10, Number: 2563
> 2010-04-11 23:45:02.786 Type: SSH_FXP_WRITE, Size: 4118, Number: 3078
. 2010-04-11 23:45:02.786 3 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2010-04-11 23:45:02.786 Type: SSH_FXP_CLOSE, Size: 10, Number: 4100
> 2010-04-11 23:45:02.786 Type: SSH_FXP_SETSTAT, Size: 86, Number: 2825
< 2010-04-11 23:45:02.864 Type: SSH_FXP_STATUS, Size: 21, Number: 3078
< 2010-04-11 23:45:02.911 Type: SSH_FXP_STATUS, Size: 21, Number: 3334
< 2010-04-11 23:45:02.926 Type: SSH_FXP_STATUS, Size: 21, Number: 3590
< 2010-04-11 23:45:02.973 Type: SSH_FXP_STATUS, Size: 21, Number: 3846
< 2010-04-11 23:45:02.973 Type: SSH_FXP_STATUS, Size: 21, Number: 4100
< 2010-04-11 23:45:02.973 Status code: 0
< 2010-04-11 23:45:02.973 Type: SSH_FXP_STATUS, Size: 21, Number: 2825
< 2010-04-11 23:45:02.973 Status code: 0
. 2010-04-11 23:45:02.973 Closing connection.
. 2010-04-11 23:45:02.973 Sending special code: 12
. 2010-04-11 23:45:02.973 Sent EOF message
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
What does it mean "fails to transfer"? I do not see any error in the log file.
_________________
Martin Prikryl
bobbyc303
[View user's profile]

Joined: 2010-04-09
Posts: 2
the file was not appearing in the destination FTP Site.

After further review this turned out to be an issue on the receiving site's part not mine thus no error was being reported.


Thank you for the reply.

Cory
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