Empty root directory when logged in through FTP over TLS

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

Moderator: Project members

Post Reply
Message
Author
james.chim
500 Command not understood
Posts: 5
Joined: 2018-12-27 06:57
First name: James
Last name: Chim

Empty root directory when logged in through FTP over TLS

#1 Post by james.chim » 2018-12-27 07:09

Dear support,

As said, I have several servers failed to list the directory only when connected over TLS.
Would you please provide some workarounds to troubleshoot the issue?

Best regards,
James

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

Re: Empty root directory when logged in through FTP over TLS

#2 Post by botg » 2018-12-27 08:46

What does it say in the message log?

james.chim
500 Command not understood
Posts: 5
Joined: 2018-12-27 06:57
First name: James
Last name: Chim

Re: Empty root directory when logged in through FTP over TLS

#3 Post by james.chim » 2018-12-27 08:53

002838)12/27/2018 14:47:49 PM - (not logged in) (*.*.*.*)> Connected on port 990, sending welcome message...
(002838)12/27/2018 14:47:49 PM - (not logged in) (*.*.*.*)> 220 SSPFTP
(002838)12/27/2018 14:47:50 PM - (not logged in) (*.*.*.*)> TLS connection established
(002838)12/27/2018 14:47:50 PM - (not logged in) (*.*.*.*)> USER sspemftp
(002838)12/27/2018 14:47:50 PM - (not logged in) (*.*.*.*)> 331 Password required for sspemftp
(002838)12/27/2018 14:47:51 PM - (not logged in) (*.*.*.*)> PASS ********
(002838)12/27/2018 14:47:51 PM - sspemftp (*.*.*.*)> 230 Logged on
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> SYST
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> 215 UNIX emulated by FileZilla
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> FEAT
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> 211-Features:
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> MDTM
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> REST STREAM
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> SIZE
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> MLST type*;size*;modify*;
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> MLSD
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> AUTH SSL
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> AUTH TLS
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> PROT
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> PBSZ
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> UTF8
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> CLNT
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> MFMT
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> EPSV
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> EPRT
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> 211 End
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> PBSZ 0
(002838)12/27/2018 14:47:51 PM - ftpuser (*.*.*.*)> 200 PBSZ=0
(002838)12/27/2018 14:47:52 PM - ftpuser (*.*.*.*)> PROT P
(002838)12/27/2018 14:47:52 PM - ftpuser (*.*.*.*)> 200 Protection level set to P
(002838)12/27/2018 14:47:52 PM - ftpuser (*.*.*.*)> PWD
(002838)12/27/2018 14:47:52 PM - ftpuser (*.*.*.*)> 257 "/" is current directory.
(002838)12/27/2018 14:47:53 PM - ftpuser (*.*.*.*)> TYPE A
(002838)12/27/2018 14:47:53 PM - ftpuser (*.*.*.*)> 200 Type set to A
(002838)12/27/2018 14:47:53 PM - ftpuser (*.*.*.*)> PASV
(002838)12/27/2018 14:47:53 PM - ftpuser (*.*.*.*)> 227 Entering Passive Mode (*,*,*,*,228,182)
(002838)12/27/2018 14:47:53 PM - ftpuser (*.*.*.*)> MLSD
(002838)12/27/2018 14:47:53 PM - ftpuser (*.*.*.*)> 150 Opening data channel for directory listing of "/"
(002838)12/27/2018 14:47:53 PM - ftpuser (*.*.*.*)> TLS connection for data connection established
(002838)12/27/2018 14:47:53 PM - ftpuser (*.*.*.*)> 226 Successfully transferred "/"

james.chim
500 Command not understood
Posts: 5
Joined: 2018-12-27 06:57
First name: James
Last name: Chim

Re: Empty root directory when logged in through FTP over TLS

#4 Post by james.chim » 2018-12-27 08:54

Everything seems normal from the server client dialogue screen.
I try to compare it with another client that does not have issue.
Contents are exactly the same.

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

Re: Empty root directory when logged in through FTP over TLS

#5 Post by botg » 2018-12-27 09:20

Which version of FileZilla Server are you using?

Which client software (product and version) are you using?

james.chim
500 Command not understood
Posts: 5
Joined: 2018-12-27 06:57
First name: James
Last name: Chim

Re: Empty root directory when logged in through FTP over TLS

#6 Post by james.chim » 2018-12-27 09:37

Status: Connecting to *.*.*.*:990...
Status: Connection established, initializing TLS...
Status: Verifying certificate...
Status: TLS connection established, waiting for welcome message...
Status: Logged in
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 (*,*,*,*,228,220)
Command: MLSD
Response: 150 Opening data channel for directory listing of "/"
Error: GnuTLS error -110: The TLS connection was non-properly terminated.
Status: Server did not properly shut down TLS connection
Error: Transfer connection interrupted: ECONNABORTED - Connection aborted
Response: 226 Successfully transferred "/"
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Connecting to *.*.*.*:990...
Status: Connection established, initializing TLS...
Status: Verifying certificate...
Status: TLS connection established, waiting for welcome message...
Status: Logged in
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 (*,*,*,*,229,145)
Command: MLSD
Response: 150 Opening data channel for directory listing of "/"
Error: GnuTLS error -110: The TLS connection was non-properly terminated.
Status: Server did not properly shut down TLS connection
Error: Transfer connection interrupted: ECONNABORTED - Connection aborted
Response: 226 Successfully transferred "/"
Error: Failed to retrieve directory listing
Last edited by james.chim on 2018-12-27 10:04, edited 1 time in total.

james.chim
500 Command not understood
Posts: 5
Joined: 2018-12-27 06:57
First name: James
Last name: Chim

Re: Empty root directory when logged in through FTP over TLS

#7 Post by james.chim » 2018-12-27 09:38

Log from client side.

Client ver.: 3.39.0
Server ver.: 0.9.60

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

Re: Empty root directory when logged in through FTP over TLS

#8 Post by botg » 2018-12-27 10:22

Looks like a firewall or NAT router interfering with the connection. If you look at the network traffic server-side you should see a TLS alert followed by a FIN or RST on the data connection. If you look at the network traffic client-side either the alert is missing, or the FIN/RST.

Post Reply