Plesk for Linux
kb: technical
ABT: Group B
Applicable to:
- Plesk for Linux
Symptoms
ProFTPD can not start with the following error:
Fatal: unable to get connection info: Socket operation on non-socket
Cause
ProFTPD is configured to run in
inetd
mode rather than
standalone
. In this mode, the ProFTPD server expects to be started by the inetd
(or xinetd
) servers, which implies that stdin/stdout will be sockets instead of terminals. As a result, socket operations will fail and the above error will be printed.
Resolution
1. Connect to the server using SSH
2. Modify the
/etc/proftpd.conf
configuration file and add or edit the
ServerType
directive as follows:
ServerType standalone
#ServerType inetd
Comments
4 comments
Tried this but greeted with another message
Failed binding to ::, port 21: Address already in use
Check the ServerType directive to ensure you are configured correctly
Check to see if inetd/xinetd, or another proftpd instance, is already using ::, port 21
Unable to start proftpd; check logs for more details
@Sharul Hafiz
Make sure that no other application is running on this port:
If found, kill its process and then restart xinetd service.
Done, on WinSCP still can't connect with this error:
Timeout detected. (data connection)
Could not retrieve directory listing
Error listing directory '/'.
On server:
in dir_check_full(): path = '/', fullpath = '/opt/xxx/xxx/....
@Sharul, it looks like you need to apply the following article: https://support.plesk.com/hc/en-us/articles/115004422234-Cannot-connect-to-FTP-Connection-timed-out-after-20-seconds-of-inactivity-Error-Failed-to-retrieve-directory-listing-
Please sign in to leave a comment.