Page 1 of 1

Failed to retrieve directory

Posted: Thu Jan 09, 2014 2:29 pm
by Horus
I have a problem with connecting to FTP
the FTP client

Code: Select all

Status:	Resolving address of como.horusone.com
Status:	Connecting to 23.226.138.132:21...
Status:	Connection established, waiting for welcome message...
Response:	220 (vsFTPd 3.0.2)
Command:	USER Hoop_como
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 "/"
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	227 Entering Passive Mode (23,226,138,131,46,237).
Command:	LIST
Error:	Connection timed out
Error:	Failed to retrieve directory listing
PS:I have 2 ipv4

Code: Select all

/etc/vsftpd/vsftpd.conf
show new file ,blank page
please where the error

Re: Failed to retrieve directory

Posted: Fri Jan 10, 2014 2:31 am
by VestaLover
Hi,

You need to enable Passive Mode in vsftpd (/etc/vsftpd.conf)

If you install CSF, you also need to enable the ports in TCP_IN

Good Luck.

Re: Failed to retrieve directory

Posted: Fri Jan 10, 2014 10:49 am
by Horus
VestaLover wrote:Hi,

You need to enable Passive Mode in vsftpd (/etc/vsftpd.conf)

If you install CSF, you also need to enable the ports in TCP_IN

Good Luck.
thank you for reply.
Solved
Adding the following:

Code: Select all

pasv_address=127.0.0.1 

Code: Select all

pasv_addr_resolve=YES
to vsftpd's conf file fixed it.
but images not uploaded

Re: Failed to retrieve directory

Posted: Fri Jan 10, 2014 5:50 pm
by VestaLover
No, you should put:
pasv_enable=YES
pasv_address=YOUR.IP.ADDRESS (put the IP that you are going to connect)

If you put 11.11.11.11 as passive address, you should connect to 11.11.11.11 not your second IP

Re: Failed to retrieve directory

Posted: Sat Jan 11, 2014 10:09 am
by Horus
VestaLover wrote:No, you should put:
pasv_enable=YES
pasv_address=YOUR.IP.ADDRESS (put the IP that you are going to connect)

If you put 11.11.11.11 as passive address, you should connect to 11.11.11.11 not your second IP
That is original vsftpd conf file,Did not work until configuration change like that in my previous post

images uploaded but not appear, this issue related to nginx.

How can i enable only Apache to specific site,and do that with live site.

Re: Failed to retrieve directory

Posted: Fri Jun 04, 2021 4:16 pm
by andrebastos
Hello,

I had the same problem and I have CSF enabled.
I managed to solve it by doing this:

- I added the ports "49152:65534" in TCP_IN in CSF;
- I enabled iptables (it was disabled);

I hope my information can help.

--
André Bastos
Webhosting
Hospedagem de Sites