FTP Issue - Directory Files Do Not Appear

Albert L Frausto 26 Reputation points
2021-04-30T18:27:10.85+00:00

Hello,

I'm trying to access the F:\inetpub\wwwroot_pub folder via FTP on a VM with Windows Server 2019 Datacenter. I can FTP into the server but the web folders inside the wwwroot_pub folder are not listed. Instead, the directory is empty. I'm using an Administrator account to FTP into the server. I'm using FileZilla as my FTP client.

Here's the connection log:

Status: Connecting to X.X.X.X:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing of "/"...
Command: CWD /
Response: 250 CWD command successful.
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (X,X,X,X,217,190).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Connecting to X.X.X.X:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing of "/"...
Command: CWD /
Response: 250 CWD command successful.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (X,X,X,X,217,194).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing

I followed the instructions at configure-ftp-server-on-azure-virtual-machine

Can anyone explain what additional steps are needed to view the files in the directory.

Thank you.

Internet Information Services
{count} votes

2 answers

Sort by: Most helpful
  1. Lex Li (Microsoft) 5,827 Reputation points Microsoft Employee
    2021-05-03T22:01:49.977+00:00

    Command: PASV
    Response: 227 Entering Passive Mode (X,X,X,X,217,190).

    Passive mode was used.

    Error: Connection timed out after 20 seconds of inactivity
    Error: Failed to retrieve directory listing

    Data channel was not opened.

    Thus, you hit the classic firewall issue when FTP data channel was not created due to the necessary port was not opened.

    It is rather complex to configure the network settings, so you should escalate to your network administrators and let them get started from https://zcusa.951200.xyz/en-us/iis/publish/using-the-ftp-service/configuring-ftp-firewall-settings-in-iis-7


  2. Greg 1 Reputation point
    2022-08-24T21:34:12.553+00:00

    The problem was that the local firewall (McAfee) was refusing the connection request from the FTP server to establish the data channel. The solution was identifying the server's IP as a trusted connection.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.