Topic "Using PASV FTP I get the error "Could not retrieve directory listing""

Author Message
sejshark
[View user's profile]

Joined: 2015-09-23
Posts: 2
Location: Harrisburg, PA
I am unable to connect properly using PASV FTP to my server. I am running WinSCP 5.7.5 on windows 7. It works fine it I turn off PASV mode. Any help would be appreciated.

Here is my log from WinSCP:

. 2015-09-23 15:51:45.248 --------------------------------------------------------------------------
. 2015-09-23 15:51:45.248 WinSCP Version 5.7.5 (Build 5665) (OS 6.1.7601 Service Pack 1 - Windows 7 Enterprise)
. 2015-09-23 15:51:45.248 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2015-09-23 15:51:45.249 Log level: Debug 2
. 2015-09-23 15:51:45.249 Local account: aaaaa\bbbbbbbb
. 2015-09-23 15:51:45.249 Working directory: C:\Program Files (x86)\WinSCP
. 2015-09-23 15:51:45.249 Process ID: 21548
. 2015-09-23 15:51:45.249 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2015-09-23 15:51:45.249 Time zone: Current: GMT-4, Standard: GMT-5 (Eastern Standard Time), DST: GMT-4 (Eastern Daylight Time), DST Start: 3/8/2015, DST End: 11/1/2015
. 2015-09-23 15:51:45.249 Login time: Wednesday, September 23, 2015 3:51:45 PM
. 2015-09-23 15:51:45.249 --------------------------------------------------------------------------
. 2015-09-23 15:51:45.249 Session name: ftp.xxxxxxx.com-passive ftp (Site)
. 2015-09-23 15:51:45.249 Host name: ftp.xxxxxxx.com (Port: 21)
. 2015-09-23 15:51:45.249 User name: aaaaaaaaa\xxxxxx (Password: No, Key file: No)
. 2015-09-23 15:51:45.249 Transfer Protocol: FTP
. 2015-09-23 15:51:45.249 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2015-09-23 15:51:45.249 Disable Nagle: Yes
. 2015-09-23 15:51:45.249 Proxy: none
. 2015-09-23 15:51:45.249 Send buffer: 262144
. 2015-09-23 15:51:45.249 UTF: 2
. 2015-09-23 15:51:45.249 FTP: FTPS: None; Passive: Yes [Force IP: A]; MLSD: A [List all: A]
. 2015-09-23 15:51:45.249 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2015-09-23 15:51:45.249 Cache directory changes: Yes, Permanent: Yes
. 2015-09-23 15:51:45.249 Timezone offset: 0h 0m
. 2015-09-23 15:51:45.249 --------------------------------------------------------------------------
. 2015-09-23 15:51:45.251 Session upkeep
. 2015-09-23 15:51:45.327 Connecting to ftp.xxxxxxxx.com ...
. 2015-09-23 15:51:45.327 Connected with ftp.xxxxxxxx.com. Waiting for welcome message...
< 2015-09-23 15:51:45.339 220 Welcome to ftp.xxxxxxxx.com
> 2015-09-23 15:51:45.339 USER aaaaaaaaaa\xxxxxxx
< 2015-09-23 15:51:45.384 331 Password required for aaaaaaaaaa\xxxxxx
> 2015-09-23 15:51:48.945 PASS ********
< 2015-09-23 15:51:49.019 230 User aaaaaaaaa\xxxxxxx logged in.
> 2015-09-23 15:51:49.019 SYST
< 2015-09-23 15:51:49.045 215 UNIX Type: L8
> 2015-09-23 15:51:49.045 FEAT
< 2015-09-23 15:51:49.078 211-Features:
< 2015-09-23 15:51:49.078 SIZE
< 2015-09-23 15:51:49.139 SITE
< 2015-09-23 15:51:49.139 MDTM
< 2015-09-23 15:51:49.139 MFMT
< 2015-09-23 15:51:49.142 AUTH TLS
< 2015-09-23 15:51:49.142 AUTH TLS-C
< 2015-09-23 15:51:49.142 AUTH SSL
< 2015-09-23 15:51:49.142 AUTH TLS-P
< 2015-09-23 15:51:49.142 PROT
< 2015-09-23 15:51:49.142 PBSZ
< 2015-09-23 15:51:49.142 XCRC
< 2015-09-23 15:51:49.142 MODE Z
< 2015-09-23 15:51:49.142 OPTS MODE Z
< 2015-09-23 15:51:49.142 UTF8
< 2015-09-23 15:51:49.142 211 END
> 2015-09-23 15:51:49.142 OPTS UTF8 ON
< 2015-09-23 15:51:49.178 200 UFT8 enabled.
. 2015-09-23 15:51:49.219 Connected
. 2015-09-23 15:51:49.220 Got reply 1 to the command 1
. 2015-09-23 15:51:49.220 --------------------------------------------------------------------------
. 2015-09-23 15:51:49.220 Using FTP protocol.
. 2015-09-23 15:51:49.220 Doing startup conversation with host.
> 2015-09-23 15:51:49.271 PWD
< 2015-09-23 15:51:49.295 257 "/" is current directory.
. 2015-09-23 15:51:49.295 Got reply 1 to the command 16
. 2015-09-23 15:51:49.295 Getting current directory name.
. 2015-09-23 15:51:49.421 Retrieving directory listing...
> 2015-09-23 15:51:49.421 TYPE A
< 2015-09-23 15:51:49.447 200 Type set to A
> 2015-09-23 15:51:49.447 PASV
. 2015-09-23 15:51:49.481 Disconnected from server
. 2015-09-23 15:51:49.481 Could not retrieve directory listing
. 2015-09-23 15:51:49.481 Got reply 1004 to the command 2
. 2015-09-23 15:51:49.481 LIST with -a failed, will try pure LIST
. 2015-09-23 15:51:49.572 Connecting to ftp.xxxxxxxx.com ...
. 2015-09-23 15:51:49.572 Connected with ftp.xxxxxxxx.com. Waiting for welcome message...
< 2015-09-23 15:51:49.580 220 Welcome to ftp.xxxxxxxx.com
> 2015-09-23 15:51:49.580 USER aaaaaaaaaa\xxxxxxxx
< 2015-09-23 15:51:49.608 331 Password required for aaaaaaaa\xxxxxxxx
> 2015-09-23 15:52:13.881 PASS ********
< 2015-09-23 15:52:13.944 230 User aaaaaaaaaaaa\xxxxxxx logged in.
> 2015-09-23 15:52:13.944 SYST
< 2015-09-23 15:52:13.968 215 UNIX Type: L8
> 2015-09-23 15:52:13.968 FEAT
< 2015-09-23 15:52:14.084 211-Features:
< 2015-09-23 15:52:14.086 SIZE
< 2015-09-23 15:52:14.089 SITE
< 2015-09-23 15:52:14.089 MDTM
< 2015-09-23 15:52:14.089 MFMT
< 2015-09-23 15:52:14.089 AUTH TLS
< 2015-09-23 15:52:14.089 AUTH TLS-C
< 2015-09-23 15:52:14.089 AUTH SSL
< 2015-09-23 15:52:14.089 AUTH TLS-P
< 2015-09-23 15:52:14.089 PROT
< 2015-09-23 15:52:14.089 PBSZ
< 2015-09-23 15:52:14.089 XCRC
< 2015-09-23 15:52:14.089 MODE Z
< 2015-09-23 15:52:14.089 OPTS MODE Z
< 2015-09-23 15:52:14.089 UTF8
< 2015-09-23 15:52:14.089 211 END
> 2015-09-23 15:52:14.089 OPTS UTF8 ON
< 2015-09-23 15:52:14.108 200 UFT8 enabled.
. 2015-09-23 15:52:14.135 Connected
. 2015-09-23 15:52:14.135 Got reply 1 to the command 1
. 2015-09-23 15:52:14.135 Doing startup conversation with host.
> 2015-09-23 15:52:14.187 PWD
< 2015-09-23 15:52:14.303 257 "/" is current directory.
. 2015-09-23 15:52:14.303 Got reply 1 to the command 16
. 2015-09-23 15:52:14.303 Changing directory to "/".
> 2015-09-23 15:52:14.303 CWD /
< 2015-09-23 15:52:14.326 250 Directory changed to "/".
. 2015-09-23 15:52:14.326 Got reply 1 to the command 16
. 2015-09-23 15:52:14.326 Getting current directory name.
> 2015-09-23 15:52:14.326 PWD
< 2015-09-23 15:52:14.350 257 "/" is current directory.
. 2015-09-23 15:52:14.350 Got reply 1 to the command 16
. 2015-09-23 15:52:14.350 Startup conversation with host finished.
. 2015-09-23 15:52:14.445 Retrieving directory listing...
> 2015-09-23 15:52:14.445 TYPE A
< 2015-09-23 15:52:14.592 200 Type set to A
> 2015-09-23 15:52:14.592 PASV
. 2015-09-23 15:52:14.611 Disconnected from server
. 2015-09-23 15:52:14.611 Could not retrieve directory listing
. 2015-09-23 15:52:14.611 Got reply 1004 to the command 2
* 2015-09-23 15:52:14.745 (EFatal) **Lost connection.**
* 2015-09-23 15:52:14.745 Disconnected from server
* 2015-09-23 15:52:14.745 Could not retrieve directory listing
* 2015-09-23 15:52:14.745 Error listing directory '/'.

Last edited by sejshark on 2015-09-25 13:58; edited 1 time in total
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Does it work using passive mode using any other FTP client?
sejshark
[View user's profile]

Joined: 2015-09-23
Posts: 2
Location: Harrisburg, PA
prikryl wrote:
Does it work using passive mode using any other FTP client?

I haven't tried another client. I will have to download one and try it.

I downloaded SmartFTP and tried it and it did not work. Looks like it might be on the server end.

It turns out that the problem was a firewall issue on the server side.
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