Applicable to:
- Plesk for Linux
Symptoms
-
Plesk is installed on a server with Debian-based OS:
# plesk -v
Product version: Plesk Obsidian 18.0.46.0
OS version: Debian 10.12 x86_64
Build date: 2022/08/14 12:00
Revision: 3b2c5d7f19439be1047aafee8936319f6eddf252 -
BIND9 service unable to start with the following errors in the file
/var/log/syslog
:CONFIG_TEXT: named[18893]: couldn't mkdir '//run': Permission denied
named[18893]: could not create //run/named/session.key
named[18893]: failed to generate session key for dynamic DNS: permission denied
Cause
Incorrect configuration of the service bind9
in the file /lib/systemd/system/bind9.service
.
Resolution
-
Connect to the server via using SSH.
-
Backup the original file:
# cp /lib/systemd/system/bind9.service /lib/systemd/system/bind9.service.backup
-
Download the default version of the file
/lib/systemd/system/bind9.service
and unpack it:# wget https://plesk.zendesk.com/hc/article_attachments/360032575953/bind9.tar.gz
# tar -xf bind9.tar.gz -
Move to the unpacked file to the required directory:
# mv -f bind9.service /lib/systemd/system/
-
Ensure that the the directory for the session key is exists:
# mkdir -p /var/named/run-root/run/named
# chown -R bind:bind /var/named/run-root/run -
Reload the systemd configuration and start BIND:
# systemctl daemon-reload
# systemctl start bind9
Comments
2 comments
Works perfectly!!!!!!! You save my life thanks!!
Only discovered today...
Same problem here on Ubuntu 18.04.6 LTS and Plesk Obsidian.
Seems now fixed.
This might explain several problems related to updates on DNS.
Please sign in to leave a comment.