{"id":6676,"date":"2019-10-18T05:32:07","date_gmt":"2019-10-18T05:32:07","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=6676"},"modified":"2024-04-23T12:40:15","modified_gmt":"2024-04-23T11:40:15","slug":"learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/","title":{"rendered":"How to Fix Failed to Retrieve Directory Listing Error in FileZilla FTP?"},"content":{"rendered":"<p>While using FileZilla for connecting to your FTP you might get an error as below:<\/p>\n<pre class=\"lang:default decode:true \">Status: Resolving address of ftp.website.com\nStatus: Connecting to 11.22.33.44:21...\nStatus: Connection established, waiting for welcome message...\nStatus: Initializing TLS...\nStatus: Verifying certificate...\nStatus: TLS connection established.\nStatus: Server does not support non-ASCII characters.\nStatus: Connected\nStatus: Retrieving directory listing...\nCommand: PWD\nResponse: 257 \"\/\" is your current location\nCommand: TYPE I\nResponse: 200 TYPE is now 8-bit binary\nCommand: PASV\nResponse: 227 Entering Passive Mode (11,22,33,44,167,111)\nCommand: MLSD\nError: Connection timed out\nError: Failed to retrieve directory listing<\/pre>\n<p>There can be different reasons for this error to occur and also different solutions for it.<\/p>\n<p>This error can be easily fixed by going into the Site Manager and using plain FTP by adjusting your connection details.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-red \">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong> You will have to open Passive Ports in your FTP&#8217;s server configuration file and firewall too.<\/p>\n<\/div>\n<\/div>\n<h3>1. Wrong Encryption Settings in FTP Client<\/h3>\n<p>For example, while using FileZilla, when you connect to FTP server you might get an error as below:<\/p>\n<pre class=\"lang:default decode:true\">Response: 227 Entering Passive Mode (11,22,33,44,167,111)\nCommand: MLSD\nError: Connection timed out\nError: Failed to retrieve directory listing<\/pre>\n<p>This error occurs when encryption is set to <strong>\u201cUse explicit FTP over TLS if available\u201d<\/strong> in FTP client settings.<\/p>\n<p><strong>Check the steps below to fix the problem:<\/strong><\/p>\n<p>1. Go to <strong>FileZilla<\/strong>, click on <strong>\u201cFile\u201d<\/strong> menu and select <strong>\u201cSite Manager\u201d<\/strong>.<\/p>\n<p>2. If the site or server you want to connect to isn&#8217;t already mentioned in site manager, add it.<\/p>\n<p>a. Add hostname.<br \/>\nb. Make the <strong>Encryption<\/strong> to<strong> \u201cOnly use plain FTP\u201d.<\/strong><br \/>\nc. Change logon type to <strong>&#8220;Normal&#8221;.<\/strong><br \/>\nd. Enter <strong>username<\/strong>\/<strong>password<\/strong>.<br \/>\ne. <strong>Ok<\/strong>\/<strong>Connect<\/strong> to continue.<\/p>\n<p>In case you are still getting the error, disable your firewall then try once more!<\/p>\n<h3>2. Problem with Passive mode<\/h3>\n<p>FTP works in both active and passive mode. FTP clients like FileZilla, CuteFTP, etc. use passive mode for transfer. But sometimes you may get an error such as <strong>&#8220;FTP can&#8217;t retrieve directory listing&#8221;<\/strong> in passive mode, then follow the below steps to resolve the error:<\/p>\n<ul>\n<li>Open Filezilla, click on <strong>Edit -&gt; Settings<\/strong>.<\/li>\n<li>Next, click on <strong>Connection -&gt; FTP: Select Active<\/strong>.<\/li>\n<li>Click on <strong>Connection -&gt; FTP -&gt; Active Mode: Choose &#8220;Ask your operating system for the external IP address&#8221;.<\/strong><\/li>\n<li>Click on <strong>Connection -&gt; FTP -&gt; Passive Mode: Select Fall Back to Active Mode<\/strong><\/li>\n<li>Press <strong>OK<\/strong>.<\/li>\n<\/ul>\n<p>Try connecting to your FTP again!<\/p>\n<h3>3. Missing Passive Port Range in FTP Server<\/h3>\n<p>In most of the cases<strong> \u201cFTP cannot retrieve directory listing\u201d<\/strong> error occurs when passive port range is not mentioned FTP server configuration.<\/p>\n<p>In cPanel for FTP servers like <strong>PureFTP<\/strong>, follow the below steps.<\/p>\n<p>1. Log in to the server via <strong>SSH<\/strong>.<\/p>\n<p>2. Open the <strong>\/var\/cpanel\/conf\/pureftpd\/local file<\/strong> and add the entry as below:<\/p>\n<pre class=\"lang:default decode:true \">ForcePassiveIP: X.X.X.X<\/pre>\n<p>These changes are then added to the file because FTP server exists behind the firewall.<\/p>\n<p>3. Then change the server\u2019s default passive port range, by running the below command:<\/p>\n<pre class=\"lang:default decode:true\">echo \"PassivePortRange: 49152 65534\" &gt;&gt; \/var\/cpanel\/conf\/pureftpd\/local\n\/usr\/local\/cpanel\/scripts\/setupftpserver pure-ftpd --force<\/pre>\n<p>4. Next, configure the server so that the passive port range will pass through the firewall.<\/p>\n<p>5. Lastly, restart the <strong>PureFTP<\/strong> service.<\/p>\n<pre class=\"lang:default decode:true \">\/usr\/local\/cpanel\/scripts\/setupftpserver pure-ftpd --force<\/pre>\n<h3>4. Lacking Port Range in Firewall Settings<\/h3>\n<p>This error usually occurs when a firewall blocks passive FTP ports.<\/p>\n<p><strong>Check the following steps to add the passive port range to the firewall to solve this error:<\/strong><\/p>\n<p>1. For firewall like iptables, open the <strong>\/etc\/sysconfig\/iptables<\/strong> file in a text editor.<\/p>\n<p>2. Then add the entry as below:<\/p>\n<pre class=\"lang:default decode:true \">iptables -I INPUT -p tcp --dport 49152:65534 -j ACCEPT<\/pre>\n<p>3. Lastly, run the below command to save.<\/p>\n<pre class=\"lang:default decode:true \">service iptables save<\/pre>\n<p>In this way, you can fix the error like \u201cFTP cannot retrieve directory listing\u201d.<\/p>\n<p><strong>Also Read:<\/strong><br \/>\n<a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-display-hidden-files-on-your-ftp-client\/\" target=\"_blank\" rel=\"noopener\"><strong>Steps to Display Hidden Files on Your FTP Client<\/strong><\/a><\/p>\n<p><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-and-edit-a-file-via-ftp\/\" target=\"_blank\" rel=\"noopener\"><strong>How to Create and Edit a File via FTP?<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While using FileZilla for connecting to your FTP you might get an error as below: Status: Resolving address of ftp.website.com Status: Connecting to 11.22.33.44:21&#8230; Status: Connection established, waiting for welcome message&#8230; Status: Initializing TLS&#8230; Status: Verifying certificate&#8230; Status: TLS connection established. Status: Server does not support non-ASCII characters. Status: Connected Status: Retrieving directory listing&#8230; Command: [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[943],"tags":[1049,945,594],"class_list":["post-6676","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-ftp","tag-failed-to-retrieve-directory-listing-error","tag-filezilla","tag-ftp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Learn to Fix Failed to Retrieve Directory Listing Error in FileZilla FTP<\/title>\n<meta name=\"description\" content=\"The article describes the ways to fix the failed to retrieve directory listing error in Filezilla FTP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn to Fix Failed to Retrieve Directory Listing Error in FileZilla FTP\" \/>\n<meta property=\"og:description\" content=\"The article describes the ways to fix the failed to retrieve directory listing error in Filezilla FTP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-18T05:32:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-23T11:40:15+00:00\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/\",\"name\":\"Learn to Fix Failed to Retrieve Directory Listing Error in FileZilla FTP\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2019-10-18T05:32:07+00:00\",\"dateModified\":\"2024-04-23T11:40:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article describes the ways to fix the failed to retrieve directory listing error in Filezilla FTP.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix Failed to Retrieve Directory Listing Error in FileZilla FTP?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn to Fix Failed to Retrieve Directory Listing Error in FileZilla FTP","description":"The article describes the ways to fix the failed to retrieve directory listing error in Filezilla FTP.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/","og_locale":"en_GB","og_type":"article","og_title":"Learn to Fix Failed to Retrieve Directory Listing Error in FileZilla FTP","og_description":"The article describes the ways to fix the failed to retrieve directory listing error in Filezilla FTP.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-10-18T05:32:07+00:00","article_modified_time":"2024-04-23T11:40:15+00:00","author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/","name":"Learn to Fix Failed to Retrieve Directory Listing Error in FileZilla FTP","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2019-10-18T05:32:07+00:00","dateModified":"2024-04-23T11:40:15+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article describes the ways to fix the failed to retrieve directory listing error in Filezilla FTP.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-fix-failed-to-retrieve-directory-listing-error-in-filezilla-ftp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Fix Failed to Retrieve Directory Listing Error in FileZilla FTP?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/"}]}},"views":2017,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=6676"}],"version-history":[{"count":5,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6676\/revisions"}],"predecessor-version":[{"id":15414,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6676\/revisions\/15414"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=6676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=6676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=6676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}