• 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.

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