Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > File Transfer

Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2009, 02:26 PM
caj caj is offline
Registered User
 
Join Date: Jul 2006
Posts: 7
SFXCL Command Failing with error 10054

Hi!

I'm stumped and hoping someone here can help. I am using the SFXCL command from SecureFX 6.2. The command I am using is:

sfxcl /Log C:\temp\cmsprod.log ftp://anonymous:account@servername.s...5/ex090729.log D:\NewsiteLog\test.log

The server log gives an error stating that the control connection closed with error code 10054. See below for the log.

I'm stumped because I can use a Windows command prompt to ftp and transfer data between the boxes without a problem. When I try to use the GUI I also receive an error. The client creates the connection, but the status message throws an error (Failed to open the directory: /. Error message: 425 Can't open data connection) while trying to retrieve directory entries.

Why can't Secure FX connect? Is it connecting and something else is wrong? Help!

Thank you!

caj

************************ ERROR LOG *********************
sfxcl /Log C:\temp\cmsprod.log ftp://anonymous:********@servname.se...5/ex090729.log D:\NewsiteLogs\test.log
2009-07-30 16:16:24, 00001: sfxcl version 6.2.1.215 (Official Release - April 28, 2009)
2009-07-30 16:16:24, 00001: Session 00001 established for transfer from ftp://anonymous:********@servername....5/ex090729.log
2009-07-30 16:16:24, 00001: Control connection successfully established.
2009-07-30 16:16:24, 00001: 220 Microsoft FTP Service
2009-07-30 16:16:24, 00001: Time zone of server could not be determined.
Connection to cmsprod02.sei.cmu.edu established.
2009-07-30 16:16:24, 00001: USER anonymous
Logging in ...
2009-07-30 16:16:24, 00001: 331 Anonymous access allowed, send identity (e-mail name) as password.
2009-07-30 16:16:24, 00001: PASS <password>
Logging in ...
2009-07-30 16:16:24, 00001: 230 Anonymous user logged in.
Logged in successfully.
2009-07-30 16:16:24, 00001: SYST
Determining the remote system type.
2009-07-30 16:16:24, 00001: 215 Windows_NT
2009-07-30 16:16:24, 00001: PWD
Determining the remote system type.
2009-07-30 16:16:24, 00001: 257 "/" is current directory.
Remote system type determined.
2009-07-30 16:16:24, 00001: Remote operating system type is Windows NT.
2009-07-30 16:16:24, 00001: FEAT
Determining the remote system extended features.
2009-07-30 16:16:24, 00001: 211-FEAT
2009-07-30 16:16:24, 00001: SIZE
2009-07-30 16:16:24, 00001: MDTM
2009-07-30 16:16:24, 00001: 211 END
Beginning transfer.
Changing directories...
2009-07-30 16:16:24, 00001: Transfer(0134DC68): CWD /IISLogs/W3SVC294841865/ex090729.log
2009-07-30 16:16:24, 00001: Transfer(0134DC68): 550 /IISLogs/W3SVC294841865/ex090729.log: The directory name is invalid.
Changing directories...
2009-07-30 16:16:24, 00001: Transfer(0134DC68): CWD /IISLogs/W3SVC294841865/
2009-07-30 16:16:24, 00001: Transfer(0134DC68): 250 CWD command successful.
Checking remote file status...
2009-07-30 16:16:24, 00001: Transfer(0134DC68): TYPE A
2009-07-30 16:16:24, 00001: Transfer(0134DC68): 200 Type set to A.
2009-07-30 16:16:24, 00001: Transfer(0134DC68): PASV
2009-07-30 16:16:24, 00001: Transfer(0134DC68): 227 Entering Passive Mode (10,64,25,18,4,126).
2009-07-30 16:16:24, 00001: Transfer(0134DC68): LIST ex090729.log
2009-07-30 16:16:36, 00001: Transfer(0134DC68): 425 Can't open data connection.
2009-07-30 16:16:36, 00001: Transfer(0134DC68): SIZE ex090729.log
2009-07-30 16:16:36, 00001: Transfer(0134DC68): 213 6269091
2009-07-30 16:16:36, 00001: Transfer(0134DC68): Opening file 'ex090729.log' for download as 'test.log'.
Transferring file...
2009-07-30 16:16:36, 00001: Transfer(0134DC68): PASV
2009-07-30 16:16:36, 00001: Transfer(0134DC68): 227 Entering Passive Mode (10,64,25,18,4,128).
2009-07-30 16:16:36, 00001: Transfer(0134DC68): RETR ex090729.log
2009-07-30 16:16:48, 00001: Transfer(0134DC68): 425 Can't open data connection.
Failed to open remote file...
File ex090729.log could not be opened by server.

425 Can't open data connection.

The file will not be transferred.
2009-07-30 16:16:48, 00001: Transfer(0134DC68): File ex090729.log could not be opened by server: 425 Can't open data connection.
2009-07-30 16:16:48, 00001: Transfer(0134DC68): SUMMARY: Attempted to transfer 1 files.
2009-07-30 16:16:48, 00001: Transfer(0134DC68): SUMMARY: Transferred 0 files successfully.
2009-07-30 16:16:48, 00001: Transfer(0134DC68): SUMMARY: ex090729.log: File ex090729.log could not be opened by server: 425 Can't open data connection.
2009-07-30 16:16:48, 00001: QUIT
2009-07-30 16:16:48, 00001: Control connection closed with error code 10054.
Reply With Quote
  #2  
Old 07-30-2009, 05:22 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,442
Hi Caj,

Could you disable 'Use outgoing data connections (PASV)' in the 'File Transfer / FTP' category of SecureFX's 'Global Options' and attempt your SFXCL transfer again?

Microsoft's FTP client uses 'PORT' by default, and disabling this option in SecureFX will set SFXCL to 'PORT' also.

What are the results of your transfer attempt using 'PORT'?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 08-03-2009, 12:38 PM
caj caj is offline
Registered User
 
Join Date: Jul 2006
Posts: 7
Hi Brenda!

I disabled PASV in the Global Options and then ran the SFXCL command again. It failed again. The log wasn't as verbose as the last test. See below:

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Program Files\SecureFX>sfxcl /Log C:\temp\cmsprod.log ftp://anonymous:webstat
s@cmsprod01.sei.cmu.edu/IISLogs/W3SV...5/ex090729.log D:\NewsiteLog\test.l
og
2009-08-03 14:19:19, 00001: sfxcl version 6.2.1.215 (Official Release - April 28
, 2009)
2009-08-03 14:19:19, 00001: Session 00001 established for transfer from ftp://an
onymous:********@cmsprod01.sei.cmu.edu/IISLogs/W3SVC294841865/ex090729.log
2009-08-03 14:19:19, 00001: Control connection successfully established.
2009-08-03 14:19:20, 00001: Control connection closed with error code 10054.

C:\Program Files\SecureFX>sfxcl /Log C:\temp\cmsprod.log ftp://anonymous:username@servername....5/ex090729.log D:\NewsiteLog\test.log
2009-08-03 14:19:49, 00001: sfxcl version 6.2.1.215 (Official Release - April 28, 2009)
2009-08-03 14:19:49, 00001: Session 00001 established for transfer from ftp://anonymous:********@servername....5/ex090729.log
2009-08-03 14:19:49, 00001: Control connection successfully established.
2009-08-03 14:19:50, 00001: Control connection closed with error code 10054.
###############################################
I also attempted a connection to the server using the GUI interface and the status bar states that it is establishing a connection, retries, and then fails.

I forgot to mention that the FTP server is running on a high, non-FTP port (8100). The configuration reflects the higher port.

What else can I try?

caj
Reply With Quote
  #4  
Old 08-03-2009, 02:34 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,442
Hi caj,

Code:
I forgot to mention that the FTP server is running on a high, non-FTP port (8100).
I believe the above bit of information will help to resolve this issue.

In the 'File Transfer / FTP' category of SecureCRT's Global Options, enable 'Limit local ports used for PORT connections', then change the low to 8100.

Since this option is not available in SFXCL, you will need to use "/S <session_path>" to replace the FTP URL reference.

If you change the low value of the local port range to 8100, what are the results of the connection attempt?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 08-04-2009, 09:17 AM
caj caj is offline
Registered User
 
Join Date: Jul 2006
Posts: 7
Quote:
Originally Posted by bgagnon
In the 'File Transfer / FTP' category of SecureCRT's Global Options, enable 'Limit local ports used for PORT connections', then change the low to 8100.

Since this option is not available in SFXCL, you will need to use "/S <session_path>" to replace the FTP URL reference.
Brenda,

I think that I need to make arrangements to arrange for the FTP server to be accessible on a common FTP port. Unless, I'm under the wrong impression, I need to automate access to this server so I need to use SFXCL.

Thank you for that information.

Carol
Reply With Quote
  #6  
Old 08-04-2009, 09:35 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,442
Hello Carol,

I apologize if I gave you the wrong impression. You can still use SFXCL, but in place of the URL form of referencing the source, you would use "/S <session_path>".

The session referenced in SFXCL would be configured with 'Limit local ports used for PORT connections' enabled and the port range "low" value set to 8100.

First, let's ascertain if setting the port range will resolve the issue so we know we have a valid session to use in the SFXCL command.

What were the results when you changed the port range and attempted to connect using the GUI interface?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #7  
Old 08-04-2009, 02:14 PM
caj caj is offline
Registered User
 
Join Date: Jul 2006
Posts: 7
Thanks for the clarification, Brenda. I did make the modification to the Global Options in SecureFX. I attempted a connection with the session and the server is in a state of waiting to retry the connection.

I did not see a place for verbose logs. I was generating those logfiles from using the SFXCL command.

Carol
Reply With Quote
  #8  
Old 08-04-2009, 02:41 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,442
Hi Carol,

In the 'File Transfer / Options / Advanced' category of SecureFX's Global Options, you can enable 'Enable log output to file' and assign a filename and location for the log file.

Would you send the resulting log output file as an attachment to e-mail to support@vandyke.com with "Attn Brenda - Forum Thread #3750" in the subject line?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:24 PM.