Symptoms
-
In an attempt to upgrade Plesk from 18.0.41 version to 18.0.42:
ERROR: PleskUpgradeException: dnsmng failed: sh: 1: /opt/psa/admin/bin/dnsmng: not found (upgrade.php:46)
0: /opt/psa/admin/plib/Upgrade/upgrade.php:46 -
After Plesk is inaccessible with the same error or:
Server Error
500 PleskUtilException
dnsmng failed: sh: /usr/local/psa/admin/bin/dnsmng: No such file or directory -
The bind9 component is either not installed on the server:
# dpkg -l | grep bind9
Empty OutputOr the package
plesk-dns-bind-driver
is missing:# rpm -qa | grep bind
bind-license-9.11.4-26.P2.el7_9.9.noarch
bind-9.11.4-26.P2.el7_9.9.x86_64
bind-utils-9.11.4-26.P2.el7_9.9.x86_64
bind-export-libs-9.11.4-26.P2.el7_9.9.x86_64
bind-libs-9.11.4-26.P2.el7_9.9.x86_64
bind-chroot-9.11.4-26.P2.el7_9.9.x86_64
bind-libs-lite-9.11.4-26.P2.el7_9.9.x86_64 -
Custom dnsConnector can be found in ServiceNodeConfiguration database table:
# plesk db "select * from ServiceNodeConfiguration where section = 'dnsConnector'"
+---------------+--------------+---------------+-----------------------------------------------------------------+
| serviceNodeId | section | name | value |
+---------------+--------------+---------------+-----------------------------------------------------------------+
| 1 | dnsConnector | custom | true |
| 1 | dnsConnector | custom_script | "/opt/psa/bin/extension" --exec slave-dns-manager slave-dns.php |
+---------------+--------------+---------------+-----------------------------------------------------------------+
Cause
Product issue:
-
#PPPM-13466 "Plesk updates no longer fail on Plesk servers that do not have BIND installed and are using a different DNS server."
Fixed in:- Plesk Obsidian 15 March 2022 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
The issue should be fixed in 18.0.42.1 on March 15, 2022.
As the workaround:
- Install bind9 component via Plesk > Tools & Settings > Updates> Add/Remove Components> BIND DNS server or using the
plesk installer
command:# plesk installer add --components bind
- Repair DNS configuration
# plesk repair dns -y