Login  
Search All Forums
Dart Home | PowerTCP SSL for ActiveX | Custom Development Reply | PowerTCP SSL for ActiveX Topics | Forums   
AuthorForum: PowerTCP SSL for ActiveX
Topic: FTPS File transfer bails around halfway through
Rick Adams

From: Burnsville, MN USA
Posts: 12
Member Since: 11/28/06
posted February 27, 2009 2:09 PM

I'm having trouble connecting to a particular FTPS server and transferring a 218,442 byte file, which fails after around 64K bytes have been transferred.

This does not happen with our own FTPS server, and does not happen with smaller (100 byte) files.

Unfortunately, it's unlikely I can get you a test account on this server, but I'm hoping I can give you enough information that you can suggest things I can try.

To reproduce the error in a controlled environment, today I downloaded and installed the latest trial version, PowerTCP_SSL_ActiveX_Trial.exe, on a test machine. I then ran the sample program at Samples\VB6\SecureFtp\Client and tried to transfer the file. The progress bar advanced smoothly to about 40%, and then the connection dropped.

The trace is:

<--- 220 Momentum SSL/TLS FTP Service Ready. (Implicit Mode)

---> USER usernamegoeshere

<--- 331 User name okay, need password.

---> PASS passwordgoeshere

<--- 230 User logged in, proceed.

---> REST 100

<--- 502 Command not implemented.

---> CWD /

<--- 550 Requested action not taken. Can't traverse above the root directory.

---> PWD

<--- 257 "D:/inetpub/ftproot/SFTP/00137" is current directory.

---> PASV

<--- 227 Entering Passive Mode (xx,xx,xx,xx,19,180)

---> LIST

<--- 150 Opening ASCII mode data connection for LIST return info.

<--- 226 Transfer complete.

---> PASV

<--- 227 Entering Passive Mode (xx,xx,xx,xx,19,181)

---> STOR D:/inetpub/ftproot/SFTP/00137/ACH431283316.txt

<--- 150 Opening BINARY mode data connection for D:/inetpub/ftproot/SFTP/00137/ACH431283316.txt (Offset = 0)

<--- 451 Requested action aborted. Unexpected processing error.

---> PASV

I am able to transfer the file using Filezilla. I have also modified the test program to issue the same commands in the same order as the Filezilla trace, to no avail. That trace looks like:

Status: Connecting to sitegoeshere.com:990 ...
Status: Connected with sitegoeshere.com:990, negotiating SSL connection...
Status: SSL connection established. Waiting for welcome message...
Response: 220 Momentum SSL/TLS FTP Service Ready. (Implicit Mode)
Command: USER usernamegoeshere
Response: 331 User name okay, need password.
Command: PASS passwordgoeshere
Response: 230 User logged in, proceed.
Command: SYST
Response: 215 Windows_NT
Command: FEAT
Response: 502 Command not implemented.
Command: PBSZ 0
Response: 200 Command accepted, PBSZ=0
Command: PROT P
Response: 200 Command okay.
Status: Connected
Status: Starting upload of C:\Documents and Settings\ricka.MHC\Desktop\Transfer\ACH431283316.txt
Command: PWD
Response: 257 "D:/inetpub/ftproot/SFTP/00137" is current directory.
Command: TYPE A
Response: 200 Command okay.
Command: PASV
Response: 227 Entering Passive Mode (xx,xx,xx,xx,19,160)
Command: LIST
Response: 150 Opening ASCII mode data connection for LIST return info.
Status: SSL connection established
Response: 226 Transfer complete.
Command: TYPE A
Response: 200 Command okay.
Command: PASV
Response: 227 Entering Passive Mode (xx,xx,xx,xx,19,161)
Command: STOR ACH431283316.txt
Response: 150 Opening BINARY mode data connection for D:/inetpub/ftproot/SFTP/00137/ACH431283316.txt (Offset = 0)
Status: SSL connection established
Response: 226 Transfer complete. (218442 bytes received.)
Status: Upload successful

Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted February 27, 2009 5:16 PM

The message from the server:
<--- 451 Requested action aborted. Unexpected processing error.

Usually means that the server had a problem doing something with the file being transferred. The server is supposed to provide a description of the problem, which it does ("Unexpected processing error.") Unfortunately it's not very helpful.

However this is strange:
---> STOR D:/inetpub/ftproot/SFTP/00137/ACH431283316.txt

Notice the D:\? That is very unusual for an FTP Server and not only that but FileZilla just stores with the file's name directly without the path. You should try modifying the DoStore method in the listview sample so that it reads:

RemoteFileName = GetFileName(dlg.Filename)
instead of:
RemoteFileName = Ftp1.Directory + GetFileName(dlg.Filename)

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Rick Adams

From: Burnsville, MN USA
Posts: 12
Member Since: 11/28/06
posted February 27, 2009 5:46 PM

Yep, I tried that, and it didn't work. (That looked strange to me too.)
Rick Adams

From: Burnsville, MN USA
Posts: 12
Member Since: 11/28/06
posted March 2, 2009 11:00 AM

After massaging the sample client program to do things more like Filezilla, I get this trace, which is almost identical to the Filezilla trace, except it gets the same error as before, partway through the file:

<--- 220 Momentum SSL/TLS FTP Service Ready. (Implicit Mode)

---> USER usergoeshere

<--- 331 User name okay, need password.

---> PASS passwordgoeshere

<--- 230 User logged in, proceed.

---> SYST

<--- 215 Windows_NT

---> FEAT

<--- 502 Command not implemented.

---> PBSZ 0

<--- 200 Command accepted, PBSZ=0

---> PROT P

<--- 200 Command okay.

---> PWD

<--- 257 "D:/inetpub/ftproot/SFTP/00137" is current directory.

---> TYPE A

<--- 200 Command okay.

---> PASV

<--- 227 Entering Passive Mode (xx,xx,xx,xx,19,142)

---> LIST

<--- 150 Opening ASCII mode data connection for LIST return info.

<--- 226 Transfer complete.

---> TYPE A

<--- 200 Command okay.

---> PASV

<--- 227 Entering Passive Mode (xx,xx,xx,xx,19,143)

---> STOR ACH431283316.txt

<--- 150 Opening BINARY mode data connection for D:/inetpub/ftproot/SFTP/00137/ACH431283316.txt (Offset = 0)

<--- 451 Requested action aborted. Unexpected processing error.
Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted March 2, 2009 5:09 PM

I tried to download a version of what I think they're using (http://www.momsys.com/MomSys/Products/Secure_File_Transfer.aspx) for bug check purposes but it seems it only runs on Windows 2000. We currently do not have a test machine with Windows 2000 on it and due to your support level I'm not authorized to request one to be set up. I don't really think this is a bug with our control though, I will concede that it is strange that Filezilla works but not our control.

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Rick Adams

From: Burnsville, MN USA
Posts: 12
Member Since: 11/28/06
posted March 4, 2009 10:37 AM

I have NO idea why this makes a difference, but when we used the raw IP number to connect to instead of the DNS we were given, it works.

Bad DNS records? Dunno. But I'll have to remember that one.
Rick Adams

From: Burnsville, MN USA
Posts: 12
Member Since: 11/28/06
posted March 5, 2009 8:49 AM

I spoke too soon. It only works once in a great while. We'll have to ask for an SFTP account rather than a FTPS account, because Dart's control won't work with this particular FTPS server.
Reply | PowerTCP SSL for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX