• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Unable to get domain by identifier

Amin Taheri

Golden Pleskian
Plesk Certified Professional
I am attempting to use the CLI to enable suspended domains but it seems to fail - I have tried both of the commands listed there and neither work

Code:
DOMAINS=$(mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e"select name from domains where htype='vrt_hst' order by name asc;")
for domain in $DOMAINS; do
	/usr/local/psa/bin/domain -u $domain -status enabled 
	/usr/local/psa/bin/domain --on $domain  -status enabled 
done

throws an exception for every domain

ERROR: PleskFatalException
Unable to get domain by identifier : 93

0: class.DSMail.php:530
DSMail::getInstance(integer '93')
1: class.Domain.php:167
Domain->turnOn(string '2', integer '0')
2: class.BsDomain.php:412
BsDomain->turnOn(string '2')
3: cuDomain.php:1880
cuDomain->changeStatus(object of type BsDomain, integer '0')
4: cuDomain.php:1376
cuDomain->cmdUpdate(string 'my-domain.org', array)
5: cuDomain.php:689
cuDomain->cuDomain()
6: domain.php:17
PHP Warning: Releasing semaphore 20 in request cleanup in Unknown on line 0

Do we know why this happens, and what needs to be done to correct?
 
Back
Top