[BUG] FTPS - Copying files from remote side failed.

Advertisement

jarod_73
Joined:
Posts:
1

[BUG] FTPS - Copying files from remote side failed.

Hi, I'm using winscp to connect to a ftp server using ftps protocol.
Connection is flawless, but when i try to get the file i need from the directory
I obtain "Copying files from remote side failed." .
It appens either from command line interface and from gui interface, in receive and send files.
Tested in on xp-sp2 and w2kserver-sp4.

here is log file:


https://pastebin.com/f4833df94

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: [BUG] FTPS - Copying files from remote side failed.

Looks like this bug. Though I haven't seen it so far to manifest in GUI (only in scripting).
Will send you development version to check.

Reply with quote

onslo
Joined:
Posts:
9

I too am experiencing this bug. Trying to upload a directory that includes numerous subdirectories and files, but it keeps failing with "Copying files to remote side failed."

To reproduce:
1. download https://ftp.drupal.org/files/projects/ubercart-6.x-2.0-rc1.tar.gz
2. Extract it so that you have a folder called "ubercart" containing all the subdirectories and files.
3. Log into a server using FTPS
4. Drag-and-drop the ubercart folder to transfer to remote server.
5. Transfer fails

Using Windows XP SP3

Reply with quote

AYss
Guest

Re: [BUG] FTPS - Copying files from remote side failed.

I have the same problem.
- FTPS (TLS encryption)
- trying to get file from the server
- crash

What I think is interesting that it works (!) if the file is in root directory. Only downloading from subdirectories fails. Below you can find debug2 log of the event.

. 2009-04-23 13:55:03.126 File: "/out/20090423.zip.gpg"
. 2009-04-23 13:55:03.126 Copying "/out/20090423.zip.gpg" to local directory started.
. 2009-04-23 13:55:03.126 Binary transfer mode selected.
. 2009-04-23 13:55:03.126 FtpControlSocket.cpp(2140): FileTransfer(32634992, FALSE, 0)  OpMode=0 OpState=-1   caller=0x01eef84c
. 2009-04-23 13:55:03.126 Starting download of /out/20090423.zip.gpg
> 2009-04-23 13:55:03.126 CWD /out/
. 2009-04-23 13:55:03.126 FtpControlSocket.cpp(894): OnReceive(0)  OpMode=24 OpState=1   caller=0x01eef84c
< 2009-04-23 13:55:03.126 250 CWD command successful
. 2009-04-23 13:55:03.126 FtpControlSocket.cpp(2140): FileTransfer(0, FALSE, 0)  OpMode=24 OpState=1   caller=0x01eef84c
> 2009-04-23 13:55:03.126 PWD
. 2009-04-23 13:55:03.126 FtpControlSocket.cpp(894): OnReceive(0)  OpMode=24 OpState=4   caller=0x01eef84c
< 2009-04-23 13:55:03.126 257 "/out" is the current directory
. 2009-04-23 13:55:03.126 FtpControlSocket.cpp(2140): FileTransfer(0, FALSE, 0)  OpMode=24 OpState=4   caller=0x01eef84c
. 2009-04-23 13:55:03.126 FtpControlSocket.cpp(2792): Real path and requested remote path do not match: "5120 0 3 out"  "4096 0 3 out"   caller=0x01eef84c
. 2009-04-23 13:55:03.126 FtpControlSocket.cpp(4250): ResetOperation(8192)  OpMode=24 OpState=4   caller=0x01eef84c
. 2009-04-23 13:55:03.126 Copying files from remote side failed.
. 2009-04-23 13:55:03.126 Got reply 2004 to the command 4
* 2009-04-23 13:55:03.126 (ExtException) Copying files from remote side failed.
* 2009-04-23 13:55:03.126 "/out" is the current directory
. 2009-04-23 13:55:03.126 Asking user:
. 2009-04-23 13:55:03.126 Error transferring file '/out/20090423.zip.gpg'. ("Copying files from remote side failed.","""/out"" is the current directory")
. 2009-04-23 13:55:03.470 Session upkeep
. 2009-04-23 13:55:03.969 Session upkeep
. 2009-04-23 13:55:04.469 Session upkeep
* 2009-04-23 13:55:04.625 (EScpSkipFile) Error transferring file '/out/20090423.zip.gpg'.
* 2009-04-23 13:55:04.625 Copying files from remote side failed.
* 2009-04-23 13:55:04.625 "/out" is the current directory

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

onslo wrote:

I too am experiencing this bug. Trying to upload a directory that includes numerous subdirectories and files, but it keeps failing with "Copying files to remote side failed."

To reproduce:
1. download https://ftp.drupal.org/files/projects/ubercart-6.x-2.0-rc1.tar.gz
2. Extract it so that you have a folder called "ubercart" containing all the subdirectories and files.
3. Log into a server using FTPS
4. Drag-and-drop the ubercart folder to transfer to remote server.
5. Transfer fails
OK, with this recipe I was able to reproduce the problem even in GUI.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Shogun17 wrote:

I am experiencing this issue as well. Is there a fix or workaround available?
You should upgrade.

Reply with quote

Shogun17
Guest

martin wrote:

Shogun17 wrote:

I am experiencing this issue as well. Is there a fix or workaround available?
You should upgrade.
I tried both 4.2.1 beta and 4.1.9. When I install 4.2.1 beta, I have the option of connecting using FTPS, but that's where I see the error message when I try to transfer files. When I install 4.1.9, I don't get an option to use FTPS. When I select FTP in my session setup, it only says "Insecure" and doesn't give me the same dropdown menu that 4.2.1 did which let me pick SSH and whatnot.

Reply with quote

Shogun17
Guest

Shogun17 wrote:

martin wrote:

Shogun17 wrote:

I am experiencing this issue as well. Is there a fix or workaround available?
You should upgrade.
I tried both 4.2.1 beta and 4.1.9. When I install 4.2.1 beta, I have the option of connecting using FTPS, but that's where I see the error message when I try to transfer files. When I install 4.1.9, I don't get an option to use FTPS. When I select FTP in my session setup, it only says "Insecure" and doesn't give me the same dropdown menu that 4.2.1 did which let me pick SSH and whatnot.
Sorry, I meant SSL/TLS encryption type.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Shogun17 wrote:

I tried both 4.2.1 beta and 4.1.9. When I install 4.2.1 beta, I have the option of connecting using FTPS, but that's where I see the error message when I try to transfer files. When I install 4.1.9, I don't get an option to use FTPS. When I select FTP in my session setup, it only says "Insecure" and doesn't give me the same dropdown menu that 4.2.1 did which let me pick SSH and whatnot.
OK, then you probably experience different problem than described in this topic. Please create new thread and post a log file.

Reply with quote

onslo
Joined:
Posts:
9

martin wrote:

Shogun17 wrote:

I am experiencing this issue as well. Is there a fix or workaround available?
You should upgrade.
This bug actually exists in 4.2.1 beta, which is the latest available.

Reply with quote

martin
Site Admin
martin avatar

onslo wrote:

This bug actually exists in 4.2.1 beta, which is the latest available.
Can you also post a log file?

Reply with quote

onslo
Joined:
Posts:
9

martin wrote:

onslo wrote:

This bug actually exists in 4.2.1 beta, which is the latest available.
Can you also post a log file?

On 23 Apr 2009 22:44 you replied to my post about method to reproduce this bug, stating:

martin wrote:

OK, with this recipe I was able to reproduce the problem even in GUI.
Your post is here: https://winscp.net/forum/viewtopic.php?p=24031#24031

When I posted my steps for reproducing this bug, it was with 4.2.1 beta. If you were already able to confirm my steps, I don't understand why I now need to post a log file. What version did you use to confirm my steps?

Reply with quote

Advertisement

Shogun17
Guest

martin wrote:

Shogun17 wrote:

I tried both 4.2.1 beta and 4.1.9. When I install 4.2.1 beta, I have the option of connecting using FTPS, but that's where I see the error message when I try to transfer files. When I install 4.1.9, I don't get an option to use FTPS. When I select FTP in my session setup, it only says "Insecure" and doesn't give me the same dropdown menu that 4.2.1 did which let me pick SSH and whatnot.
OK, then you probably experience different problem than described in this topic. Please create new thread and post a log file.
I believe it's the same problem as others have described in this thread. I connect to the server using FTPS and then when I try to transfer a file, it says that transfer failed.

Here's a log:
. 2009-05-05 12:54:09.893 --------------------------------------------------------------------------
. 2009-05-05 12:54:09.940 WinSCP Version 4.2.1 (Build 428) (OS 5.1.2600 Service Pack 3)
. 2009-05-05 12:54:09.940 Login time: Tuesday, May 05, 2009 12:54:09 PM
. 2009-05-05 12:54:09.956 --------------------------------------------------------------------------
. 2009-05-05 12:54:09.956 Session name: sv_nilssens@localhost
. 2009-05-05 12:54:09.956 Host name: localhost (Port: 990)
. 2009-05-05 12:54:09.956 User name: sv_nilssens (Password: Yes, Key file: No)
. 2009-05-05 12:54:09.956 Tunnel: No
. 2009-05-05 12:54:09.956 Transfer Protocol: FTP
. 2009-05-05 12:54:09.956 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2009-05-05 12:54:09.956 Proxy: none
. 2009-05-05 12:54:09.956 FTP: FTPS: Implicit SSL/TLS; Passive: No
. 2009-05-05 12:54:09.956 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-05-05 12:54:09.956 Cache directory changes: Yes, Permanent: Yes
. 2009-05-05 12:54:09.956 DST mode: 1
. 2009-05-05 12:54:09.956 --------------------------------------------------------------------------
. 2009-05-05 12:54:10.722 Connecting to localhost:990 ...
. 2009-05-05 12:54:10.722 Connected with localhost:990, negotiating SSL connection...
. 2009-05-05 12:54:11.394 SSL connection established. Waiting for welcome message...
< 2009-05-05 12:54:11.425 220 FileZilla Server version 0.9.31 beta
> 2009-05-05 12:54:11.425 USER sv_nilssens
< 2009-05-05 12:54:11.456 331 Password required for sv_nilssens
> 2009-05-05 12:54:11.456 PASS *******
< 2009-05-05 12:54:11.472 230 Logged on
> 2009-05-05 12:54:11.472 SYST
< 2009-05-05 12:54:11.472 215 UNIX emulated by FileZilla
> 2009-05-05 12:54:11.472 FEAT
< 2009-05-05 12:54:11.487 211-Features:
< 2009-05-05 12:54:11.487  MDTM
< 2009-05-05 12:54:11.487  REST STREAM
< 2009-05-05 12:54:11.487  SIZE
< 2009-05-05 12:54:11.487  MLST type*;size*;modify*;
< 2009-05-05 12:54:11.487  MLSD
< 2009-05-05 12:54:11.487  AUTH SSL
< 2009-05-05 12:54:11.487  AUTH TLS
< 2009-05-05 12:54:11.487  UTF8
< 2009-05-05 12:54:11.487  CLNT
< 2009-05-05 12:54:11.487  MFMT
< 2009-05-05 12:54:11.487 211 End
> 2009-05-05 12:54:11.487 PBSZ 0
< 2009-05-05 12:54:11.487 200 PBSZ=0
> 2009-05-05 12:54:11.487 PROT P
< 2009-05-05 12:54:11.487 200 Protection level set to P
. 2009-05-05 12:54:11.487 Connected
. 2009-05-05 12:54:11.487 --------------------------------------------------------------------------
. 2009-05-05 12:54:11.503 Using FTP protocol.
. 2009-05-05 12:54:11.503 Doing startup conversation with host.
> 2009-05-05 12:54:11.503 PWD
< 2009-05-05 12:54:11.519 257 "/" is current directory.
. 2009-05-05 12:54:11.519 Getting current directory name.
. 2009-05-05 12:54:11.534 Retrieving directory listing...
> 2009-05-05 12:54:11.550 TYPE A
< 2009-05-05 12:54:11.550 200 Type set to A
> 2009-05-05 12:54:11.675 PORT 127,0,0,1,4,249
< 2009-05-05 12:54:11.690 200 Port command successful
> 2009-05-05 12:54:11.690 LIST -a
< 2009-05-05 12:54:11.784 150 Opening data channel for directory list.
. 2009-05-05 12:54:11.815 SSL connection established
< 2009-05-05 12:54:11.815 226 Transfer OK
. 2009-05-05 12:54:11.815 Directory listing successful
. 2009-05-05 12:54:11.815 Startup conversation with host finished.
> 2009-05-05 12:54:42.253 TYPE A
< 2009-05-05 12:54:42.253 200 Type set to A
. 2009-05-05 12:54:59.769 Cached directory change via "Promotion" to "/Promotion".
. 2009-05-05 12:54:59.769 Getting current directory name.
. 2009-05-05 12:54:59.784 Retrieving directory listing...
> 2009-05-05 12:54:59.784 CWD /Promotion/
< 2009-05-05 12:54:59.784 250 CWD successful. "/Promotion" is current directory.
> 2009-05-05 12:54:59.784 PWD
< 2009-05-05 12:54:59.784 257 "/Promotion" is current directory.
> 2009-05-05 12:54:59.784 TYPE A
< 2009-05-05 12:54:59.784 200 Type set to A
> 2009-05-05 12:54:59.784 PORT 127,0,0,1,4,250
< 2009-05-05 12:54:59.784 200 Port command successful
> 2009-05-05 12:54:59.784 LIST -a
< 2009-05-05 12:54:59.800 150 Opening data channel for directory list.
. 2009-05-05 12:54:59.800 SSL connection established
< 2009-05-05 12:54:59.800 226 Transfer OK
. 2009-05-05 12:54:59.800 Directory listing successful
. 2009-05-05 12:55:04.863 File: "/Promotion/mmb.007027.pmt"
. 2009-05-05 12:55:04.863 Copying "/Promotion/mmb.007027.pmt" to local directory started.
. 2009-05-05 12:55:04.863 Binary transfer mode selected.
. 2009-05-05 12:55:04.894 Starting download of /Promotion/mmb.007027.pmt
> 2009-05-05 12:55:04.894 CWD /Promotion/
< 2009-05-05 12:55:04.894 250 CWD successful. "/Promotion" is current directory.
> 2009-05-05 12:55:04.894 PWD
< 2009-05-05 12:55:04.894 257 "/Promotion" is current directory.
. 2009-05-05 12:55:04.894 Copying files from remote side failed.
* 2009-05-05 12:55:04.925 (ExtException) Copying files from remote side failed.
* 2009-05-05 12:55:04.925 "/Promotion" is current directory.
. 2009-05-05 12:55:04.925 Asking user:
. 2009-05-05 12:55:04.925 Error transferring file '/Promotion/mmb.007027.pmt'. ("Copying files from remote side failed.","""/Promotion"" is current directory.")
. 2009-05-05 12:55:08.863 Starting download of /Promotion/mmb.007027.pmt
> 2009-05-05 12:55:08.863 CWD /Promotion/
< 2009-05-05 12:55:08.863 250 CWD successful. "/Promotion" is current directory.
> 2009-05-05 12:55:08.863 PWD
< 2009-05-05 12:55:08.863 257 "/Promotion" is current directory.
. 2009-05-05 12:55:08.863 Copying files from remote side failed.
* 2009-05-05 12:55:08.863 (ExtException) Copying files from remote side failed.
* 2009-05-05 12:55:08.863 "/Promotion" is current directory.
. 2009-05-05 12:55:08.863 Asking user:
. 2009-05-05 12:55:08.863 Error transferring file '/Promotion/mmb.007027.pmt'. ("Copying files from remote side failed.","""/Promotion"" is current directory.")
* 2009-05-05 12:55:10.097 (EScpSkipFile) Error transferring file '/Promotion/mmb.007027.pmt'.
* 2009-05-05 12:55:10.097 Copying files from remote side failed.
* 2009-05-05 12:55:10.097 "/Promotion" is current directory.
. 2009-05-05 12:55:20.160 Copying 1 files/directories to remote directory "/Promotion/"
. 2009-05-05 12:55:20.160   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2009-05-05 12:55:20.160   TM: M; ClAr: No; CPS: 0; ExclM(No): 
. 2009-05-05 12:55:20.160   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2009-05-05 12:55:20.160 File: "C:\TestFTP\MBPromotions\License.txt"
. 2009-05-05 12:55:20.160 Copying "C:\TestFTP\MBPromotions\License.txt" to remote directory started.
. 2009-05-05 12:55:20.160 Ascii transfer mode selected.
. 2009-05-05 12:55:20.160 Starting upload of C:\TestFTP\MBPromotions\License.txt
> 2009-05-05 12:55:20.160 CWD /Promotion/
< 2009-05-05 12:55:20.160 250 CWD successful. "/Promotion" is current directory.
> 2009-05-05 12:55:20.160 PWD
< 2009-05-05 12:55:20.160 257 "/Promotion" is current directory.
. 2009-05-05 12:55:20.160 Copying files to remote side failed.
* 2009-05-05 12:55:20.160 (ExtException) Copying files to remote side failed.
* 2009-05-05 12:55:20.160 "/Promotion" is current directory.
. 2009-05-05 12:55:20.160 Asking user:
. 2009-05-05 12:55:20.160 Error transferring file 'C:\TestFTP\MBPromotions\License.txt'. ("Copying files to remote side failed.","""/Promotion"" is current directory.")
* 2009-05-05 12:55:24.863 (EScpSkipFile) Error transferring file 'C:\TestFTP\MBPromotions\License.txt'.
* 2009-05-05 12:55:24.863 Copying files to remote side failed.
* 2009-05-05 12:55:24.863 "/Promotion" is current directory.
. 2009-05-05 12:55:24.863 Retrieving directory listing...
> 2009-05-05 12:55:24.863 CWD /Promotion/
< 2009-05-05 12:55:24.863 250 CWD successful. "/Promotion" is current directory.
> 2009-05-05 12:55:24.863 PWD
< 2009-05-05 12:55:24.863 257 "/Promotion" is current directory.
> 2009-05-05 12:55:24.863 TYPE A
< 2009-05-05 12:55:24.863 200 Type set to A
> 2009-05-05 12:55:24.863 PORT 127,0,0,1,4,251
< 2009-05-05 12:55:24.863 200 Port command successful
> 2009-05-05 12:55:24.863 LIST -a
< 2009-05-05 12:55:24.894 150 Opening data channel for directory list.
. 2009-05-05 12:55:24.894 SSL connection established
< 2009-05-05 12:55:24.894 226 Transfer OK
. 2009-05-05 12:55:24.894 Directory listing successful
> 2009-05-05 12:55:55.316 PWD
< 2009-05-05 12:55:55.316 257 "/Promotion" is current directory.
. 2009-05-05 12:56:21.488 Cached directory change via ".." to "/".
. 2009-05-05 12:56:21.488 Getting current directory name.
. 2009-05-05 12:56:21.488 Directory content loaded from cache.
. 2009-05-05 12:56:25.035 Cached directory change via "Promotion" to "/Promotion".
. 2009-05-05 12:56:25.035 Getting current directory name.
. 2009-05-05 12:56:25.035 Directory content loaded from cache.
> 2009-05-05 12:56:25.316 TYPE A
< 2009-05-05 12:56:25.316 200 Type set to A
. 2009-05-05 12:56:31.426 File: "/Promotion/mmb.007027.pmt"
. 2009-05-05 12:56:31.426 Copying "/Promotion/mmb.007027.pmt" to local directory started.
. 2009-05-05 12:56:31.426 Binary transfer mode selected.
. 2009-05-05 12:56:31.426 Starting download of /Promotion/mmb.007027.pmt
> 2009-05-05 12:56:31.426 CWD /Promotion/
< 2009-05-05 12:56:31.426 250 CWD successful. "/Promotion" is current directory.
> 2009-05-05 12:56:31.426 PWD
< 2009-05-05 12:56:31.426 257 "/Promotion" is current directory.
. 2009-05-05 12:56:31.426 Copying files from remote side failed.
* 2009-05-05 12:56:31.426 (ExtException) Copying files from remote side failed.
* 2009-05-05 12:56:31.426 "/Promotion" is current directory.
. 2009-05-05 12:56:31.426 Asking user:
. 2009-05-05 12:56:31.426 Error transferring file '/Promotion/mmb.007027.pmt'. ("Copying files from remote side failed.","""/Promotion"" is current directory.")
* 2009-05-05 12:56:32.926 (EScpSkipFile) Error transferring file '/Promotion/mmb.007027.pmt'.
* 2009-05-05 12:56:32.926 Copying files from remote side failed.
* 2009-05-05 12:56:32.926 "/Promotion" is current directory.
. 2009-05-05 12:56:36.223 Copying 1 files/directories to remote directory "/Promotion/"
. 2009-05-05 12:56:36.223   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2009-05-05 12:56:36.223   TM: M; ClAr: No; CPS: 0; ExclM(No): 
. 2009-05-05 12:56:36.223   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2009-05-05 12:56:36.238 File: "C:\TestFTP\MBPromotions\License.txt"
. 2009-05-05 12:56:36.238 Copying "C:\TestFTP\MBPromotions\License.txt" to remote directory started.
. 2009-05-05 12:56:36.238 Ascii transfer mode selected.
. 2009-05-05 12:56:36.238 Starting upload of C:\TestFTP\MBPromotions\License.txt
> 2009-05-05 12:56:36.238 CWD /Promotion/
< 2009-05-05 12:56:36.238 250 CWD successful. "/Promotion" is current directory.
> 2009-05-05 12:56:36.238 PWD
< 2009-05-05 12:56:36.238 257 "/Promotion" is current directory.
. 2009-05-05 12:56:36.238 Copying files to remote side failed.
* 2009-05-05 12:56:36.238 (ExtException) Copying files to remote side failed.
* 2009-05-05 12:56:36.238 "/Promotion" is current directory.
. 2009-05-05 12:56:36.238 Asking user:
. 2009-05-05 12:56:36.238 Error transferring file 'C:\TestFTP\MBPromotions\License.txt'. ("Copying files to remote side failed.","""/Promotion"" is current directory.")
* 2009-05-05 12:56:37.801 (EScpSkipFile) Error transferring file 'C:\TestFTP\MBPromotions\License.txt'.
* 2009-05-05 12:56:37.801 Copying files to remote side failed.
* 2009-05-05 12:56:37.801 "/Promotion" is current directory.
. 2009-05-05 12:56:37.801 Retrieving directory listing...
> 2009-05-05 12:56:37.801 CWD /Promotion/
< 2009-05-05 12:56:37.801 250 CWD successful. "/Promotion" is current directory.
> 2009-05-05 12:56:37.801 PWD
< 2009-05-05 12:56:37.801 257 "/Promotion" is current directory.
> 2009-05-05 12:56:37.801 TYPE A
< 2009-05-05 12:56:37.816 200 Type set to A
> 2009-05-05 12:56:37.816 PORT 127,0,0,1,4,252
< 2009-05-05 12:56:37.816 200 Port command successful
> 2009-05-05 12:56:37.816 LIST -a
< 2009-05-05 12:56:37.832 150 Opening data channel for directory list.
. 2009-05-05 12:56:37.832 SSL connection established
< 2009-05-05 12:56:37.832 226 Transfer OK
. 2009-05-05 12:56:37.832 Directory listing successful
. 2009-05-05 12:56:49.285 Disconnected from server

Reply with quote

martin
Site Admin
martin avatar

Re: [BUG] FTPS - Copying files from remote side failed.

OK, I haven't realised that some of you use FTPS, so you need 4.2.x. The bug was fixed in 4.1.9 hotfix, and haven't made it to 4.2.x line yet. You need to wait for 4.2.2.

Reply with quote

magiconexxx
Guest

4.2.2?

Sorry, I know you usually don't have timelines for these things, but I'm wondering when 4.2.2 will be out to fix the "Copying files from remote side failed" error when using FTPS? I see the version history has been recently updated and that that new logo should be out "in a few weeks", which was a few weeks ago :) . I need to set up automatic FTPS transfers soon, and I'd rather not have to purchase WS_FTP when we've been using WinSCP for years.

Thanks!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: 4.2.2?

magiconexxx wrote:

Sorry, I know you usually don't have timelines for these things, but I'm wondering when 4.2.2 will be out to fix the "Copying files from remote side failed" error when using FTPS? I see the version history has been recently updated and that that new logo should be out "in a few weeks", which was a few weeks ago :) . I need to set up automatic FTPS transfers soon, and I'd rather not have to purchase WS_FTP when we've been using WinSCP for years.
I hope to release 4.2.2 at the end of this month.

Reply with quote

Milloflex
Guest

Not sure if this is the same problem...

1. I'm using FTP SSL/TLS
2. Connecting to the server
3. Drag-n-dropping a FOLDER to the local side
4. I recive the error "Copying files from remote side failed."

It only happens when I try to transfer hole directorys.

The workaround is to make it fail, the dir is still created on the local side upon fialure. Then enter the dir on both sides, and then add and transfer the files inside.

I'm using WinSCP 4.2.1 beta
but I've had the same problem with WinSCP 4.1.9.

(Could also be a FileZilla FTP Server thing using the encryption, but I never had any issues with other FTP clients.)


Log can be found at: <invalid hyperlink removed by admin>[/code]

Reply with quote

martin
Site Admin
martin avatar

Milloflex wrote:

Not sure if this is the same problem...
Looks like. If it gets not fixed with 4.2.2, please report again.

Reply with quote

Advertisement

Skooter
Guest

Still happening in 4.2.2

I am still receiving this same error in 4.2.2. I'm connecting via ftps(TLS) to a pure-ftpd 1.0.22 server on a linux box. I've tried multiple ways of downloading the file. Fully pathed, switching directories(cd, lcd, cd+lcd), ascii, binary, automatic to no avail. I am attempting to transfer 10 empty files that I created with the touch command. I've yet to get all 10 files copied in one session. The number of files that transfer varies per run. The most I've transferred is 8.

Here is my script file:
============================================================================
option transfer automatic
option batch abort
option confirm off
open batcave
cd Tommy/%1%
lcd %2%
get *.%1% .\
exit


Here's the log file:
============================================================================
. 2009-07-23 18:35:52.404 --------------------------------------------------------------------------
. 2009-07-23 18:35:52.404 WinSCP Version 4.2.2 (Build 480) (OS 5.1.2600 Service Pack 3)
. 2009-07-23 18:35:52.404 Login time: Thursday, July 23, 2009 6:35:52 PM
. 2009-07-23 18:35:52.420 --------------------------------------------------------------------------
. 2009-07-23 18:35:52.420 Session name: batcave
. 2009-07-23 18:35:52.420 Host name: batcave (Port: 21)
. 2009-07-23 18:35:52.420 User name: project (Password: Yes, Key file: No)
. 2009-07-23 18:35:52.436 Tunnel: No
. 2009-07-23 18:35:52.436 Transfer Protocol: FTP
. 2009-07-23 18:35:52.436 Ping type: C, Ping interval: 30 sec; Timeout: 5 sec
. 2009-07-23 18:35:52.436 Proxy: none
. 2009-07-23 18:35:52.451 FTP: FTPS: Explicit TLS; Passive: No
. 2009-07-23 18:35:52.451 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-07-23 18:35:52.451 Cache directory changes: Yes, Permanent: Yes
. 2009-07-23 18:35:52.451 DST mode: 1
. 2009-07-23 18:35:52.451 --------------------------------------------------------------------------
. 2009-07-23 18:35:52.529 Connecting to batcave ...
. 2009-07-23 18:35:52.545 Connected with batcave, negotiating SSL connection...
< 2009-07-23 18:35:52.545 220---------- Welcome to Pure-FTPd [TLS] ----------
< 2009-07-23 18:35:52.561 220-You are user number 1 of 50 allowed.
< 2009-07-23 18:35:52.592 220-Local time is now 18:35. Server port: 21.
< 2009-07-23 18:35:52.592 220-IPv6 connections are also welcome on this server.
< 2009-07-23 18:35:52.592 220 You will be disconnected after 15 minutes of inactivity.
> 2009-07-23 18:35:52.592 AUTH TLS
< 2009-07-23 18:35:52.607 234 AUTH TLS OK.
. 2009-07-23 18:35:52.732 SSL connection established. Waiting for welcome message...
> 2009-07-23 18:35:52.732 USER project
< 2009-07-23 18:35:52.748 331 User project OK. Password required
> 2009-07-23 18:35:52.748 PASS *******
< 2009-07-23 18:35:52.811 230-User project has group access to: qcstaff users
< 2009-07-23 18:35:52.811 230 OK. Current directory is /home/project
> 2009-07-23 18:35:52.811 SYST
< 2009-07-23 18:35:52.826 215 UNIX Type: L8
> 2009-07-23 18:35:52.826 FEAT
< 2009-07-23 18:35:52.826 211-Extensions supported:
< 2009-07-23 18:35:52.826 EPRT
< 2009-07-23 18:35:52.826 IDLE
< 2009-07-23 18:35:52.842 MDTM
< 2009-07-23 18:35:52.842 SIZE
< 2009-07-23 18:35:52.842 REST STREAM
< 2009-07-23 18:35:52.842 MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
< 2009-07-23 18:35:52.857 MLSD
< 2009-07-23 18:35:52.857 AUTH TLS
< 2009-07-23 18:35:52.857 PBSZ
< 2009-07-23 18:35:52.857 PROT
< 2009-07-23 18:35:52.857 UTF8
< 2009-07-23 18:35:52.873 ESTA
< 2009-07-23 18:35:52.873 PASV
< 2009-07-23 18:35:52.873 EPSV
< 2009-07-23 18:35:52.873 SPSV
< 2009-07-23 18:35:52.873 ESTP
< 2009-07-23 18:35:52.889 211 End.
> 2009-07-23 18:35:52.889 OPTS UTF8 ON
< 2009-07-23 18:35:52.889 200 OK, UTF-8 enabled
> 2009-07-23 18:35:52.889 PBSZ 0
< 2009-07-23 18:35:52.904 200 PBSZ=0
> 2009-07-23 18:35:52.904 PROT P
< 2009-07-23 18:35:52.904 200 Data protection level set to "private"
. 2009-07-23 18:35:52.904 Connected
. 2009-07-23 18:35:52.920 --------------------------------------------------------------------------
. 2009-07-23 18:35:52.920 Using FTP protocol.
. 2009-07-23 18:35:52.936 Doing startup conversation with host.
> 2009-07-23 18:35:52.936 PWD
< 2009-07-23 18:35:52.936 257 "/home/project" is your current location
. 2009-07-23 18:35:52.936 Getting current directory name.
. 2009-07-23 18:35:52.951 Startup conversation with host finished.
. 2009-07-23 18:35:52.951 Cached directory change via "Tommy/PICK" to "/home/project/Tommy/PICK".
. 2009-07-23 18:35:52.951 Getting current directory name.
. 2009-07-23 18:35:52.951 Retrieving directory listing...
> 2009-07-23 18:35:52.967 CWD /home/project/Tommy/PICK/
< 2009-07-23 18:35:52.967 250 OK. Current directory is /home/project/Tommy/PICK
> 2009-07-23 18:35:52.967 PWD
< 2009-07-23 18:35:52.967 257 "/home/project/Tommy/PICK" is your current location
> 2009-07-23 18:35:52.982 TYPE A
< 2009-07-23 18:35:52.982 200 TYPE is now ASCII
> 2009-07-23 18:35:52.982 PORT 192,168,1,136,16,55
< 2009-07-23 18:35:52.982 200 PORT command successful
> 2009-07-23 18:35:52.998 LIST -a
< 2009-07-23 18:35:52.998 150 Connecting to port 4151
. 2009-07-23 18:35:52.998 SSL connection established
< 2009-07-23 18:35:52.998 226-Options: -a -l
< 2009-07-23 18:35:52.998 226 12 matches total
. 2009-07-23 18:35:53.014 Directory listing successful
. 2009-07-23 18:35:53.014 File: "/home/project/Tommy/PICK/000000000.PICK"
. 2009-07-23 18:35:53.014 Copying "/home/project/Tommy/PICK/000000000.PICK" to local directory started.
. 2009-07-23 18:35:53.029 Binary transfer mode selected.
. 2009-07-23 18:35:53.029 Starting download of /home/project/Tommy/PICK/000000000.PICK
> 2009-07-23 18:35:53.029 TYPE I
< 2009-07-23 18:35:53.045 200 TYPE is now 8-bit binary
> 2009-07-23 18:35:53.045 PORT 192,168,1,136,16,56
< 2009-07-23 18:35:53.045 200 PORT command successful
> 2009-07-23 18:35:53.045 RETR 000000000.PICK
< 2009-07-23 18:35:53.061 150 Connecting to port 4152
< 2009-07-23 18:35:53.061 226 File successfully transferred
. 2009-07-23 18:35:53.061 Download successful
. 2009-07-23 18:35:53.076 File: "/home/project/Tommy/PICK/111111111.PICK"
. 2009-07-23 18:35:53.076 Copying "/home/project/Tommy/PICK/111111111.PICK" to local directory started.
. 2009-07-23 18:35:53.076 Binary transfer mode selected.
. 2009-07-23 18:35:53.092 Starting download of /home/project/Tommy/PICK/111111111.PICK
> 2009-07-23 18:35:53.092 TYPE I
< 2009-07-23 18:35:53.092 200 TYPE is now 8-bit binary
> 2009-07-23 18:35:53.107 PORT 192,168,1,136,16,57
< 2009-07-23 18:35:53.107 200 PORT command successful
> 2009-07-23 18:35:53.123 RETR 111111111.PICK
. 2009-07-23 18:35:53.123 SSL connection established
< 2009-07-23 18:35:53.123 150 Connecting to port 4153
< 2009-07-23 18:35:53.139 226 File successfully transferred
. 2009-07-23 18:35:53.139 Download successful
. 2009-07-23 18:35:53.139 File: "/home/project/Tommy/PICK/222222222.PICK"
. 2009-07-23 18:35:53.139 Copying "/home/project/Tommy/PICK/222222222.PICK" to local directory started.
. 2009-07-23 18:35:53.154 Binary transfer mode selected.
. 2009-07-23 18:35:53.154 Starting download of /home/project/Tommy/PICK/222222222.PICK
> 2009-07-23 18:35:53.154 TYPE I
< 2009-07-23 18:35:53.154 200 TYPE is now 8-bit binary
> 2009-07-23 18:35:53.170 PORT 192,168,1,136,16,58
< 2009-07-23 18:35:53.170 200 PORT command successful
> 2009-07-23 18:35:53.170 RETR 222222222.PICK
< 2009-07-23 18:35:53.186 150 Connecting to port 4154
. 2009-07-23 18:35:53.186 SSL connection established
< 2009-07-23 18:35:53.186 226 File successfully transferred
. 2009-07-23 18:35:53.186 Copying files from remote side failed.
* 2009-07-23 18:35:53.201 (ExtException) Copying files from remote side failed.
* 2009-07-23 18:35:53.201 File successfully transferred
. 2009-07-23 18:35:53.201 Asking user:
. 2009-07-23 18:35:53.201 Error transferring file '/home/project/Tommy/PICK/222222222.PICK'. ("Copying files from remote side failed.","File successfully transferred")
* 2009-07-23 18:35:53.217 (EScpSkipFile) Error transferring file '/home/project/Tommy/PICK/222222222.PICK'.
* 2009-07-23 18:35:53.217 Copying files from remote side failed.
* 2009-07-23 18:35:53.217 File successfully transferred
. 2009-07-23 18:35:53.232 Disconnected from server

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: Still happening in 4.2.2

Skooter wrote:

I am still receiving this same error in 4.2.2. I'm connecting via ftps(TLS) to a pure-ftpd 1.0.22 server on a linux box. I've tried multiple ways of downloading the file. Fully pathed, switching directories(cd, lcd, cd+lcd), ascii, binary, automatic to no avail. I am attempting to transfer 10 empty files that I created with the touch command. I've yet to get all 10 files copied in one session. The number of files that transfer varies per run. The most I've transferred is 8.
Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: Still happening in 4.2.2

Skooter wrote:

I am still receiving this same error in 4.2.2. I'm connecting via ftps(TLS) to a pure-ftpd 1.0.22 server on a linux box. I've tried multiple ways of downloading the file. Fully pathed, switching directories(cd, lcd, cd+lcd), ascii, binary, automatic to no avail. I am attempting to transfer 10 empty files that I created with the touch command. I've yet to get all 10 files copied in one session. The number of files that transfer varies per run. The most I've transferred is 8.
This issue has been added to tracker.

Reply with quote

markb423
Guest

I am getting this error message with FTPS

I am receiving this error message (both uploading and downloading) over FTPS. The FTP server is running FileZilla Server on Windows Server 2012 (Standard).

When I used the FileZilla client, I do not receive any errors. Connection mode is passive (PASV). Encryption is SSL/TLS Implicit.

In the tracker, I see Bug #474 and Bug #489 are reported as Resolved/Fixed, but then again those pertain to empty files, and my issue is not restricted to empty files. I am attempting to upload a selection of files that includes both files and folders (and subfolders). Manually clicking [Retry] works to have the file transferred successfully, but sometimes I have to click [Retry] 3 or 4 times before it is successful.

I had an outdated version of WinSCP (but still later than the versions claiming to have fixed this issue). I updated to the latest version of WinSCP and received the same errors.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: I am getting this error message with FTPS

markb423 wrote:

I am receiving this error message (both uploading and downloading) over FTPS. The FTP server is running FileZilla Server on Windows Server 2012 (Standard).

When I used the FileZilla client, I do not receive any errors. Connection mode is passive (PASV). Encryption is SSL/TLS Implicit.

In the tracker, I see Bug #474 and Bug #489 are reported as Resolved/Fixed, but then again those pertain to empty files, and my issue is not restricted to empty files. I am attempting to upload a selection of files that includes both files and folders (and subfolders). Manually clicking [Retry] works to have the file transferred successfully, but sometimes I have to click [Retry] 3 or 4 times before it is successful.

I had an outdated version of WinSCP (but still later than the versions claiming to have fixed this issue). I updated to the latest version of WinSCP and received the same errors.
Please start a new thread and attach a complete session log file.

Reply with quote

agofman
Guest

I get the same message but with version 5.7.6

The connection is established the file is found but the transfer never gets beyond 0%. How do you capture an activity log?
thanks,
Albert

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: I get the same message but with version 5.7.6

agofman wrote:

The connection is established the file is found but the transfer never gets beyond 0%. How do you capture an activity log?
Please start a new thread and attach a full log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Tord Bergset
Guest

FTPS - unable to upload files using script

Hi Martin

I run version 5.7.7 and have the same issue with FTPS returning "Access is denied" when trying to upload files using command line/script. Is there a thread covering this already - I can't find one...

Connecting to IIS server and my user account has Domain Admin rights. Still access denied. FTP settings in IIS is set to "All allowed". NTFS = Full control on dest folder.
Downloading files works without problems.

My put command line below:

C:\WinSCP>WinSCP.com /command "option batch continue" "option confirm off" "open -implicit -certificat certstring -passive ftps://domain\userid:pwd@serverip" "put C:\Temp\Testfile.log /filetransfer/logs/Testfile.log "close" "exit"

batch continue
reconnecttime 120
confirm off
Connecting to serverip:990 ...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session: [1] domain\user@serverip
C:Testfile.log | 0 B | 0,0 KB/s | binary | 0%
Error transferring file 'C:\Temp\Testfile.log'.
Copying files to remote side failed.
Access is denied.
(A)bort, (R)etry, (S)kip, Ski(p) all: Skip
Session 'domain\user@serverip' closed.
No session.

Reply with quote

Advertisement

Tord Bergset
Guest

Forget about my last comment !!

Martin, but my last comment turned out to be relate to a specific folder and not a general issue.

Reply with quote

Guest

Re: Forget about my last comment !!

Tord Bergset wrote:

Martin, but my last comment turned out to be relate to a specific folder and not a general issue.

For the record; remember to set the "FTP Authorization Rules" (Default = Read Only) and the "FTP IP Address and Domain Restrictions" (set to Allow) in IIS server for the folder you are uploading files to :wink:

Reply with quote

Advertisement

You can post new topics in this forum