Symptoms
If the option Propagate DNS zones to PA slave NS nodes
is turned on in Plesk configuration, the task for provisioning Plesk fails with the following error:
Last execution output
APS Application Error:
500 Internal Server Error
[ApplicationUnknownError] Provisioning: resource eeb6d154-ccf2-4756-9121-69e2cd278657 of type 'panels' (http://www.parallels.com/aps/plesk/panel/1.1) for APS application 'Parallels Plesk Panel-1.1-0': Internal Server Error: The running of command (cmd /c ""C:\Program Files (x86)\Parallels\Plesk\\bin\server_dns" --update-server -add-acl "192.0.2.2" <NUL 2>&1") returns 1 instead of 0. Command STDOUT: The DNS service is not installed.
Cause
Plesk installation got interrupted and re-run that resulted in disabled DNS service in the VPS.
Resolution
To fix the existing task, login into VPS and install bind into the VM via the following command:
C:\PleskInstaller.exe --console --select-product-id panel --select-release-current --remove-component dns
C:\PleskInstaller.exe --console --select-product-id panel --select-release-current --install-component dns
The same can be done from the Virtuozzo node via prlctl exec
without logging in to the VPS:
# prlctl exec VPS_NAME "C:\PleskInstaller.exe --console --select-product-id panel --select-release-current --remove-component dns"
# prlctl exec VPS_NAME "C:\PleskInstaller.exe --console --select-product-id panel --select-release-current --install-component dns"
After that the task should be completed successfully.
In order to avoid such behavior please try to perform one the following scenarios:
Disable auto-update option in the OS template the following way:
- Clone template to VM.
- Install all necessary Windows Updates.
- Reboot the system and switch "Update action" to "Download, but do not install updates".
- Create new OS template on the basis of the old one.
- Include new OS template in the Virtual Server Templates.
Disable auto-update option during the Plesk installation by adding the following line as preinstall script:
net stop wuauserv "C:\Windows\system32\reg.exe" add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 2 /f net start wuauserv
and the following as postinstall script:
net stop wuauserv "C:\Windows\system32\reg.exe" add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 4 /f net start wuauserv gpupdate /force
- Use a VM template with Plesk already installed: https://kb.cloudblue.com/en/125253