When I have tried to create new domain I got an error:
Domain "domain.tld" already exists
But I was not able to found required domain in Parallels Plesk Automation (PPA) Provider Panel in
Top > Services > Websites.
When I log in to Parallels Plesk Automation Management node and applied solution from this article I have got an error:
[root@ppa ~]# /usr/local/psa/bin/domain -r domain.tld Actual result that you got : An error occurred during domain removal: Domain 'domain.tld' does not belong to any customer
Parallels Plesk Automation (PPA) are used two databases for work purposes. It is use POA database to store business-logic information and Plesk database to store information about hosted subscriptions.
Current issues exist when required domain data exist in POA database but absent in Plesk database. Often it could be caused by unsuccessful subscription/domain deletion from Parallels Plesk Automation (PPA).
Create backup of the databases according this article.
Found the owner of required domain in the POA database, on management node execute following command:
[root@ppa ~]# psql -U plesk -h `hostname` plesk -c "SELECT account_id,company_name FROM accounts LEFT JOIN domains ON accounts.account_id=domains.owner_id WHERE domains.name LIKE '%domain.tld%';" account_id | company_name ------------+-------------- 3 | test_user (1 row)
Open Parallels Plesk Automation (PPA) Provider Panel. Found the required customer in
Top > Operations > Customers or Resellers.
Open options for required customer, go to
Resources > Domains, found and delete domain 'domain.tld'. Make sure in Task Manager that domain was successfully deleted:
208646 processing event 'Domain removed' Feb-21-2014 19:49:26 Feb-21-2014 19:49:26 Successful
- Create new domain domain.tld.