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

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