• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved CLI error getting subdomain info

Pradins

New Pleskian
I have Plesk Obsidian 18.0.23.

When executing the command to get info of a subdomain:
/usr/sbin/plesk bin subdomain -i subdomain.domain.com

I get this error:
[2020-02-12 21:42:44.996] ERR [panel] Call to a member function isMailAutodiscoveryEnabled() on null:
0: /usr/local/psa/admin/plib/report/class.DomainReport.php:715
DomainReport->make_report_summary_mailnames_()
1: /usr/local/psa/admin/plib/report/class.Report.php:278
Report->make_report(integer '171')
2: /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php:2953
AbstractCuDomain->_cmdInfo(string 'subdomain.domain.com')
3: /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php:1673
AbstractCuDomain->_processDomainNameCmd(string 'info', string 'subdomain.domain.com')
4: /usr/local/psa/admin/plib/api-common/cuDomain.php:65
cuDomain->_processDomainNameCmd(string 'info', string 'subdomain.domain.com')
5: /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php:78
AbstractCuDomain->__construct(NULL null)
6: /usr/local/psa/admin/plib/api-common/CuExecutor.php:61
CuExecutor->execUtil(string 'cuSubDomain', NULL null)
7: /usr/local/psa/admin/plib/api-common/CuExecutor.php:131
CuExecutor->run()
8: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:25
CliUtilityRunner->run()
9: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:34
require_once(string '/usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php')
10: /usr/local/psa/admin/plib/api-cli/subdomain.php:4

I have the same problem in all domains on the server.
 
This is caused by a bug in the product with ID PPP-45257 which will be released in future releases of the product.

As a workaround apply the following steps:

Create the mail service for the domain via:

# plesk bin mail --create-service example.com

disable the mail service for the domain via:

# plesk bin mail --off example.com
 
Fixed:


If the mail service for a domain or a subscription (for example, example.com) is disabled, the plesk bin subscription -i example.com command no longer fails. (PPP-45257)
 
Back
Top