Today when i was trying to start the Bind service within plesk, the following error appears:
Unable to make action: Unable to manage service by dnsmng: ('start', 'dns'). Error: dnsmng: Service /etc/init.d/bind9 failed to start
When i check the log messages into /var/log/messages:
kernel: [ 6858.107517] type=1503 audit(1375351936.035:25): operation="open"pid=21824 parent=21822 profile="/usr/sbin/named" requested_mask="::r" denied_mask="::r" fsuid=107 ouid=0 name="/var/named/run-root/etc/named.conf"
To resolve this error first of all check :
dpkg --status apparmor | grep -i status
Status: install ok installed
If the above command shows that AppArmor is installed on the system,Then you can proceed with the further solution:
Stop and disable AppArmor using below commands:
# /etc/init.d/apparmor stop # /etc/init.d/apparmor teardown # update-rc.d -f apparmor remove
Update/re-install BIND packages using:
apt-get install bind9
Finally update the list of installed components in Plesk:
# /opt/psa/admin/bin/packagemng --set-dirty-flag # /opt/psa/admin/bin/packagemng --list