- Plesk Onyx for Linux
DNS Server component is not installed, as it can be seen in Tools & Settings > Services Management.
plesk repair dns command fails:
# plesk repair dns -y
Checking the DNS configuration file ................................. [OK]
Restoring DNS server configuration
Synchronizing DNS zones with the DNS server ..................... [2018-10-03 09:07:47.583] ERR [panel] Call to a member function getSubscription() on null:
Repair_Dns->repairZone(object of type Db_Table_Row_DnsZone)
Repair_Dns->repairAllZones(NULL null, boolean false)
Repair_Aspect_Abstract->_checkAspect(object of type Closure)
CuExecutor->execUtil(string 'cuRepair', string 'execute')
ERROR: Error: Call to a member function getSubscription() on null (Dns.php:56)
exit status 1
This is Plesk bug with ID #PPPM-9411 which is planned to be fixed in future Plesk updates.
As a workaround, the error can be safely ignored.
If it is required to use the
plesk repair dns command to manage DNS Server component, then install the component: