cPanel Bug causing fixrndc to never complete on CentOS 6

If you are having problems on a recent cPanel installation on CentOS linux where /scripts/fixrndc starts and never completes this may fix your issue. I have noted that this is currently an issue on (at least) cPanel/WHM Release 11.32.3 but may also affect other versions.

After chatting with Michael from cPanel Support he has stated: “The basic issue is that on Centos 6 the /etc/init.d/named script needs to use the “portrelease” command before it can bind port 953. Such a line isn’t present in the default /etc/init.d/named script provided by the cPanel installer. Reinstalling bind installs a working /etc/init.d/named.”

This can manifest in the following ways (I have found so far):

  • EasyApache pauses on /scripts/fixrndc and never completes
  • Initial server GetStarted Wizard does not complete setting up bind and gets stuck
  • /scripts/upcp –force freezes and does not complete

These are the cases I have seen thus far. If you run /scripts/rndc manually you will likely get the following output:

warn [fixrndc] /usr/sbin/rndc status failed: WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)rndc: connect failed: 127.0.0.1#953: connection refused
warn [fixrndc] /usr/sbin/rndc status failed: WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)rndc: connect failed: 127.0.0.1#953: connection refused
Restarting named
warn [fixrndc] /usr/sbin/rndc status failed: WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)rndc: connect failed: 127.0.0.1#953: connection refused

The simple fix for this is to reinstall BIND using yum. All you need to do is execute:

yum reinstall bind

And the problem will be fixed. Michael has informed me that this will be fixed in a future update to cPanel. Kudos to him and the cPanel support team for getting me back up and running in RECORD fast time.

Stuart 😀

 

  • Bahram0110

    Problem not fixed with yum reinstall bind

  • StuartCRyan

    Hi Bahram, I would recommend you open a ticket with cPanel support.

    I had this issue across about six different servers and all were fixed with the above so there may be something more specific to your environment that they could assist with.

    Cheers
    Stuart