Unable to deploy Plesk 12 from template with disabled IPv6

Created:

2016-11-16 12:55:29 UTC

Modified:

2017-04-24 12:07:27 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to deploy Plesk 12 from template with disabled IPv6

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Plesk installation from EZ template failed. psa database was not created and MySQL can not be started with the following error:

151222 21:31:17 InnoDB: 5.5.46 started; log sequence number 1595685
151222 21:31:17 [Note] Server hostname (bind-address): '::'; port: 3306
151222 21:31:17 [Note] - '::' resolves to '::';
151222 21:31:17 [ERROR] Failed to create a socket for IPv6 '::': errno: 97.
151222 21:31:17 [ERROR] Can't create IP socket: Address family not supported by protocol
151222 21:31:17 [ERROR] Aborting

Command service psa start gives the following output:

Starting sw_cp_server service... invoke-rc.d: initscript sw-cp-server, action "status" failed.
failed

IPv6 is disabled on container.

Cause

Bug PPPM-3845 . It is fixed in Plesk Onyx.

Resolution

Upgrade to the latest Plesk version .

If upgrade is not possible, follow these steps:

Enable IPv6 support for container.

or

Edit configure_mysql_address_all() function in required bootstrapper.sh script setting address="::", for example, to 0.0.0.0:

configure_mysql_address_all()
{
local ipv6_supported_version="5.5.3"
local current_version="`mysql_raw_anydb -e \\"select version();\\"`"
local my_cnf="$1"
local address=""

# if we cannot detect mysql-server version
# use ipv4 only address
if [ -z "$current_version" ]; then
address="0.0.0.0"
else
mysql_compare_versions "$current_version" "$ipv6_supported_version"
if [ $? -eq 1 ]; then
address="0.0.0.0"
else
address="0.0.0.0"
fi
fi

configure_mysql_address "$my_cnf" "$address"
}

For example, for Plesk 12 template with Ubuntu 12.04, the path to file will be similar to:

/vz/template/ubuntu/12.04/x86_64/pp12.0.18-bootstrapper_12.0.18-ubuntu12.04.build1200150126.15_amd64/opt/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh
Have more questions? Submit a request
Please sign in to leave a comment.