Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

cvlucian

Re: "Timeout; unable to retrieve directory listing"

cvlucian wrote:

This is the error :? :

Timeout detected.
Could not retrieve directory listing
Opening ASCII mode data connection.
Error listing directory '/'.


Note that I enabled passive mode and disabled listing of hidden files...
cvlucian

"Timeout; unable to retrieve directory listing"

This is the error :? :

Timeout detected.
Could not retrieve directory listing
Opening ASCII mode data connection.
Error listing directory '/'.
cvlucian

"Timeout; unable to retrieve directory listing"

Hi,

I'm using WinSCP 4.2.8. I'm trying to connect through FTPES to a IIS Server.
Note that simple FTP is working.

Log:
--------------------------------------------------------------------------
WinSCP Version 4.2.8 (Build 818) (OS 5.1.2600 Service Pack 3)
Login time: Tuesday, September 28, 2010 5:10:24 PM
--------------------------------------------------------------------------
Session name: Paynet FTPSecure
Host name: 192.168.XXX.XXX (Port: 21)
User name: abcd (Password: Yes, Key file: No)
Tunnel: No
Transfer Protocol: FTP
Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
Proxy: none
FTP: FTPS: Explicit SSL; Passive: Yes [Force IP: No]
Local directory: default, Remote directory: home, Update: No, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
DST mode: 1
--------------------------------------------------------------------------
Connecting to 192.168.XXX.XXX ...
m_pSslLayer changed state from 0 to 1
m_pSslLayer changed state from 1 to 2
m_pSslLayer changed state from 2 to 4
Connected with 192.168.XXX.XXX, negotiating SSL connection...
220 Microsoft FTP Service
AUTH SSL
AUTH command ok. Expecting TLS Negotiation.
SSL_connect: SSLv3 read server hello A
SSL_connect: SSLv3 read server certificate A
SSL_connect: SSLv3 read server done A
SSL_connect: SSLv3 write client key exchange A
SSL_connect: SSLv3 write change cipher spec A
SSL_connect: SSLv3 write finished A
SSL_connect: SSLv3 flush data
SSL_connect: SSLv3 read finished A
Using TLSv1, cipher TLSv1/SSLv3: AES128-SHA, 2048 bit RSA
SSL connection established. Waiting for welcome message...
USER abcd
331 Password required for abcd.
PASS *********
230 User logged in.
SYST
215 Windows_NT
FEAT
211-Extended features supported:
LANG EN*
UTF8
AUTH TLS;TLS-C;SSL;TLS-P;
PBSZ
PROT C;P;
CCC
HOST
SIZE
MDTM
REST STREAM
211 END
OPTS UTF8 ON
200 OPTS UTF8 command successful - UTF8 encoding now ON.
PBSZ 0
200 PBSZ command successful.
PROT P
200 PROT command successful.
Connected
Got reply 1 to the command 1
--------------------------------------------------------------------------
Using FTP protocol.
Doing startup conversation with host.
PWD
257 "/" is current directory.
Got reply 1 to the command 16
Getting current directory name.
Retrieving directory listing...
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,168,52,202,198,76).
LIST
150 Opening ASCII mode data connection.
Timeout detected.
Could not retrieve directory listing
Got reply 1004 to the command 2
(ESshFatal) Lost connection.
Timeout detected.
Could not retrieve directory listing
Opening ASCII mode data connection.
Error listing directory '/'.
mxmxmxmxmx

THX

Disabling "show hidden files" solved the problem THX
Guest

Problem solved

Your suggestion solved the problem. Many thanks.

(It took me a while before I could test it because the failure is only occurring when I connect via one particular network).
Guest

Hidden files

Thanks for the suggestion, Martin. Is that a WinSCP option? - if so I can't find it.
martin

Can you try disabling listing of hidden files?
Guest

Timeout; unable to retrieve directory listing

Using WinSCP version 4.2.8 (and a rather older version) I get Timeout detected, unable to retrieve directory listing.

This is when connected to an office LAN. From home, the same client talks to the same FTP server fine.

With Filezilla, I had the same problem, and solved it by setting Active mode. Filezilla has three options (default, active, passive). In WinSCP, the "passive mode" checkbox is unchecked; changing it makes no difference.

Here is the WinSCP log:

. 2010-09-02 14:18:43.274 --------------------------------------------------------------------------
. 2010-09-02 14:18:43.274 WinSCP Version 4.2.8 (Build 818) (OS 6.1.7600)
. 2010-09-02 14:18:43.274 Login time: 02 September 2010 14:18:43
. 2010-09-02 14:18:43.274 --------------------------------------------------------------------------
. 2010-09-02 14:18:43.274 Session name: s******a
. 2010-09-02 14:18:43.274 Host name: ftp.s******a.com (Port: 21)
. 2010-09-02 14:18:43.274 User name: saxoni (Password: Yes, Key file: No)
. 2010-09-02 14:18:43.274 Tunnel: No
. 2010-09-02 14:18:43.274 Transfer Protocol: FTP
. 2010-09-02 14:18:43.274 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2010-09-02 14:18:43.274 Proxy: none
. 2010-09-02 14:18:43.274 FTP: FTPS: None; Passive: No [Force IP: No]
. 2010-09-02 14:18:43.274 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-09-02 14:18:43.274 Cache directory changes: Yes, Permanent: Yes
. 2010-09-02 14:18:43.274 DST mode: 1
. 2010-09-02 14:18:43.274 --------------------------------------------------------------------------
. 2010-09-02 14:18:43.314 Connecting to ftp.s******a.com ...
. 2010-09-02 14:18:43.319 Connected with ftp.s******a.com. Waiting for welcome message...
< 2010-09-02 14:18:43.319 220-Microsoft FTP Service
< 2010-09-02 14:18:43.516 220 S******e FTP Service
> 2010-09-02 14:18:43.519 USER *******
< 2010-09-02 14:18:43.531 331 Password required for s****.
> 2010-09-02 14:18:43.531 PASS ********
< 2010-09-02 14:18:43.581 230 User ****** logged in.
> 2010-09-02 14:18:43.581 SYST
< 2010-09-02 14:18:43.594 215 Windows_NT
> 2010-09-02 14:18:43.594 FEAT
< 2010-09-02 14:18:43.606 211-FEAT
< 2010-09-02 14:18:43.844 SIZE
< 2010-09-02 14:18:43.844 MDTM
< 2010-09-02 14:18:43.844 211 END
. 2010-09-02 14:18:43.846 Connected
. 2010-09-02 14:18:43.846 Got reply 1 to the command 1
. 2010-09-02 14:18:43.846 --------------------------------------------------------------------------
. 2010-09-02 14:18:43.846 Using FTP protocol.
. 2010-09-02 14:18:43.846 Doing startup conversation with host.
> 2010-09-02 14:18:43.851 PWD
< 2010-09-02 14:18:43.866 257 "/s*****" is current directory.
. 2010-09-02 14:18:43.866 Got reply 1 to the command 16
. 2010-09-02 14:18:43.871 Getting current directory name.
. 2010-09-02 14:18:43.876 Retrieving directory listing...
> 2010-09-02 14:18:43.876 TYPE A
< 2010-09-02 14:18:43.884 200 Type set to A.
> 2010-09-02 14:18:43.886 PORT 192,168,0,100,194,26
< 2010-09-02 14:18:43.899 200 PORT command successful.
> 2010-09-02 14:18:43.899 LIST -a
< 2010-09-02 14:18:43.914 150 Opening ASCII mode data connection for /bin/ls.
. 2010-09-02 14:18:58.479 Timeout detected.
. 2010-09-02 14:18:58.479 Could not retrieve directory listing
. 2010-09-02 14:18:58.479 Got reply 1004 to the command 2
* 2010-09-02 14:18:58.484 (ESshFatal) Lost connection.
* 2010-09-02 14:18:58.484 Timeout detected.
* 2010-09-02 14:18:58.484 Could not retrieve directory listing
* 2010-09-02 14:18:58.484 Opening ASCII mode data connection for /bin/ls.
* 2010-09-02 14:18:58.484 Error listing directory '/*****'.

Here is the log from Filezilla:

Status: Resolving address of ftp.s*****a.com
Status: Connecting to 217.**.**.**:21...
Status: Connection established, waiting for welcome message...
Response: 220-Microsoft FTP Service
Response: 220 S*****e FTP Service
Command: USER saxoni
Response: 331 Password required for saxoni.
Command: PASS ********
Response: 230 User s***** logged in.
Command: SYST
Response: 215 Windows_NT
Command: FEAT
Response: 211-FEAT
Response: SIZE
Response: MDTM
Response: 211 END
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/s*****i" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PORT 192,168,0,100,194,34
Response: 200 PORT command successful.
Command: LIST
Response: 150 Opening BINARY mode data connection for /bin/ls.
Response: 226 Transfer complete.
Status: Directory listing successful