Operating System & Version
centos 7
cPanel & WHM Version
v92.0.3

smartshovon

Active Member
Sep 30, 2013
34
1
58
cPanel Access Level
Root Administrator
when i am trying to restart showing this error

Waiting for “pdns” to start ……info [restartsrv_pdns] systemd failed to start the service “pdns” (The “/usr/bin/systemctl restart pdns.service --no-ask-password” command (process 6843) reported error number 1 when it ended.): Job for pdns.service failed because the control process exited with error code. See "systemctl status pdns.service" and "journalctl -xe" for details.

…Waiting for named,mydns,nsd,pdns_server to shutdown ... not running.
info [restartsrv_pdns] systemd failed to start the service “pdns” (The “/usr/bin/systemctl restart pdns.service --no-ask-password” command (process 6854) reported error number 1 when it ended.): Job for pdns.service failed because the control process exited with error code. See "systemctl status pdns.service" and "journalctl -xe" for details.

…failed.

Cpanel::Exception::Services::StartError
Service Status
undefined status from Cpanel::ServiceManager::Services::Pdns

Service Error
(XID jwu9ak) The “pdns” service failed to start.

Startup Log
Nov 20 22:46:41 hostname systemd[1]: Failed to start PowerDNS Authoritative Server.
Nov 20 22:46:41 hostname systemd[1]: Unit pdns.service entered failed state.
Nov 20 22:46:41 hostname systemd[1]: pdns.service failed.
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
549
255
138
IN
cPanel Access Level
Root Administrator
What is the output of the following command?

/scripts/restartsrv_named
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,425
2,259
363
cPanel Access Level
Root Administrator
Hey there, @smartshovon

For issues where a service isn't starting, that log output usually isn't enough to help. For the DNS service, /var/log/messages may be helpful, or the two commands mentioned in that output could also provide more details, if they are run soon after the failed restart.

Code:
systemctl status pdns.service
journalctl -xe
Can you check those and report back? That may be enough to get us more details.