Migration failed with error: You can specify only one IPv4 and one IPv6 address

Created:

2016-11-16 13:18:53 UTC

Modified:

2017-04-24 11:39:40 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Migration failed with error: You can specify only one IPv4 and one IPv6 address

Applicable to:

  • Plesk 11.5 for Linux

Symptoms

Migration fails with error:

    Execution of /usr/local/psa/admin/plib/api-cli/domain.php --create domain.tld -owner admin -do-not-apply-skeleton -notify false -guid b5c5fed1-071e-472e-89f8-7763d52e4219 -vendor-guid 39278f09-120c-446a-9e46-eb1234c91f3c65d -creation-date 2013-01-21 -ip 1.2.3.4,5.6.7.8 -ignore-nonexistent-options failed with return code 1.
Stderr is
You can specify only one IPv4 and one IPv6 address.

Cause

Domain is assigned to 2 different IP address in Plesk database.

Resolution

1) Create backup of Plesk database:

    mysqldump -u admin -p`cat /etc/psa/.psa.shadow` psa > ~/psa.`date +%F_%H:%M`.sql

2) Login to database and check IP address is assigned to domain:

    mysql>  select id from domains where name='domain.tld';
+------+
| id |
+------+
| 1528 |
+------+

mysql> select * from IpAddressesCollections where ipCollectionId in (select ipCollectionId from DomainServices where dom_id=1528);
+----------------+-------------+
| ipCollectionId | ipAddressId |
+----------------+-------------+
| 2126 | 4 |
+----------------+-------------+

As you can see, IP address ID=4.

3) Check IP address for domain in " dom_param " table as well:

    mysql> select * from dom_param where dom_id=1528;
+--------+----------------+---------------------------+
| dom_id | param | val |
+--------+----------------+---------------------------+
| 1528 | ip_addr_id | 1 |

As you can see, IP address ID is different.

    mysql> select id,ip_address from IP_Addresses;
+----+-----------------+
| id | ip_address |
+----+-----------------+
| 4 | 1.2.3.4 |
| 1 | 5.6.7.8 |

4) Correct IP address misconfiguration by setting the same IP address:

    mysql>  update IpAddressesCollections set  ipAddressId=1 where ipCollectionId=2126;
Have more questions? Submit a request
Please sign in to leave a comment.