docker-ftp-server icon indicating copy to clipboard operation
docker-ftp-server copied to clipboard

Error listing directory

Open githubxnoob opened this issue 2 years ago • 4 comments

its not working in any ftp clients. the server is running but i get the following error in clients.

Timeout detected. (control connection)
Could not retrieve directory listing
Error listing directory '/'.

githubxnoob avatar Oct 12 '23 06:10 githubxnoob

same error

FinalTek avatar Dec 06 '23 20:12 FinalTek

maybe related to pasv_address=0.0.0.0 .

FYI

https://stackoverflow.com/questions/43758580/filezilla-the-data-connection-could-not-be-established-econnrefused-connec

kongkx avatar Dec 23 '23 03:12 kongkx

I can confirm that the pasv_address is the problem when behind a NAT or routing otherwise

For my own purposes I hotfixed the problem with a Dockerfile as follows..

FROM garethflowers/ftp-server

RUN sed -i -r "s/0.0.0.0/my_external_ip/g" /etc/vsftpd.conf

...and then running this newly tagged/built container instead

it would be better to create an ENV variable somehow to set this variable in an easier way

rogervdf avatar Jan 21 '24 22:01 rogervdf

I also had a problem due to pasv_address=0.0.0.0 being set by default. My containers are in a VLAN and my security cameras created 0 size files because of this. However I also had to remove the pasv_addr_resolve=YES line as well as I think that was setting it to expect a hostname instead of an IP address.

FROM garethflowers/ftp-server:0.7

RUN sed -i -r "s/0.0.0.0/192.168.1.5/g" /etc/vsftpd.conf && sed -i "/pasv_addr_resolve/d" /etc/vsftpd.conf

scolbeck avatar Jan 31 '24 14:01 scolbeck