Proftpd error: fatal: Socket operation on non-socket


Error

root@hostname [~]# /etc/init.d/proftpd restart
Stopping proftpd: [FAILED]
Starting proftpd: hostname.domainname.com – fatal: Socket operation on non-socket
[FAILED]

Reason


The ProFtpd was configured to run in “inetd” mode. In “inetd” mode, ProFTPD expects that it will be run from the inetd super-server, which implies that stdin/stdout will be sockets instead of terminals. As a result, socket operations will fail.

root@hostname [~]# grep ServerType /etc/proftpd.conf

ServerType                      inetd

root@hostname [~]#

Fix

Edit the proftpd configuration and  change the ServerType to “standalone” mode and restarted ProFtpd.


root@hostname [~]# grep ServerType /etc/proftpd.conf
ServerType                      standalone
#ServerType                      inetd
root@hostname [~]#    /etc/init.d/proftpd restart
Stopping proftpd:                                          [FAILED]
Starting proftpd:                                          [  OK  ]

For more details : http://www.proftpd.org/docs/faq/linked/faq-ch4.html

Advertisements

3 responses to “Proftpd error: fatal: Socket operation on non-socket

  1. Thanks very much I mistakenly did a inet config and couldnt start my FTP for like half an hour this guide was very useful.

  2. Thank you. Solved the problem in my case 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s