Can't get directory listing

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
deckard
500 Command not understood
Posts: 5
Joined: 2008-09-19 08:52
First name: Rick
Last name: Deckard

Can't get directory listing

#1 Post by deckard » 2008-09-19 09:18

Hello everybody,

First, thanks to the community for doing such good work on FileZilla, it really became my most preferred FTP-Client throughout the last years.

But sad as it is, I'm now facing a problem in using it.
There is a FTP-server I'm connecting to, which is not properly handled by the Client.
To be precise, everything is working except directory listing. Although the server returns a directory list and although FileZilla reports the listing as successful, the remote-folder is empty.

Using command-line FTP-utility the listing works, a colleague of me is using a client named ALFTP which is working as well, but FileZilla doesn't.
Looking at the dir-listing from the command-line it seems that some foreign characters are used for the date-format, I assume that this is causing the problem (it's a FTP-Server located in Asia)

I've attached a Verbose log from the connection setup, including the raw directory-data. I would appreciate if one of you could give me a hint to solve the problem and finally make the server work with FileZilla again.

Thanks in Advance already
Rick

FileZilla connection-log
Status: Connecting to 162.243.137.7...
Trace: Going to execute "C:\Programme\FileZilla FTP Client\fzsftp.exe"
Response: fzSftp started
Trace: CSftpControlSocket::ConnectParseResponse(fzSftp started)
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ConnectSend()
Command: open "slopri@162.243.137.7" 22
Trace: Looking up host "162.243.137.7"
Trace: Connecting to 162.243.137.7 port 22
Trace: Server version: SSH-2.0-Sun_SSH_1.1
Trace: Using SSH protocol version 2
Trace: We claim version: SSH-2.0-PuTTY_Local:_Aug_30_2008_14:48:41
Trace: Doing Diffie-Hellman group exchange
Trace: Doing Diffie-Hellman key exchange with hash SHA-1
Command: Trust new Hostkey: Yes
Trace: Host key fingerprint is:
Trace: ssh-rsa 1024 14:2b:b5:9c:95:9f:48:ca:28:d9:66:27:0f:43:12:d8
Trace: Initialised AES-128 CBC client->server encryption
Trace: Initialised HMAC-SHA1 client->server MAC algorithm
Trace: Initialised AES-128 CBC server->client encryption
Trace: Initialised HMAC-SHA1 server->client MAC algorithm
Trace: Using keyboard-interactive authentication. inst_len: 0, num_prompts: 1
Command: Pass: *********
Trace: Access granted
Trace: Opened channel for session
Trace: Started a shell/command
Status: Connected to 162.243.137.7
Trace: CSftpControlSocket::ConnectParseResponse()
Trace: CSftpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Retrieving directory listing...
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ChangeDirSend()
Command: pwd
Response: Current directory is: "/home/slopri"
Trace: CSftpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CSftpControlSocket::ParseSubcommandResult(0)
Trace: CSftpControlSocket::ListSubcommandResult()
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ListSend()
Command: ls
Status: Listing directory /home/slopri
Listing: drwxr-x--- 5 slopri devlab 512 .
Listing: dr-xr-xr-x 9 root root 9 ..
Listing: -rw-r--r-- 1 slopri devlab 813 .profile
Listing: -rw------- 1 slopri devlab 284 .sh_history
Listing: -rw-r--r-- 1 slopri devlab 438 .cshrc
Listing: lrwxrwxrwx 1 slopri devlab 17 common
Listing: drwxr-xr-x 3 slopri devlab 512 ftp
Listing: drwxr-xr-x 2 slopri devlab 512 projects
Listing: drwxr-xr-x 3 slopri devlab 512 public_html
Listing: -rw-r--r-- 1 slopri devlab 776 .login
Trace: CSftpControlSocket::ListParseResponse()
Trace: CSftpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Directory listing successful
Windows cmd-line directory-listing:
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
├Ð 128
-rw-r--r-- 1 slopri devlab 438 2005│Ô 1┐¨ 13└¤ .cshrc
-rw-r--r-- 1 slopri devlab 776 2005│Ô 1┐¨ 13└¤ .login
-rw-r--r-- 1 slopri devlab 813 2005│Ô 1┐¨ 13└¤ .profile
-rw------- 1 slopri devlab 284 2005│Ô 1┐¨ 13└¤ .sh_history
lrwxrwxrwx 1 slopri devlab 17 2005│Ô 1┐¨ 13└¤ common -> /ccase/ccstg
/dev5
drwxr-xr-x 3 slopri devlab 512 2007│Ô 9┐¨ 14└¤ ftp
drwxr-xr-x 2 slopri devlab 512 2007│Ô 9┐¨ 14└¤ projects
drwxr-xr-x 3 slopri devlab 512 2005│Ô 1┐¨ 13└¤ public_html
226 Transfer complete.

User avatar
botg
Site Admin
Posts: 35540
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Can't get directory listing

#2 Post by botg » 2008-09-19 09:34

According to the log, you are not connecting to an FTP server, you are connecting to an SFTP server. Similar name, but completely different protocols.
Listing: drwxr-xr-x 3 slopri devlab 512 public_html
Your server uses a very exotic directory listing format. It is missing the modification date/time.

deckard
500 Command not understood
Posts: 5
Joined: 2008-09-19 08:52
First name: Rick
Last name: Deckard

Re: Can't get directory listing

#3 Post by deckard » 2008-09-19 10:27

Ah, okay. Thanks for clarification.

Is there anything I can do about it to make FileZilla parse the listing anway ?

Thx
Rick

deckard
500 Command not understood
Posts: 5
Joined: 2008-09-19 08:52
First name: Rick
Last name: Deckard

Re: Can't get directory listing

#4 Post by deckard » 2008-09-19 10:33

Sorry, just noted one thing.
Looking at the dir-listing of the cmd-line, isn't there a modification timestamp within that response ?
drwxr-xr-x 3 slopri devlab 512 2005│Ô 1┐¨ 13└¤ public_html
I checked the server using my colleagues's ALFTP client, and it indeed returned Jan 13th 2005 as date for the above folder...

User avatar
botg
Site Admin
Posts: 35540
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Can't get directory listing

#5 Post by botg » 2008-09-19 11:04

Different protocols are handled by different servers.

deckard
500 Command not understood
Posts: 5
Joined: 2008-09-19 08:52
First name: Rick
Last name: Deckard

Re: Can't get directory listing

#6 Post by deckard » 2008-09-19 11:42

Sorry, that's a bit too cryptic for me, any chance to get a complete answer ?

So, you mean FileZilla is not supposed to support it and won't support it ?

User avatar
botg
Site Admin
Posts: 35540
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Can't get directory listing

#7 Post by botg » 2008-09-19 11:57

Your colleague did not connect to the same server as you did with FileZilla. I did explain it in my initial reply.

deckard
500 Command not understood
Posts: 5
Joined: 2008-09-19 08:52
First name: Rick
Last name: Deckard

Re: Can't get directory listing

#8 Post by deckard » 2008-09-19 12:32

aha, I didn't read your initial reply like that, to me it just sounded as a correction to my initial statement.
However, now it's clear, thank you.
we both connected to the same IP, both via SFTP.
But I found that the server supports standard FTP-connections as well now (probably the connection I used on cmdline, right?), in addition to SFTP.

So, finally I found a workaround by using FTP instead of SFTP

Thanks for your help
Rick

Post Reply