Applicable to:
- Plesk for Linux
Symptoms
FTP service fails to start on Plesk server with the following error:
CONFIG_TEXT: xinetd[503]: socket creation failed (Address family not supported by protocol (errno = 97)). service = ftp
xinetd[503]: Service ftp failed to start and is deactivated.`
Cause
The issue is caused by disabled IPv6 support on the host:
# grep -r ipv6 /etc/modprobe.d/
alias ipv6 off
options ipv6 disable=1
# grep -i v6 /etc/sysconfig/network
NETWORKING_IPV6=no
IPV6FORWARDING=yes
Resolution
-
Connect to the server via SSH
-
Replace the IPv6 value by IPv4 in
/etc/xinetd.d/ftp_psa
as shown in the example below, VI editor can be used:CONFIG_TEXT: service ftp
{
flags = IPv6 <== REMOVE
flags = IPv4 <== ADD
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
instances = UNLIMITED
server = /usr/sbin/in.proftpd
server_args = -c /etc/proftpd.conf
}
Note: this change could be lost after Plesk upgrade.
Comments
4 comments
Hi,
I want to ask - what is permament solution? will there be a patch in the future, or we have to modify this config file after every upgrade?
Hello Waldemar Kasperek
This issue happens due to server OS settings.
> we have to modify this config file after every upgrade?
As far as I know, you won't need to modify it after each update, only in case some update will modify packets, connected with FTP.
To make sure you have the needed settings, I suggest creating a cron task, which will check the config and restore needed parameters if needed.
Hi,
Could you please update the article? The file /etc/modprobe.conf is deprecated, all config files belong in /etc/modprobe.d. Therefore it's not always available.
Hello @maartenv,
Thank you for bringing this to our attention!
The article was updated accordingly.
Please sign in to leave a comment.