• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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