Could not retrieve directory listing. Opening ASCII mode dat

Advertisement

mattjtyler
Joined:
Posts:
2
Location:
Milton Keynes, UK

Could not retrieve directory listing. Opening ASCII mode dat

I'm trying to connect to a SFTP client. I can connect and get a directory listing with FileZilla, but when trying to get a directory listing with WinSCP I get the error:

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

I'm using version 4.2.2 and I've set Passive mode. Eventually I'll automate this (hence wanting to use WinSCP), however I'm using the GUI at the moment. Below are the logs from firstly FileZilla, followed by WinSCP. The difference appears to be that on FileZilla it's reporting '150 Opening BINARY mode data connection', however on WinSCP it's reporting '150 Opening ASCII mode data connection'. I've tried changing the transfer mode but this hasn't made a difference.

FileZilla
Status: Resolving address of data.****************.com
Status: Connecting to 62.216.253.139:990...
Status: Connection established, initializing TLS...
Status: Verifying certificate...
Status: TLS/SSL connection established, waiting for welcome message...
Response: 220-************ ****'s Secure FTP Service. No Unauthorised Access.
Response: 220 All connection attempts are logged.
Command: USER FutureNews
Response: 331 Password required for FutureNews.
Command: PASS ********
Response: 230-Welcome to ************ ****'s Secure FTP Service runnning on Hayeswater
Response: 230 User logged in.
Command: OPTS UTF8 ON
Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Command: PBSZ 0
Response: 200 PBSZ command successful.
Command: PROT P
Response: 200 PROT command successful.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (10,0,0,102,192,119).
Status: Server sent passive reply with unroutable address. Using server address instead.
Command: LIST
Response: 150 Opening BINARY mode data connection.
Response: 226 Transfer complete.
Status: Directory listing successful


WinSCP:
. 2009-08-13 18:14:23.357 --------------------------------------------------------------------------
. 2009-08-13 18:14:23.357 WinSCP Version 4.2.2 (Build 480) (OS 5.1.2600 Service Pack 3)
. 2009-08-13 18:14:23.357 Login time: 13 August 2009 18:14:23
. 2009-08-13 18:14:23.357 --------------------------------------------------------------------------
. 2009-08-13 18:14:23.357 Session name: FutureNews@data.****************.com
. 2009-08-13 18:14:23.357 Host name: data.****************.com (Port: 990)
. 2009-08-13 18:14:23.357 User name: FutureNews (Password: Yes, Key file: No)
. 2009-08-13 18:14:23.357 Tunnel: No
. 2009-08-13 18:14:23.357 Transfer Protocol: FTP
. 2009-08-13 18:14:23.357 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2009-08-13 18:14:23.357 Proxy: none
. 2009-08-13 18:14:23.357 FTP: FTPS: Implicit SSL/TLS; Passive: Yes
. 2009-08-13 18:14:23.357 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-08-13 18:14:23.357 Cache directory changes: Yes, Permanent: Yes
. 2009-08-13 18:14:23.357 DST mode: 1
. 2009-08-13 18:14:23.357 --------------------------------------------------------------------------
. 2009-08-13 18:14:23.404 Connecting to data.****************.com:990 ...
. 2009-08-13 18:14:23.404 Connected with data.****************.com:990, negotiating SSL connection...
. 2009-08-13 18:14:23.420 SSL connection established. Waiting for welcome message...
< 2009-08-13 18:14:23.420 220-************ ****'s Secure FTP Service. No Unauthorised Access.
< 2009-08-13 18:14:23.420 220 All connection attempts are logged.
> 2009-08-13 18:14:23.420 USER FutureNews
< 2009-08-13 18:14:23.436 331 Password required for FutureNews.
> 2009-08-13 18:14:23.436 PASS ********
< 2009-08-13 18:14:24.529 230-Welcome to ************ ****'s Secure FTP Service runnning on Hayeswater
< 2009-08-13 18:14:24.529 230 User logged in.
> 2009-08-13 18:14:24.529 SYST
< 2009-08-13 18:14:24.545 215 Windows_NT
> 2009-08-13 18:14:24.545 FEAT
< 2009-08-13 18:14:24.561 211-Extended features supported:
< 2009-08-13 18:14:24.561 LANG EN*
< 2009-08-13 18:14:24.561 UTF8
< 2009-08-13 18:14:24.561 AUTH TLS;TLS-C;SSL;TLS-P;
< 2009-08-13 18:14:24.561 PBSZ
< 2009-08-13 18:14:24.561 PROT C;P;
< 2009-08-13 18:14:24.561 CCC
< 2009-08-13 18:14:24.561 HOST
< 2009-08-13 18:14:24.561 SIZE
< 2009-08-13 18:14:24.561 MDTM
< 2009-08-13 18:14:24.561 REST STREAM
< 2009-08-13 18:14:24.561 211 END
> 2009-08-13 18:14:24.561 OPTS UTF8 ON
< 2009-08-13 18:14:24.592 200 OPTS UTF8 command successful - UTF8 encoding now ON.
> 2009-08-13 18:14:24.592 PBSZ 0
< 2009-08-13 18:14:24.607 200 PBSZ command successful.
> 2009-08-13 18:14:24.607 PROT P
< 2009-08-13 18:14:24.623 200 PROT command successful.
. 2009-08-13 18:14:24.623 Connected
. 2009-08-13 18:14:24.623 --------------------------------------------------------------------------
. 2009-08-13 18:14:24.623 Using FTP protocol.
. 2009-08-13 18:14:24.623 Doing startup conversation with host.
> 2009-08-13 18:14:24.623 PWD
< 2009-08-13 18:14:24.639 257 "/" is current directory.
. 2009-08-13 18:14:24.639 Getting current directory name.
. 2009-08-13 18:14:24.639 Retrieving directory listing...
> 2009-08-13 18:14:24.639 TYPE A
< 2009-08-13 18:14:24.654 200 Type set to A.
> 2009-08-13 18:14:24.654 PASV
< 2009-08-13 18:14:24.670 227 Entering Passive Mode (10,0,0,102,192,120).
> 2009-08-13 18:14:24.670 LIST
< 2009-08-13 18:14:24.701 150 Opening ASCII mode data connection.
. 2009-08-13 18:14:39.357 Timeout detected.
. 2009-08-13 18:14:39.357 Could not retrieve directory listing
* 2009-08-13 18:14:39.357 (ESshFatal) Lost connection.
* 2009-08-13 18:14:39.357 Timeout detected.
* 2009-08-13 18:14:39.357 Could not retrieve directory listing
* 2009-08-13 18:14:39.357 Opening ASCII mode data connection.
* 2009-08-13 18:14:39.357 Error listing directory '/'.
. 2009-08-13 18:14:44.373 Connecting to data.****************.com:990 ...
. 2009-08-13 18:14:44.389 Connected with data.****************.com:990, negotiating SSL connection...
. 2009-08-13 18:14:44.420 SSL connection established. Waiting for welcome message...
< 2009-08-13 18:14:44.420 220-************ ****'s Secure FTP Service. No Unauthorised Access.
< 2009-08-13 18:14:44.420 220 All connection attempts are logged.
> 2009-08-13 18:14:44.420 USER FutureNews
< 2009-08-13 18:14:44.435 331 Password required for FutureNews.
> 2009-08-13 18:14:44.435 PASS ********
< 2009-08-13 18:14:45.545 230-Welcome to ************ ****'s Secure FTP Service runnning on Hayeswater
< 2009-08-13 18:14:45.545 230 User logged in.
> 2009-08-13 18:14:45.545 SYST
< 2009-08-13 18:14:45.560 215 Windows_NT
> 2009-08-13 18:14:45.560 FEAT
< 2009-08-13 18:14:45.576 211-Extended features supported:
< 2009-08-13 18:14:45.576 LANG EN*
< 2009-08-13 18:14:45.576 UTF8
< 2009-08-13 18:14:45.576 AUTH TLS;TLS-C;SSL;TLS-P;
< 2009-08-13 18:14:45.576 PBSZ
< 2009-08-13 18:14:45.576 PROT C;P;
< 2009-08-13 18:14:45.576 CCC
< 2009-08-13 18:14:45.576 HOST
< 2009-08-13 18:14:45.576 SIZE
< 2009-08-13 18:14:45.576 MDTM
< 2009-08-13 18:14:45.576 REST STREAM
< 2009-08-13 18:14:45.576 211 END
> 2009-08-13 18:14:45.576 OPTS UTF8 ON
< 2009-08-13 18:14:45.592 200 OPTS UTF8 command successful - UTF8 encoding now ON.
> 2009-08-13 18:14:45.592 PBSZ 0
< 2009-08-13 18:14:45.607 200 PBSZ command successful.
> 2009-08-13 18:14:45.607 PROT P
< 2009-08-13 18:14:45.982 200 PROT command successful.
. 2009-08-13 18:14:45.982 Connected
. 2009-08-13 18:14:45.982 Doing startup conversation with host.
. 2009-08-13 18:14:45.982 Getting current directory name.
. 2009-08-13 18:14:45.998 Retrieving directory listing...
> 2009-08-13 18:14:45.998 PWD
< 2009-08-13 18:14:45.998 257 "/" is current directory.
> 2009-08-13 18:14:46.014 TYPE A
< 2009-08-13 18:14:46.029 200 Type set to A.
> 2009-08-13 18:14:46.029 PASV
< 2009-08-13 18:14:46.045 227 Entering Passive Mode (10,0,0,102,192,121).
> 2009-08-13 18:14:46.045 LIST
< 2009-08-13 18:14:46.060 150 Opening ASCII mode data connection.
. 2009-08-13 18:15:01.357 Timeout detected.
. 2009-08-13 18:15:01.357 Could not retrieve directory listing
* 2009-08-13 18:15:01.357 (ESshFatal) Lost connection.
* 2009-08-13 18:15:01.357 Timeout detected.
* 2009-08-13 18:15:01.357 Could not retrieve directory listing
* 2009-08-13 18:15:01.357 Opening ASCII mode data connection.
* 2009-08-13 18:15:01.357 Error listing directory '/'.
Last edited by mattjtyler on 2009-08-14 09:09; edited 1 time in total

Reply with quote

Advertisement

Telepath
Donor
Joined:
Posts:
13
Location:
Hellfire

Re: Could not retrieve directory listing. Opening ASCII mode dat

mattjtyler wrote:

2009-08-13 18:15:01.357 (ESshFatal) Lost connection.
change ssh rsa to ssh-rsa if happens, and be aware of line break in key

dont know filezillas key-handling...
but, maybe key-handling error.

mattjtyler wrote:

2009-08-13 18:14:46.029 PASV
2009-08-13 18:14:46.045 227 Entering Passive Mode (10,0,0,102,192,121).
try active mode
_________________
LG
TT

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,552
Location:
Prague, Czechia

Re: Could not retrieve directory listing. Opening ASCII mode dat

Can you also post a log file from your server? Both for Filezilla and WinSCP.

Reply with quote

mattjtyler
Joined:
Posts:
2
Location:
Milton Keynes, UK

Re: Could not retrieve directory listing. Opening ASCII mode dat

I tried it this morning without making any changes and it worked. Whereas it wouldn't connect at all yesterday with WinSCP (but every time with FileZilla) it's connecting virtually every time today (I repeated closing and reopening many times and it only failed once). Perhaps it's an intermittent fault. I've got it connecting and downloading files in script which I will set to run every day. If the problem occurs again I'll post log files from the server as requested.

Thanks for the help

Reply with quote

Advertisement

You can post new topics in this forum