Error Listing Empty Directory On Complete FTP Server
---------------------------
Error listing directory '/'.
---------------------------
Server returned empty listing for directory '/'.
---------------------------
Up until recently, this would cause the server to drop the connection. The developers of Complete FTP Server were kind enough to provide an internal update to me which prevents the disconnection but does not remove the error. They have researched the problem and claim it is a bug in WinSCP that is causing this problem as only this client has caused the issue and it has happened with several of their customers. I am running WinSCP 4.3.3. Their support representative said the following to me:
"The problem is that WinSCP sends a request to list the directory "/..", which is an invalid directory. This is clearly an error on the part of WinSCP, but CompleteFTP 5.2.1 then throws a hissy-fit and drops the connection, instead of calmly informing WinSCP of its mistake."
For now, the problem is manageable as while the error is shown, the clients are not disconnected. However, would it be possible to look into this and hopefully come up with a solution to it? I can provide the information to contact the Complete FTP Server support guys I've been dealing with on request. Should it help as well, I'll also put a WinSCP log below. Thanks very much!
. 2011-07-19 08:39:03.543 --------------------------------------------------------------------------
. 2011-07-19 08:39:03.544 WinSCP Version 4.3.3 (Build 1340) (OS 6.1.7601 Service Pack 1)
. 2011-07-19 08:39:03.545 Configuration: C:\COMSTUFF\WinSCP.ini
. 2011-07-19 08:39:03.545 Login time: July-19-11 8:39:03 AM
. 2011-07-19 08:39:03.545 --------------------------------------------------------------------------
. 2011-07-19 08:39:03.546 Session name: WESA (Stored session)
. 2011-07-19 08:39:03.546 Host name: transfers.wesa.ca (Port: 22)
. 2011-07-19 08:39:03.546 User name: (Password: No, Key file: No)
. 2011-07-19 08:39:03.546 Tunnel: No
. 2011-07-19 08:39:03.546 Transfer Protocol: SFTP
. 2011-07-19 08:39:03.547 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2011-07-19 08:39:03.547 Proxy: none
. 2011-07-19 08:39:03.547 SSH protocol version: 2; Compression: No
. 2011-07-19 08:39:03.547 Bypass authentication: No
. 2011-07-19 08:39:03.547 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2011-07-19 08:39:03.547 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2011-07-19 08:39:03.547 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2011-07-19 08:39:03.547 SFTP Bugs: -,-
. 2011-07-19 08:39:03.547 Return code variable: Autodetect; Lookup user groups: Yes
. 2011-07-19 08:39:03.547 Shell: default
. 2011-07-19 08:39:03.547 EOL: 0, UTF: 2
. 2011-07-19 08:39:03.547 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2011-07-19 08:39:03.547 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2011-07-19 08:39:03.547 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-07-19 08:39:03.547 Cache directory changes: Yes, Permanent: Yes
. 2011-07-19 08:39:03.547 DST mode: 1
. 2011-07-19 08:39:03.547 --------------------------------------------------------------------------
. 2011-07-19 08:39:03.632 Looking up host "transfers.wesa.ca"
. 2011-07-19 08:39:03.648 Connecting to 10.101.1.21 port 22
. 2011-07-19 08:39:03.669 Server version: SSH-2.0-CompleteFTP-5.2.1
. 2011-07-19 08:39:03.669 We believe remote version has SSH-2 ignore bug
. 2011-07-19 08:39:03.669 Using SSH protocol version 2
. 2011-07-19 08:39:03.669 We claim version: SSH-2.0-WinSCP_release_4.3.3
. 2011-07-19 08:39:03.673 Doing Diffie-Hellman group exchange
. 2011-07-19 08:39:03.819 Doing Diffie-Hellman key exchange with hash SHA-1
. 2011-07-19 08:39:04.162 Host key fingerprint is:
. 2011-07-19 08:39:04.162 ssh-rsa 1024 cf:89:84:7c:a5:7d:72:fe:b5:07:af:2a:ba:b6:86:ad
. 2011-07-19 08:39:04.162 Initialised AES-256 SDCTR client->server encryption
. 2011-07-19 08:39:04.163 Initialised HMAC-SHA1 client->server MAC algorithm
. 2011-07-19 08:39:04.165 Initialised AES-256 SDCTR server->client encryption
. 2011-07-19 08:39:04.165 Initialised HMAC-SHA1 server->client MAC algorithm
. 2011-07-19 08:39:04.207 Prompt (2, SSH login name, , login as: )
. 2011-07-19 08:39:07.347 Prompt (7, SSH password, , &Password: )
. 2011-07-19 08:39:08.848 Sent password
. 2011-07-19 08:39:08.851 Access granted
. 2011-07-19 08:39:08.855 Opened channel for session
. 2011-07-19 08:39:09.070 Started a shell/command
. 2011-07-19 08:39:09.074 --------------------------------------------------------------------------
. 2011-07-19 08:39:09.074 Using SFTP protocol.
. 2011-07-19 08:39:09.077 Doing startup conversation with host.
> 2011-07-19 08:39:09.087 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2011-07-19 08:39:09.092 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2011-07-19 08:39:09.092 SFTP version 3 negotiated.
. 2011-07-19 08:39:09.092 We believe the server has signed timestamps bug
. 2011-07-19 08:39:09.092 We will use UTF-8 strings for status messages only
. 2011-07-19 08:39:09.103 Getting current directory name.
. 2011-07-19 08:39:09.103 Getting real path for '.'
> 2011-07-19 08:39:09.103 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2011-07-19 08:39:09.106 Type: SSH_FXP_NAME, Size: 77, Number: 16
. 2011-07-19 08:39:09.106 Real path is '/'
. 2011-07-19 08:39:09.106 Listing directory "/".
> 2011-07-19 08:39:09.106 Type: SSH_FXP_OPENDIR, Size: 10, Number: 267
< 2011-07-19 08:39:09.109 Type: SSH_FXP_HANDLE, Size: 19, Number: 267
> 2011-07-19 08:39:09.109 Type: SSH_FXP_READDIR, Size: 19, Number: 524
< 2011-07-19 08:39:09.112 Type: SSH_FXP_STATUS, Size: 17, Number: 524
< 2011-07-19 08:39:09.112 Status code: 1
. 2011-07-19 08:39:09.112 Listing file "/..".
> 2011-07-19 08:39:09.112 Type: SSH_FXP_LSTAT, Size: 12, Number: 775
. 2011-07-19 08:39:09.121 Received disconnect message (protocol error)
. 2011-07-19 08:39:09.121 Disconnection message text: /..
. 2011-07-19 08:39:09.122 Server sent disconnect message
. 2011-07-19 08:39:09.122 type 2 (protocol error):
. 2011-07-19 08:39:09.122 "/.."
* 2011-07-19 08:39:09.146 (ESshFatal) Server sent disconnect message
* 2011-07-19 08:39:09.147 type 2 (protocol error):
* 2011-07-19 08:39:09.147 "/.."
* 2011-07-19 08:39:09.147 Can't get attributes of file '/..'.
* 2011-07-19 08:39:09.147 Error listing directory '/'.