Downloaded file with 0kb

Advertisement

Captain7
Joined:
Posts:
2

Downloaded file with 0kb

My script is trying to get all the files from the remote server and then remove them. The file "PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001" seems to be downloaded to local folder but it has file size of 0kb and the file "PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3" did not get downloaded. This problem is intermittent and I have no idea what is wrong. I hope you can help me by reviewing the log file. Thanks very much!!

. 2012-09-05 11:30:26.348 --------------------------------------------------------------------------
. 2012-09-05 11:30:26.350 WinSCP Version 4.3.8 (Build 1771) (OS 6.0.6002 Service Pack 2)
. 2012-09-05 11:30:26.350 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2012-09-05 11:30:26.351 Local account: xxxx\xxx
. 2012-09-05 11:30:26.351 Login time: Wednesday, September 05, 2012 11:30:26 AM
. 2012-09-05 11:30:26.351 --------------------------------------------------------------------------
. 2012-09-05 11:30:26.351 Session name: xxxxxxx (Stored session)
. 2012-09-05 11:30:26.351 Host name: xxx.xx.xxx.xxx (Port: xxxx)
. 2012-09-05 11:30:26.351 User name: xxxxxxx (Password: Yes, Key file: No)
. 2012-09-05 11:30:26.351 Tunnel: No
. 2012-09-05 11:30:26.351 Transfer Protocol: FTP
. 2012-09-05 11:30:26.351 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2012-09-05 11:30:26.351 Proxy: none
. 2012-09-05 11:30:26.351 FTP: FTPS: None; Passive: Yes [Force IP: No]
. 2012-09-05 11:30:26.351 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2012-09-05 11:30:26.351 Cache directory changes: Yes, Permanent: Yes
. 2012-09-05 11:30:26.351 DST mode: 1
. 2012-09-05 11:30:26.351 --------------------------------------------------------------------------
. 2012-09-05 11:30:26.374 Connecting to xxx.xx.xxx.xxx:xxxx ...
. 2012-09-05 11:30:26.376 Connected with xxx.xx.xxx.xxx:xxxx. Waiting for welcome message...
. 2012-09-05 11:30:26.377 --------------------------------------------------------------------------
. 2012-09-05 11:30:26.377 WinSCP Version 4.3.8 (Build 1771) (OS 6.0.6002 Service Pack 2)
. 2012-09-05 11:30:26.377 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2012-09-05 11:30:26.378 Local account: xxxx\xxx
. 2012-09-05 11:30:26.378 Login time: Wednesday, September 05, 2012 11:30:26 AM
. 2012-09-05 11:30:26.378 --------------------------------------------------------------------------
. 2012-09-05 11:30:26.378 Session name: xxxxxxx (Stored session)
. 2012-09-05 11:30:26.378 Host name: xxx.xx.xxx.xxx (Port: xxxx)
. 2012-09-05 11:30:26.378 User name: xxxxxxx (Password: Yes, Key file: No)
. 2012-09-05 11:30:26.378 Tunnel: No
. 2012-09-05 11:30:26.378 Transfer Protocol: FTP
. 2012-09-05 11:30:26.378 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2012-09-05 11:30:26.378 Proxy: none
. 2012-09-05 11:30:26.378 FTP: FTPS: None; Passive: Yes [Force IP: No]
. 2012-09-05 11:30:26.378 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2012-09-05 11:30:26.378 Cache directory changes: Yes, Permanent: Yes
. 2012-09-05 11:30:26.378 DST mode: 1
. 2012-09-05 11:30:26.378 --------------------------------------------------------------------------
. 2012-09-05 11:30:26.380 Connecting to xxx.xx.xxx.xxx:xxxx ...
< 2012-09-05 11:30:26.380 220 Microsoft FTP Service
> 2012-09-05 11:30:26.381 USER xxxxxxx
. 2012-09-05 11:30:26.387 Connected with xxx.xx.xxx.xxx:xxxx. Waiting for welcome message...
< 2012-09-05 11:30:26.387 331 Password required for xxxxxxx.
> 2012-09-05 11:30:26.387 PASS ****************
< 2012-09-05 11:30:26.392 220 Microsoft FTP Service
> 2012-09-05 11:30:26.392 USER xxxxxxx
< 2012-09-05 11:30:26.392 230 User logged in.
> 2012-09-05 11:30:26.393 SYST
< 2012-09-05 11:30:26.397 331 Password required for xxxxxxx.
> 2012-09-05 11:30:26.397 PASS ****************.397 215 Windows_NT
> 2012-09-05 11:30:26.397 FEAT

< 2012-09-05 11:30:26.405 230 User logged in.
> 2012-09-05 11:30:26.405 SYST
< 2012-09-05 11:30:26.405 211-Extended features supported:
< 2012-09-05 11:30:26.405 LANG EN*
< 2012-09-05 11:30:26.405 UTF8
< 2012-09-05 11:30:26.405 AUTH TLS;TLS-C;SSL;TLS-P;
< 2012-09-05 11:30:26.405 PBSZ
< 2012-09-05 11:30:26.405 PROT C;P;
< 2012-09-05 11:30:26.405 CCC
< 2012-09-05 11:30:26.405 HOST
< 2012-09-05 11:30:26.405 SIZE
< 2012-09-05 11:30:26.405 MDTM
< 2012-09-05 11:30:26.405 REST STREAM
< 2012-09-05 11:30:26.405 211 END
> 2012-09-05 11:30:26.405 OPTS UTF8 ON
< 2012-09-05 11:30:26.410 215 Windows_NT
> 2012-09-05 11:30:26.410 FEAT
< 2012-09-05 11:30:26.411 200 OPTS UTF8 command successful - UTF8 encoding now ON.
. 2012-09-05 11:30:26.411 Connected
. 2012-09-05 11:30:26.411 --------------------------------------------------------------------------
. 2012-09-05 11:30:26.412 Using FTP protocol.
. 2012-09-05 11:30:26.412 Doing startup conversation with host.
> 2012-09-05 11:30:26.412 PWD
< 2012-09-05 11:30:26.415 211-Extended features supported:
< 2012-09-05 11:30:26.415 LANG EN*
< 2012-09-05 11:30:26.415 UTF8
< 2012-09-05 11:30:26.415 AUTH TLS;TLS-C;SSL;TLS-P;
< 2012-09-05 11:30:26.415 PBSZ
< 2012-09-05 11:30:26.415 PROT C;P;
< 2012-09-05 11:30:26.416 CCC
< 2012-09-05 11:30:26.416 HOST
< 2012-09-05 11:30:26.416 SIZE
< 2012-09-05 11:30:26.416 MDTM
< 2012-09-05 11:30:26.416 REST STREAM
< 2012-09-05 11:30:26.416 211 END
> 2012-09-05 11:30:26.416 OPTS UTF8 ON
< 2012-09-05 11:30:26.417 257 "/" is current directory.
. 2012-09-05 11:30:26.417 Getting current directory name.
. 2012-09-05 11:30:26.417 Startup conversation with host finished.
< 2012-09-05 11:30:26.417 Script: Active session: [1] eSolutions
> 2012-09-05 11:30:26.418 Script: lcd C:\Batch\PD\FTP\Files
< 2012-09-05 11:30:26.418 Script: C:\Batch\PD\FTP\Files
> 2012-09-05 11:30:26.418 Script: get -delete *.
. 2012-09-05 11:30:26.419 Retrieving directory listing...
> 2012-09-05 11:30:26.419 TYPE A
< 2012-09-05 11:30:26.420 200 OPTS UTF8 command successful - UTF8 encoding now ON.
. 2012-09-05 11:30:26.420 Connected
. 2012-09-05 11:30:26.420 --------------------------------------------------------------------------
. 2012-09-05 11:30:26.420 Using FTP protocol.
. 2012-09-05 11:30:26.421 Doing startup conversation with host.
> 2012-09-05 11:30:26.421 PWD
< 2012-09-05 11:30:26.424 200 Type set to A.
> 2012-09-05 11:30:26.425 PASV
< 2012-09-05 11:30:26.425 257 "/" is current directory.
. 2012-09-05 11:30:26.426 Getting current directory name.
. 2012-09-05 11:30:26.426 Startup conversation with host finished.
< 2012-09-05 11:30:26.426 Script: Active session: [1] eSolutions
> 2012-09-05 11:30:26.426 Script: lcd C:\Batch\PD\FTP\Files
< 2012-09-05 11:30:26.426 Script: C:\Batch\PD\FTP\Files
> 2012-09-05 11:30:26.426 Script: get -delete *.
. 2012-09-05 11:30:26.427 Retrieving directory listing...
> 2012-09-05 11:30:26.427 TYPE A
< 2012-09-05 11:30:26.430 227 Entering Passive Mode (216,16,234,157,193,94).
> 2012-09-05 11:30:26.431 LIST -a
< 2012-09-05 11:30:26.431 200 Type set to A.
> 2012-09-05 11:30:26.432 PASV
< 2012-09-05 11:30:26.435 150 Opening ASCII mode data connection.
< 2012-09-05 11:30:26.437 227 Entering Passive Mode (216,16,234,157,193,95).
> 2012-09-05 11:30:26.437 LIST -a
< 2012-09-05 11:30:26.441 226 Transfer complete.
. 2012-09-05 11:30:26.441 150 Opening ASCII mode data connection.
Directory listing successful
< 2012-09-05 11:30:26.446 226 Transfer complete.
. 2012-09-05 11:30:26.447 Directory listing successful
. 2012-09-05 11:30:26.450 .ile: "/PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3"
2012-09-05 11:30:26.450 File: "/PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3"
. 2012-09-05 11:30:26.450 Copying "/PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3" to local directory started.
. 2012-09-05 11:30:26.450 Copying "/PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3" to local directory started.
. 2012-09-05 11:30:26.450 2012-09-05 11:30:26.450 cted.
Binary transfer mode selected.
..2012-09-05 11:30:26.451 Starting download of /PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3 2012-09-05 11:30:26.451 Starting download of /PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3
>>2012-09-05 11:30:26.454 2012-09-05 11:30:26.454 TYPE I
< 2012-09-05 11:30:26.460 200 Type set to I.<
2012-09-05 11:30:26.460 200 Type set to I.
> 2012-09-05 11:30:26.460 PASV
> 2012-09-05 11:30:26.460 PASV
< 2012-09-05 11:30:26.466 227 Entering Passive Mode (216,16,234,157,193,96).
< 2012-09-05 11:30:26.466 227 Entering Passive Mode (216,16,234,157,193,97).
> 2012-09-05 11:30:26.466 RETR PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3
< 2012-09-05 11:30:26.471 150 Opening BINARY mode data connection..
2012-09-05 11:30:26.471 Can't open file 'C:\Batch\PD\FTP\Files\PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3'.
. 2012-09-05 11:30:26.472 Copying files from remote side failed.
* 2012-09-05 11:30:26.478 (ExtException) Can't open file 'C:\Batch\PD\FTP\Files\PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3'.
* 2012-09-05 11:30:26.478 Copying files from remote side failed.
* 2012-09-05 11:30:26.478 Entering Passive Mode (216,16,234,157,193,97).
. 2012-09-05 11:30:26.478 Asking user:
. 2012-09-05 11:30:26.478 Error transferring file '/PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3'. ("Can't open file 'C:\Batch\PD\FTP\Files\PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3'.","Copying files from remote side failed.","Entering Passive Mode (216,16,234,157,193,97).")
* 2012-09-05 11:30:26.487 (EScpSkipFile) Error transferring file '/PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3'.
* 2012-09-05 11:30:26.487 Can't open file 'C:\Batch\PD\FTP\Files\PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3'.
* 2012-09-05 11:30:26.487 Copying files from remote side failed.
* 2012-09-05 11:30:26.487 Entering Passive Mode (216,16,234,157,193,97).
. 2012-09-05 11:30:26.487 File: "/PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001"
. 2012-09-05 11:30:26.487 Copying "/PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001" to local directory started.
. 2012-09-05 11:30:26.487 Binary transfer mode selected.
. 2012-09-05 11:30:26.488 Starting download of /PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001
> 2012-09-05 11:30:26.488 TYPE I
< 2012-09-05 11:30:26.494 200 Type set to I.
> 2012-09-05 11:30:26.494 PASV
< 2012-09-05 11:30:26.500 227 Entering Passive Mode (216,16,234,157,193,98).
> 2012-09-05 11:30:26.501 RETR PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001
< 2012-09-05 11:30:26.507 150 Opening BINARY mode data connection.
< 2012-09-05 11:30:26.634 226 Transfer complete.
. 2012-09-05 11:30:26.634 Download successful
. 2012-09-05 11:30:26.646 Deleting file "/PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001".
> 2012-09-05 11:30:26.646 DELE /PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001
< 2012-09-05 11:30:26.648 226 Transfer complete.
. 2012-09-05 11:30:26.648 Download successful
. 2012-09-05 11:30:26.648 Deleting file "/PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3".
> 2012-09-05 11:30:26.648 DELE /PDAcc_0a2eee8a-9721-4bd6-988a-2cfca83190c3
< 2012-09-05 11:30:26.650 250 DELE command successful.
> 2012-09-05 11:30:26.651 Script: close
. 2012-09-05 11:30:26.652 Disconnected from server
< 2012-09-05 11:30:26.653 250 DELE command successful.
. 2012-09-05 11:30:26.653 File: "/PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001"
. 2012-09-05 11:30:26.653 Copying "/PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001" to local directory started.
. 2012-09-05 11:30:26.654 Binary transfer mode selected.
. 2012-09-05 11:30:26.654 Starting download of /PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001
> 2012-09-05 11:30:26.654 TYPE I
< 2012-09-05 11:30:26.659 200 Type set to I.
> 2012-09-05 11:30:26.660 PASV
< 2012-09-05 11:30:26.665 227 Entering Passive Mode (216,16,234,157,193,99).
> 2012-09-05 11:30:26.666 RETR PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001
< 2012-09-05 11:30:26.671 550 The system cannot find the file specified.
. 2012-09-05 11:30:26.671 Copying files from remote side failed.
* 2012-09-05 11:30:26.671 (ExtException) Copying files from remote side failed.
* 2012-09-05 11:30:26.671 The system cannot find the file specified.
. 2012-09-05 11:30:26.671 Asking user:
. 2012-09-05 11:30:26.671 Error transferring file '/PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001'. ("Copying files from remote side failed.","The system cannot find the file specified. ")
* 2012-09-05 11:30:26.672 (EScpSkipFile) Error transferring file '/PDReq_0a2eee8a-9721-4bd6-988a-2cfca83190c3_2012-09-05-1053-00001'.
* 2012-09-05 11:30:26.672 Copying files from remote side failed.
* 2012-09-05 11:30:26.672 The system cannot find the file specified.
> 2012-09-05 11:30:26.672 Script: close
. 2012-09-05 11:30:26.672 Disconnected from server

Reply with quote

Advertisement

Captain7

Downloaded file with 0kb

I use Windows's Task Scheduler to run the script every 5 minutes and there is only one task set up there. I also have the option "Do not start a new instance" set in the Task Scheduler. I don't think each run will take more than 5 seconds as the files being downloaded are only a few kilobytes and only a few files sitting in the remote server. I'll try to remove the task from the Task Scheduler and create it again.

Reply with quote

Advertisement

You can post new topics in this forum