Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-04-2011, 04:09 PM   #1
LQ Newbie
Registered: May 2011
Posts: 6

Rep: Reputation: 0
vsftpd Error: Failed to retrieve directory listing

hey, im trying to setup an ftp server with vsftpd, it worked find untill suddenly it said "Error: Failed to retrieve directory listing". Im using port 442 atm, but it doesnt work on 21 either.

heres the connection log:

Status:	Connecting to
Status:	Connection established, waiting for welcome message...
Response:	220 Welcome
Command:	USER xxxxxxxxxxxxx
Response:	331 Please specify the password.
Command:	PASS **********
Response:	230 Login successful.
Command:	OPTS UTF8 ON
Response:	200 Always in UTF8 mode.
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/srv/FileServer"
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	227 Entering Passive Mode (192,168,1,x,253,xxx).
Status:	Server sent passive reply with unroutable address. Using server address instead.
Command:	LIST
Error:	Connection timed out
Error:	Failed to retrieve directory listing
Old 05-04-2011, 05:18 PM   #2
LQ Newbie
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
btw, it works on the local ip, but it doesnt work on the external ip. The ports are open
Old 05-04-2011, 05:26 PM   #3
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
[QUOTEjensge994]btw, it works on the local ip, but it doesnt work on the external ip. The ports are open[/QUOTE]

I'd be willing to be the router isn't handling all the ports correctly. If you haven't seen it already, this article give an excellent explanation of both passive and active FTP and what ports need to be open to do it. I know on my FTP server not only do ports 20 and 21 have to be forwarded, but I need to lock vsftpd passv ports down to a set range and then forward those from the router as well.
Old 05-08-2011, 06:46 AM   #4
LQ Newbie
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
passive throttling and passiv ports work! thanks
Old 07-06-2013, 06:50 AM   #5
Ram babu
LQ Newbie
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
Smile Issue Resolved

Check for solution.

Make sure port 20, 21 and few more ports, for example 4242-4243, are being forwarded to the server. We will need these extra ports for passive mode - set pasv_min_port and pasv_max_port accordingly in the configuration file. Add following to /etc/vsftpd.conf .



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd directory listing issue BYoungTGS Linux - Server 3 06-13-2010 08:30 AM
Vsftpd listing directory with time - Windows Explorer client neo571 Linux - Server 0 10-26-2009 09:23 AM
vsftpd: no directory listing with remote connection Sjonnie48 Linux - Software 1 11-16-2008 03:09 PM
vsftpd and directory listing disable for user eugene2008 Linux - Software 0 07-06-2006 09:18 PM
ProFTP problem: can login but not retrieve directory listing Singing Banzo Linux - Networking 4 03-23-2005 01:11 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration