VSFTPD not starting on 12.3

Hey guys,

I don’t know what has changed but today after having it working from the beginning, vsftpd stopped working, maybe an update broke it? I certainly have not changed anything on it.

All I have is a message saying INVALIDARGUMENT in /var/log/messages.

vsftpd.service: main process exited, code=exited, status=2/INVALIDARGUMENT

Any ideas?

Thanks,

Have you changed ipv4/ipv6 settings on your machine or any other network settings?

Check /etc/vsftpd.conf and see if LISTEN is set to YES and at the same time listen_ipv6 is set it YES, if it is, you need to disable listening to IPv6.

Also do a;

netstat -napl|grep -i :21

To see if something is already running and taking port :21 except your vsftpd.

Nope, but I just removed it and re-installed it, re-configured it and it works again.

On 2014-09-22 17:06, Miuku wrote:

> Check /etc/vsftpd.conf and see if LISTEN is set to YES and at the same
> time listen_ipv6 is set it YES, if it is, you need to disable listening
> to IPv6.

No, this is no longer true.

According to https://bugzilla.redhat.com/show_bug.cgi?id=592850, the

vsftpd documentation is wrong. There is no need to run two copies to

have ftp on ipv4 and ipv6.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

On 2014-09-22 23:03, Carlos E. R. wrote:
> On 2014-09-22 17:06, Miuku wrote:
>
>> Check /etc/vsftpd.conf and see if LISTEN is set to YES and at the same
>> time listen_ipv6 is set it YES, if it is, you need to disable listening
>> to IPv6.
>
> No, this is no longer true.
>
> # According to https://bugzilla.redhat.com/show_bug.cgi?id=592850, the
> # vsftpd documentation is wrong. There is no need to run two copies to
> # have ftp on ipv4 and ipv6.
>

And it works in my system (using xinetd)


Telcontar:/etc/xinetd.d # nmap localhost | grep -i ftp
21/tcp    open  ftp
Telcontar:/etc/xinetd.d # nmap -6 localhost | grep -i ftp
21/tcp    open  ftp
Telcontar:/etc/xinetd.d #

It needs that “/etc/xinetd.d/vsftpd” has this entry:


FLAGS           = IPv6 IPv4

which I added a minute ago; till I did, the nmap -6 call failed to get a
response on ftp. The old setting “listen_ipv6” i had in there does not work.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)