Cobra Forum

Plesk Panel => Plesk Service/Interface => Topic started by: Administrator on Dec 29, 2022, 11:01 AM

Title: Unable to add domain to an existing webspace in Plesk: Unable to load object of
Post by: Administrator on Dec 29, 2022, 11:01 AM
Symptoms
QuoteAn error occurred during domain update: An error occurred during changing of hosting settings: Unable to load object of type IPAddress with id=XX: IPAddress: unable to select: no such row in the table
Quote#Plesk repair db -n
...
Checking the consistency of the Plesk database
The following domains are assigned to already removed IP addresses.
Reassign the domains to existing IP addresses:
example.com ........................................... [ERROR]

Error messages: 1; Warnings: 0; Errors resolved: 0
exit status 1
[/list]
Cause
The issue is caused by a database inconsistency: IP pool of the customer for whom the Domain is created contains a reference to a non-existent IP address.
Resolution
Quote# plesk db "select d.name from domains d, dom_param dp where dp.val not in (select id from IP_Addresses) and dp.param='ip_addr_id' and d.id=dp.dom_id"
+-------------------------------------------+
| name
+-------------------------------------------+
| example.com
+-------------------------------------------+