Getting following Error while add a new subscription Plesk Control Panel.
Error :-
Internal error: Unable to load object of type IPAddress with id=2: Table->select() failed: no such row in the table
Cause :-
The error means that IP pool of ” VPS / Contains” refer to IP address that does not exist in the list of all available IP addresses in Plesk database.
Usually it happen if IP addresses are removed not through Panel interface from Plesk >> Settings >> IP addresses page but directly from ‘IP_Addresses’ table of Plesk database.
Such problem also exist if clone of a “VPS / Container” with already installed Plesk was used. As old “VPS / Container” are already having old IP address in there database. When new IP address was added and Old IP was removed, such problem persist.
Solution :-
Make sure that you have already read the new IP addresses into Plesk by logging into the Plesk control panel >> Settings >> IP addresses >> Reread IP
Now Login to mysql as Plesk admin
[root@vps9999 ~]# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa
Use psa database.
mysql> use psa
You will see the list of id numbers in the first column followed by the addresses in the second column.
Perform the modification of the component_id table as,
mysql> select id,ip_address from IP_Addresses;
+—-+—————-+
| id | ip_address |
+—-+—————-+
| 6 | xxx.xxx.xxx.164 |
| 7 | xxx.xxx.xxx.165 |
| 8 | xxx.xxx.xxx.222 |
You could see the output above, the id is 6, 7 and 8, It supposed to be in sequence like 1, 2 and 3.
Then update the table accordingly as,
mysql> update IP_Addresses set id=1 where ip_address=’xxx.xxx.xxx.164′;
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> update IP_Addresses set id=2 where ip_address=’xxx.xxx.xxx.165′;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> update IP_Addresses set id=3 where ip_address=’xxx.xxx.xxx.222′;
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0
Verify the changes as,
mysql> select id,ip_address from IP_Addresses;
+—-+—————-+
| id | ip_address |
+—-+—————-+
| 1 | xxx.xxx.xxx.164 |
| 2 | xxx.xxx.xxx.165 |
| 3 | xxx.xxx.xxx.222 |
Once this was done, check the Plesk Home page in Plesk Control Panel. It works fine.
Note :- Replace xxx.xxx.xxx with your original IP address values.
============================================>