vsftpd: 500 OOPS: could not bind listening IPv4 socket

16,251

Much probably you have /etc/xinetd.d/ftp enabled AND pointing to /usr/sbin/vsftpd and in /etc/vsftpd.conf you have listen=YES.

Simply change it to listen=NO. The listen=YES is for standalone, if you want vsftpd to be always active then you'll have to disabled it in the xinetd config.

Share:
16,251
Canser Yanbakan
Author by

Canser Yanbakan

I'm a software developer & I love video games!

Updated on September 18, 2022

Comments

  • Canser Yanbakan
    Canser Yanbakan over 1 year

    I will use vsftpd as a ftp server. I did all changes on /etc/vsftpd.conf.

    These changes are (according to digitalocean):

    anonymous_enable=NO
    write_enable=YES
    local_enable=YES
    chroot_local_user=YES
    

    More here: https://www.digitalocean.com/community/articles/how-to-configure-vsftpd-to-use-ssl-tls-on-an-ubuntu-vps

    I'v also created a ssl certificate file. (not necessary but recommended)

    Still getting :

    500 OOPS: could not bind listening IPv4 socket

    Note:

    pam_service_name=vsftpd

    Netstat:

    netstat -pan|grep :21;
    tcp        0      0 0.0.0.0:21 0.0.0.0:*               LISTEN      30694/vsftpd
    
    • Goblinlord
      Goblinlord about 9 years
      Just curious... why not just use SFTP?
  • Canser Yanbakan
    Canser Yanbakan about 10 years
    Sorry, already have.
  • Ghassan
    Ghassan about 10 years
    do you use wrappers? i think xinetd can cause this as well... Sometimes some work on the wrappers is needed. It might help if you want to check to see if the port is taken by another service such as another ftp server by netstat.
  • Canser Yanbakan
    Canser Yanbakan about 10 years
    Weird.. I wrote ftp.mysiteaddress and browser asked me to login with user info. I did but i got "No data received" error.