Cobra Forum

Plesk Panel => Plesk Service/Interface => Topic started by: mahesh on Feb 17, 2024, 06:09 AM

Title: Unable to create a domain or a subscription in Plesk:
Post by: mahesh on Feb 17, 2024, 06:09 AM
Question:
Unable to create a domain or a subscription in Plesk: There are no available resources of this type (domains) left
Applicable to: Plesk for Linux Plesk for Windows
Failed deployment of domain example.com

Execution of /opt/psa/admin/plib/api-cli/domain.php --create example.com -owner admin -do-not-apply-skeleton -notify false -guid b55020df-blya-4ecc-824e-2bdfb9dab685 -creation-date 2011-09-17 -ignore-nonexistent-options failed with return code 1.
Stderr is
An error occurred during domain creation: There are no available resources of this type (domains) left. Requested: 1; available: 0.

Error: There are no available resources of this type (domains) left. Requested: 1; available: 0.

Cause
The issue is caused by Plesk license limitations. The limit of domains has been reached.

What domains are counted in the domain limit of a Plesk license

Resolution
1.Check the Plesk license via Tools & Settings > License Management .

2.Make sure that the number of domains does not reach limits. It can be done from the command line as follows:
Windows
c:\>"%plesk_dir%MySQL\bin\mysql.exe" -uadmin -p<plesk-admin-password> -P8306 -Dpsa -e "SELECT COUNT(*) FROM psa.domains WHERE parentDomainId = 0;"
+----------+
| COUNT(*) |
+----------+
| 6 |
+----------+
Linux
#MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa -e "SELECT COUNT(*) FROM psa.domains WHERE parentDomainId = 0;"
+----------+
| COUNT(*) |
+----------+
| 1 |
+----------+