Topic "FTP error Can't open data connection"

Author Message
jason1024
[View user's profile]

Joined: 2010-05-13
Posts: 2
Location: Texas
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Are you having the problem with other FTP clients as well?
_________________
Martin Prikryl
jason1024
[View user's profile]

Joined: 2010-05-13
Posts: 2
Location: Texas
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License