Copying files from remote side failed.

Advertisement

jessey316
Joined:
Posts:
4

Copying files from remote side failed.

Hi

Hope someone can help. Odd issue I am having, I have created a scheduled task to connect and download files each morning

My download file is this:
# skip errors
option batch continue
# Disable overwrite confirmations that conflict with the previous 
option confirm off 
# Connect using a Site 
open FTPSite
# Force binary mode transfer 
option transfer binary 
# Download file to the local directory d:\ 
get -resume * "D:\Data Storage\0. My Data\Downloaded_Data\" -preservetime
# Disconnect 
close 
# Exit WinSCP 
exit
All files and folders download except one or two files in a certain folder. Everyday its the same files in the same folder, 230 folders all together.

I get this error:
< 2015-10-28 10:00:13.975 250 CWD successful. "/ttttttt_Oooooooooooooooooooo Vvvvvv_3" is current directory.
> 2015-10-28 10:00:13.975 PWD
< 2015-10-28 10:00:14.024 257 "/ttttttt_Oooooooooooooooooooo Vvvvvv_3" is current directory.
> 2015-10-28 10:00:14.024 TYPE A
< 2015-10-28 10:00:14.072 200 Type set to A
> 2015-10-28 10:00:14.072 PASV
< 2015-10-28 10:00:14.121 227 Entering Passive Mode (195,7,83,73,223,185)
> 2015-10-28 10:00:14.121 MLSD
. 2015-10-28 10:00:14.121 Connecting to 195.7.83.73:57273 ...
< 2015-10-28 10:00:14.224 150 Opening data channel for directory listing of "/ttttttt_Oooooooooooooooooooo Vvvvvv_3"
< 2015-10-28 10:00:14.224 226 Successfully transferred "/ttttttt_Oooooooooooooooooooo Vvvvvv_3"
. 2015-10-28 10:00:14.225 type=file;modify=20151027091550;size=1336;  ttttttt_Oooooooooooooooooooo Vvvvvv_3Sat. 24 Oct. 2015 - Mon. 26 Oct. 2015.csv
. 2015-10-28 10:00:14.225 type=file;modify=20151028090916;size=1336;  ttttttt_Oooooooooooooooooooo Vvvvvv_3Sun. 25 Oct. 2015 - Tue. 27 Oct. 2015.csv
. 2015-10-28 10:00:14.225 Directory listing successful
. 2015-10-28 10:00:14.225 ..;D;0;1899-12-30T00:00:00.000Z;"" [0];"" [0];---------;0
. 2015-10-28 10:00:14.225 ttttttt_Oooooooooooooooooooo Vvvvvv_3Sat. 24 Oct. 2015 - Mon. 26 Oct. 2015.csv;-;1336;2015-10-27T09:15:50.000Z;"" [0];"" [0];---------;0
. 2015-10-28 10:00:14.225 ttttttt_Oooooooooooooooooooo Vvvvvv_3Sun. 25 Oct. 2015 - Tue. 27 Oct. 2015.csv;-;1336;2015-10-28T09:09:16.000Z;"" [0];"" [0];---------;0
. 2015-10-28 10:00:14.225 File: '/ttttttt_Oooooooooooooooooooo Vvvvvv_3/ttttttt_Oooooooooooooooooooo Vvvvvv_3Sat. 24 Oct. 2015 - Mon. 26 Oct. 2015.csv' [2015-10-27T09:15:50.000Z] [1336]
. 2015-10-28 10:00:14.225 Copying "/ttttttt_Oooooooooooooooooooo Vvvvvv_3/ttttttt_Oooooooooooooooooooo Vvvvvv_3Sat. 24 Oct. 2015 - Mon. 26 Oct. 2015.csv" to local directory started.
. 2015-10-28 10:00:14.226 Binary transfer mode selected.
. 2015-10-28 10:00:14.226 Starting download of /ttttttt_Oooooooooooooooooooo Vvvvvv_3/ttttttt_Oooooooooooooooooooo Vvvvvv_3Sat. 24 Oct. 2015 - Mon. 26 Oct. 2015.csv
> 2015-10-28 10:00:14.227 TYPE I
< 2015-10-28 10:00:14.282 200 Type set to I
> 2015-10-28 10:00:14.282 PASV
< 2015-10-28 10:00:14.331 227 Entering Passive Mode (195,7,83,73,223,187)
> 2015-10-28 10:00:14.331 RETR ttttttt_Oooooooooooooooooooo Vvvvvv_3Sat. 24 Oct. 2015 - Mon. 26 Oct. 2015.csv
< 2015-10-28 10:00:14.393 550 File not found
. 2015-10-28 10:00:14.393 Copying files from remote side failed.
* 2015-10-28 10:00:14.393 (ExtException) **Copying files from remote side failed.**
* 2015-10-28 10:00:14.393 File not found
. 2015-10-28 10:00:14.393 Asking user:
. 2015-10-28 10:00:14.394 Error transferring file '/ttttttt_Oooooooooooooooooooo Vvvvvv_3/ttttttt_Oooooooooooooooooooo Vvvvvv_3Sat. 24 Oct. 2015 - Mon. 26 Oct. 2015.csv'. ("Copying files from remote side failed.","File not found")
< 2015-10-28 10:00:14.394 Script: Error transferring file '/ttttttt_Oooooooooooooooooooo Vvvvvv_3/ttttttt_Oooooooooooooooooooo Vvvvvv_3Sat. 24 Oct. 2015 - Mon. 26 Oct. 2015.csv'.
< 2015-10-28 10:00:14.394 Script: Copying files from remote side failed.< 2015-10-28 10:00:14.394 File not found
I tried to download the same file using the WinSCP console but got the same error. I tried with FileZilla, no special settings and it works without issues. But as I want to automate the download I wish to use WinSCP.

Reply with quote

Advertisement

jessey316
Joined:
Posts:
4

This is the logs from FileZilla
2015-11-02 14:02:12 4792 1 Status: Resolving address of ftp.site.com
2015-11-02 14:02:13 4792 1 Status: Connecting to 195.7.83.73:21...
2015-11-02 14:02:13 4792 1 Status: Connection established, waiting for welcome message...
2015-11-02 14:02:13 4792 1 Response: 220 This is a private system and not a public service. All access is logged.
2015-11-02 14:02:13 4792 1 Command: AUTH TLS
2015-11-02 14:02:13 4792 1 Response: 502 SSL/TLS authentication not allowed
2015-11-02 14:02:13 4792 1 Command: AUTH SSL
2015-11-02 14:02:13 4792 1 Response: 502 SSL/TLS authentication not allowed
2015-11-02 14:02:13 4792 1 Status: Insecure server, it does not support FTP over TLS.
2015-11-02 14:02:13 4792 1 Command: USER User_Name
2015-11-02 14:02:13 4792 1 Response: 331 Password required for User_Name
2015-11-02 14:02:13 4792 1 Command: PASS *********
2015-11-02 14:02:13 4792 1 Response: 230 Logged on
2015-11-02 14:02:13 4792 1 Command: SYST
2015-11-02 14:02:13 4792 1 Response: 215 UNIX emulated by FileZilla
2015-11-02 14:02:13 4792 1 Command: FEAT
2015-11-02 14:02:13 4792 1 Response: 211-Features:
2015-11-02 14:02:13 4792 1 Response:  MDTM
2015-11-02 14:02:13 4792 1 Response:  REST STREAM
2015-11-02 14:02:13 4792 1 Response:  SIZE
2015-11-02 14:02:13 4792 1 Response:  MLST type*;size*;modify*;
2015-11-02 14:02:13 4792 1 Response:  MLSD
2015-11-02 14:02:13 4792 1 Response:  UTF8
2015-11-02 14:02:13 4792 1 Response:  CLNT
2015-11-02 14:02:13 4792 1 Response:  MFMT
2015-11-02 14:02:13 4792 1 Response:  EPSV
2015-11-02 14:02:13 4792 1 Response:  EPRT
2015-11-02 14:02:13 4792 1 Response: 211 End
2015-11-02 14:02:13 4792 1 Status: Connected
2015-11-02 14:02:13 4792 1 Status: Retrieving directory listing...
2015-11-02 14:02:13 4792 1 Command: PWD
2015-11-02 14:02:13 4792 1 Response: 257 "/" is current directory.
2015-11-02 14:02:13 4792 1 Command: TYPE I
2015-11-02 14:02:13 4792 1 Response: 200 Type set to I
2015-11-02 14:02:13 4792 1 Command: PASV
2015-11-02 14:02:13 4792 1 Response: 227 Entering Passive Mode (195,7,83,73,223,23)
2015-11-02 14:02:13 4792 1 Command: MLSD
2015-11-02 14:02:13 4792 1 Response: 150 Opening data channel for directory listing of "/"
2015-11-02 14:02:13 4792 1 Response: 226 Successfully transferred "/"
2015-11-02 14:02:13 4792 1 Status: Directory listing of "/" successful
2015-11-02 14:02:44 4792 1 Status: Retrieving directory listing of "/ttttttt_Oooooooooooooooooooo Vvvvvv_3"...
2015-11-02 14:02:44 4792 1 Command: CWD /ttttttt_Oooooooooooooooooooo Vvvvvv_3
2015-11-02 14:02:44 4792 1 Response: 250 CWD successful. "/ttttttt_Oooooooooooooooooooo Vvvvvv_3" is current directory.
2015-11-02 14:02:44 4792 1 Command: PWD
2015-11-02 14:02:44 4792 1 Response: 257 "/ttttttt_Oooooooooooooooooooo Vvvvvv_3" is current directory.
2015-11-02 14:02:44 4792 1 Command: PASV
2015-11-02 14:02:44 4792 1 Response: 227 Entering Passive Mode (195,7,83,73,223,25)
2015-11-02 14:02:44 4792 1 Command: MLSD
2015-11-02 14:02:44 4792 1 Response: 150 Opening data channel for directory listing of "/ttttttt_Oooooooooooooooooooo Vvvvvv_3"
2015-11-02 14:02:44 4792 1 Response: 226 Successfully transferred "/ttttttt_Oooooooooooooooooooo Vvvvvv_3"
2015-11-02 14:02:44 4792 1 Status: Directory listing of "/ttttttt_Oooooooooooooooooooo Vvvvvv_3" successful
2015-11-02 14:02:54 4792 3 Status: Resolving address of ftp.site.com
2015-11-02 14:02:54 4792 3 Status: Connecting to 195.7.83.73:21...
2015-11-02 14:02:54 4792 3 Status: Connection established, waiting for welcome message...
2015-11-02 14:02:54 4792 3 Response: 220 This is a private system and not a public service. All access is logged.
2015-11-02 14:02:54 4792 3 Command: AUTH TLS
2015-11-02 14:02:54 4792 3 Response: 502 SSL/TLS authentication not allowed
2015-11-02 14:02:54 4792 3 Command: AUTH SSL
2015-11-02 14:02:54 4792 3 Response: 502 SSL/TLS authentication not allowed
2015-11-02 14:02:54 4792 3 Status: Insecure server, it does not support FTP over TLS.
2015-11-02 14:02:54 4792 3 Command: USER User_Name
2015-11-02 14:02:54 4792 3 Response: 331 Password required for User_Name
2015-11-02 14:02:54 4792 3 Command: PASS *********
2015-11-02 14:02:55 4792 3 Response: 230 Logged on
2015-11-02 14:02:55 4792 3 Status: Connected
2015-11-02 14:02:55 4792 3 Status: Starting download of /ttttttt_Oooooooooooooooooooo Vvvvvv_3/ ttttttt_Oooooooooooooooooooo Vvvvvv_3Fri. 30 Oct. 2015 - Sun.  1 Nov. 2015.csv
2015-11-02 14:02:55 4792 3 Command: CWD /ttttttt_Oooooooooooooooooooo Vvvvvv_3
2015-11-02 14:02:55 4792 3 Response: 250 CWD successful. "/ttttttt_Oooooooooooooooooooo Vvvvvv_3" is current directory.
2015-11-02 14:02:55 4792 3 Command: TYPE I
2015-11-02 14:02:55 4792 3 Response: 200 Type set to I
2015-11-02 14:02:55 4792 3 Command: PASV
2015-11-02 14:02:55 4792 3 Response: 227 Entering Passive Mode (195,7,83,73,223,28)
2015-11-02 14:02:55 4792 3 Command: RETR  ttttttt_Oooooooooooooooooooo Vvvvvv_3Fri. 30 Oct. 2015 - Sun.  1 Nov. 2015.csv
2015-11-02 14:02:55 4792 3 Response: 150 Opening data channel for file download from server of "/ttttttt_Oooooooooooooooooooo Vvvvvv_3/ ttttttt_Oooooooooooooooooooo Vvvvvv_3Fri. 30 Oct. 2015 - Sun.  1 Nov. 2015.csv"
2015-11-02 14:02:55 4792 3 Response: 226 Successfully transferred "/ttttttt_Oooooooooooooooooooo Vvvvvv_3/ ttttttt_Oooooooooooooooooooo Vvvvvv_3Fri. 30 Oct. 2015 - Sun.  1 Nov. 2015.csv"
2015-11-02 14:02:55 4792 3 Status: File transfer successful, transferred 1,341 bytes in 1 second

Reply with quote

martin
Site Admin
martin avatar

Re: (ExtException) **Copying files from remote side failed.**

The filename starts with a space. WinSCP has problems with that. I'll look into it. Meanwhile, remove the space if possible.

Reply with quote

jessey316

Great, that appears to have done the trick when I did a test...This runs every morning so I have informed the up-loaders and I shall check again in the morning.

Reply with quote

Advertisement

James Ranch
Guest

(ExtException) **Copying files from remote side failed.**

Hi a have same problem with script WinSCP the error is like this:
< 2021-12-24 15:43:26.243 227 Entering Passive Mode (172,17,xxx,xxx,195,108).
> 2021-12-24 15:43:26.243 STOR 20211130_CRIPAS_IRB_4_INSCO.ctl
. 2021-12-24 15:43:26.243 Connecting to 172.17.xxx.xx:50028 ...
< 2021-12-24 15:43:26.247 150 Uploading in BINARY file 20211130_CRIPAS_IRB_4_INSCO.ctl
. 2021-12-24 15:43:26.248 Data connection closed
< 2021-12-24 15:43:26.248 426 Transfer cancelled
. 2021-12-24 15:43:26.248 Copying files to remote side failed.
* 2021-12-24 15:43:26.249 (ExtException) **Copying files to remote side failed.**
* 2021-12-24 15:43:26.249 Transfer cancelled
. 2021-12-24 15:43:26.249 Asking user:
. 2021-12-24 15:43:26.249 Error transferring file '20211130_CRIPAS_IRB_4_INSCO.ctl'. ("Copying files to remote side failed.","Transfer cancelled")
< 2021-12-24 15:43:26.249 Script: Error transferring file '20211130_CRIPAS_IRB_4_INSCO.ctl'.
< 2021-12-24 15:43:26.249 Script: Copying files to remote side failed.
 
< 2021-12-24 15:43:26.249 Transfer cancelled
. 2021-12-24 15:43:26.250 Answer: Abort
* 2021-12-24 15:43:26.250 (ESkipFile) Error transferring file '20211130_CRIPAS_IRB_4_INSCO.ctl'.
* 2021-12-24 15:43:26.250 Copying files to remote side failed.
* 2021-12-24 15:43:26.250 Transfer cancelled
. 2021-12-24 15:43:26.250 Copying finished: Transferred: 207,015,850, Elapsed: 0:00:10, CPS: 20,351,538/s
. 2021-12-24 15:43:26.250 Script: Failed
. 2021-12-24 15:43:26.250 Script: Exit code: 1
. 2021-12-24 15:43:26.252 Disconnected from server
I have all ready checked those file and there is no space, please advice.

Reply with quote

martin
Site Admin
martin avatar

Re: (ExtException) **Copying files from remote side failed.**

@JamesRanch: Can you upload the same file from the same local machine anyhow? Using WinSCP GUI? Using any other FTP client? If you can, post a log file showing that.

Reply with quote

James Ranch
Guest

Re: (ExtException) **Copying files from remote side failed.**

Hi martin thx for you response, I have tried to upload manually win WinSCP GUI and the result is successfully, any idea why when I running it with script always failed.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum