FTP error Can't open data connection

Advertisement

jason1024
Joined:
Posts:
2
Location:
Texas

FTP error Can't open data connection

I rarely get script errors with sftp, but often with FTP. While connecting to a few FTP sites I often get this error:
"Could not retrieve directory listing","Can't open data connection." I get this with active or passive settings.

Sometimes I am able to connect, but I often get the error so it's hit and miss. Through the WinSCP interface I often get the error while logging in or changing directories, but sometimes I can dismiss the error and I'm able to continue working. Any suggestions?

Here is a full log (edited)

. 2010-05-13 13:53:54.262 --------------------------------------------------------------------------
. 2010-05-13 13:53:54.262 WinSCP Version 4.2.7 (Build 758) (OS 5.1.2600 Service Pack 3)
. 2010-05-13 13:53:54.262 Login time: Thursday, May 13, 2010 1:53:54 PM
. 2010-05-13 13:53:54.262 --------------------------------------------------------------------------
. 2010-05-13 13:53:54.262 Session name: ClientName
. 2010-05-13 13:53:54.262 Host name: xxx.xxx.xxx.xxx (Port: 21)
. 2010-05-13 13:53:54.262 User name: Domain\UserName (Password: Yes, Key file: No)
. 2010-05-13 13:53:54.262 Tunnel: No
. 2010-05-13 13:53:54.262 Transfer Protocol: FTP
. 2010-05-13 13:53:54.262 Ping type: C, Ping interval: 30 sec; Timeout: 60 sec
. 2010-05-13 13:53:54.262 Proxy: none
. 2010-05-13 13:53:54.262 FTP: FTPS: None; Passive: Yes [Force IP: No]
. 2010-05-13 13:53:54.262 Local directory: C:\path\ClientName, Remote directory: /path/Customer, Update: No, Cache: Yes
. 2010-05-13 13:53:54.262 Cache directory changes: Yes, Permanent: Yes
. 2010-05-13 13:53:54.262 DST mode: 1
. 2010-05-13 13:53:54.262 --------------------------------------------------------------------------
. 2010-05-13 13:53:54.262 Connecting to xxx.xxx.xxx.xxx ...
. 2010-05-13 13:53:54.277 Connected with xxx.xxx.xxx.xxx. Waiting for welcome message...
< 2010-05-13 13:53:54.293 220 Microsoft FTP Service
> 2010-05-13 13:53:54.293 USER Domain\UserName
< 2010-05-13 13:53:54.324 331 Password required for Domain\UserName.
> 2010-05-13 13:53:54.324 PASS *********
< 2010-05-13 13:53:54.340 230 User Domain\UserName logged in.
> 2010-05-13 13:53:54.340 SYST
< 2010-05-13 13:53:54.355 215 Windows_NT
> 2010-05-13 13:53:54.355 FEAT
< 2010-05-13 13:53:54.371 211-FEAT
< 2010-05-13 13:53:54.543 SIZE
< 2010-05-13 13:53:54.543 MDTM
< 2010-05-13 13:53:54.543 211 END
. 2010-05-13 13:53:54.543 Connected
. 2010-05-13 13:53:54.543 --------------------------------------------------------------------------
. 2010-05-13 13:53:54.543 Using FTP protocol.
. 2010-05-13 13:53:54.543 Doing startup conversation with host.
> 2010-05-13 13:53:54.543 PWD
< 2010-05-13 13:53:54.559 257 "/" is current directory.
. 2010-05-13 13:53:54.559 Changing directory to "/path/Customer".
> 2010-05-13 13:53:54.559 CWD /path/Customer
< 2010-05-13 13:53:54.574 250 CWD command successful.
. 2010-05-13 13:53:54.574 Getting current directory name.
> 2010-05-13 13:53:54.574 PWD
< 2010-05-13 13:53:54.590 257 "/path/Customer" is current directory.
. 2010-05-13 13:53:54.590 Startup conversation with host finished.
. 2010-05-13 13:53:54.590 Cached directory change via "/path/Customer/Incoming/" to "/path/Customer/Incoming".
. 2010-05-13 13:53:54.590 Getting current directory name.
. 2010-05-13 13:53:54.590 Retrieving directory listing...
> 2010-05-13 13:53:54.590 CWD /path/Customer/Incoming/
< 2010-05-13 13:53:54.605 250 CWD command successful.
> 2010-05-13 13:53:54.605 PWD
< 2010-05-13 13:53:54.621 257 "/path/Customer/Incoming" is current directory.
> 2010-05-13 13:53:54.621 TYPE A
< 2010-05-13 13:53:54.637 200 Type set to A.
> 2010-05-13 13:53:54.637 PASV
< 2010-05-13 13:53:54.652 227 Entering Passive Mode (10,20,10,81,18,69).
> 2010-05-13 13:53:54.652 LIST -a
< 2010-05-13 13:54:06.777 425 Can't open data connection.
. 2010-05-13 13:54:06.777 Could not retrieve directory listing
. 2010-05-13 13:54:06.777 Retrieving directory listing...
> 2010-05-13 13:54:06.777 TYPE A
< 2010-05-13 13:54:07.559 200 Type set to A.
> 2010-05-13 13:54:07.559 PASV
< 2010-05-13 13:54:07.574 227 Entering Passive Mode (10,20,10,81,18,94).
> 2010-05-13 13:54:07.574 LIST
< 2010-05-13 13:54:19.684 425 Can't open data connection.
. 2010-05-13 13:54:19.684 Could not retrieve directory listing
. 2010-05-13 13:54:19.684 Asking user:
. 2010-05-13 13:54:19.684 Error listing directory '/path/Customer/Incoming'. ("Could not retrieve directory listing","Can't open data connection.")
. 2010-05-13 13:54:19.699 Disconnected from server

Reply with quote

Advertisement

martin
Site Admin
martin avatar

jason1024 wrote:

No I only use WinSCP for scheduled ftp scripts. Do you have a recommendation on some other software to try? Thanks in advance for your help.
No I just ask to know if it is WinSCP-related or not.

Reply with quote

Advertisement

You can post new topics in this forum