The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Problem with default nameservers

Discussion in 'Bind / DNS / Nameserver Issues' started by Russell Pope, Dec 10, 2016.

Tags:
  1. Russell Pope

    Russell Pope Registered

    Joined:
    Dec 10, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jacksonville, FL
    cPanel Access Level:
    Root Administrator
    Recently we've started getting errors any time we try to add domains, remove domains, subdomains and more.

    An example is removing a subdomain:
    There was a problem removing the subdomain “corp.example.com”.
    Bind reloading on server01 using rndc zone: [example.com] [A fatal error or timeout occurred while processing this directive.]


    Even with the error it still processes the request, However if I try to set up forwarding for a subdomain it will not save it.

    Also, even more odd is that if we go to a subdomain which doesn't exist, like for example NotReal.example.com we're getting redirected to another website, this happens for any subdomain to any domain hosted by us.
     
    #1 Russell Pope, Dec 10, 2016
    Last edited by a moderator: Dec 10, 2016
  2. Russell Pope

    Russell Pope Registered

    Joined:
    Dec 10, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jacksonville, FL
    cPanel Access Level:
    Root Administrator
    *Update* I found out why subdomains where being redirected, Under "Nameserver Record Report" for my ns2 there were "A" records for * and IP 198.89.xxx.xx, it was only for my ns2 records. Removed them from all domains and the subdomain redirects have stopped.

    I am still getting errors when adding subdomains, and if I try to add a redirect to an existing subdomain I am getting:
    “testrew.example.com” is currently being redirected to: ."

    and it doesn't save the redirect
     
    #2 Russell Pope, Dec 10, 2016
    Last edited by a moderator: Dec 10, 2016
  3. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    542
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    What exact error are you getting in cPanel error logs file ? Please update here so that we can try to assist you on this.
     
  4. Russell Pope

    Russell Pope Registered

    Joined:
    Dec 10, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jacksonville, FL
    cPanel Access Level:
    Root Administrator
    I tail'd the log error_log file, when I attempted to add a subdomain I get:

    Code:
    [2016-12-11 08:30:58 -0500] die [Internal Death while parsing [stdin] 20805] (XID dwyeuv) The system failed to read the directory “/var/cpanel/users” because of an error: No such file or directory at /usr/local/cpanel/Cpanel/FileUtils/Dir.pm line 75.
        Cpanel::FileUtils::Dir::_check_for_readdir_error("/var/cpanel/users") called at /usr/local/cpanel/Cpanel/FileUtils/Dir.pm line 62
        Cpanel::FileUtils::Dir::get_directory_nodes("/var/cpanel/users") called at /usr/local/cpanel/Cpanel/Userdomains/CORE.pm line 177
        Cpanel::Userdomains::CORE::update(Cpanel::Userdomains::CORE=HASH(0x41c85c8), "force", 0) called at /usr/local/cpanel/Cpanel/Userdomains.pm line 25
        Cpanel::Userdomains::updateuserdomains() called at /usr/local/cpanel/Cpanel/Sub.pm line 347
        Cpanel::Sub::addsubdomain(__CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 1, __CPANEL_HIDDEN__, ...) called at bin/admin/Cpanel/domain.pl line 193
    
    
    Cpanel::Exception::IO::DirectoryReadError/(XID dwyeuv) The system failed to read the directory “/var/cpanel/users” because of an error: No such file or directory
    at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 77.
        Cpanel::Exception::create("IO::DirectoryReadError", ARRAY(0x45de9b8)) called at /usr/local/cpanel/Cpanel/Exception.pm line 30
        Cpanel::Exception::__ANON__(__CPANEL_HIDDEN__, ARRAY(0x45de9b8)) called at /usr/local/cpanel/Cpanel/FileUtils/Dir.pm line 75
        Cpanel::FileUtils::Dir::_check_for_readdir_error("/var/cpanel/users") called at /usr/local/cpanel/Cpanel/FileUtils/Dir.pm line 62
        Cpanel::FileUtils::Dir::get_directory_nodes("/var/cpanel/users") called at /usr/local/cpanel/Cpanel/Userdomains/CORE.pm line 177
        Cpanel::Userdomains::CORE::update(Cpanel::Userdomains::CORE=HASH(0x41c85c8), "force", 0) called at /usr/local/cpanel/Cpanel/Userdomains.pm line 25
        Cpanel::Userdomains::updateuserdomains() called at /usr/local/cpanel/Cpanel/Sub.pm line 347
        Cpanel::Sub::addsubdomain(__CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 1, __CPANEL_HIDDEN__, ...) called at bin/admin/Cpanel/domain.pl line 193
    [2016-12-11 13:30:58 +0000] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request The adminbin “domain” in the “Cpanel” namespace call to function “ADD” ended prematurely: The subprocess reported error number 255 when it ended.: namespace=[Cpanel] module=[domain] function=[ADD]: set error in context subdomain: raw_response=[{"error":1,"mode":"simple","statusmsg":"The adminbin “domain” in the “Cpanel” namespace call to function “ADD” ended prematurely: The subprocess reported error number 255 when it ended.","action":"run","exit_code":65280,"status":1,"version":"2.4","timeout":0,"data":"[A fatal error or timeout occurred while processing this directive.]\n"}] at /usr/local/cpanel/Cpanel/Wrap.pm line 120, <$socket> line 1.
        Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "domain", "function", "ADD", "data", "test999 example.com 1 /home/awardweb/test999", "action", ...) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 58
        Cpanel::AdminBin::adminrun("domain", "ADD", "test999", "example.com", 1, "/home/awardweb/test999") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 316
        Cpanel::SubDomain::_addsubdomain("test999", "example.com", 1, 0, "") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 255
        Cpanel::SubDomain::api2_addsubdomain(__CPANEL_HIDDEN__, 1, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 120
        eval {...} called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 120
        Cpanel::Api2::Exec::api2_exec("SubDomain", "addsubdomain", HASH(0x2a177f0), HASH(0x51bd8c8)) called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 51
        eval {...} called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 51
        Cpanel::Template::Plugin::Api2::_api2_exec("SubDomain", "addsubdomain", HASH(0x51bd8c8)) called at /usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadddomain.html.tt line 2
        eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadddomain.html.tt line 2
        eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadddomain.html.tt line 16
        Template::Provider::__ANON__(Template::Context=HASH(0x55f5a70)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
        eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
        Template::Document::process(Template::Document=HASH(0x55e0de8), Template::Context=HASH(0x55f5a70)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
        eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
        Template::Context::process(Template::Context=HASH(0x55f5a70), Template::Document=HASH(0x55e0de8)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
        eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
        Template::Service::process(Template::Service=HASH(0x55f5698), "/usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadd"..., HASH(0x5318fb8)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
        Template::process(Template=HASH(0x4f22bc8), "/usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadd"..., HASH(0x5318fb8), SCALAR(0x28cec30)) called at /usr/local/cpanel/Cpanel/Template.pm line 427
        Cpanel::Template::process_template("cpanel", HASH(0x5318fb8), HASH(0x46a2c20)) called at cpanel.pl line 1221
        cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadd"..., 1) called at cpanel.pl line 5224
        cpanel::cpanel::run_standard_mode() called at cpanel.pl line 847
        cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/subdomain/doadddomain.html.tt") called at cpanel.pl line 306
    [2016-12-11 13:30:58 +0000] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[domain] function=[ADD]: set error in context subdomain: statusmsg=[The adminbin “domain” in the “Cpanel” namespace call to function “ADD” ended prematurely: The subprocess reported error number 255 when it ended.] at /usr/local/cpanel/Cpanel/Wrap.pm line 129, <$socket> line 1.
        Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "domain", "function", "ADD", "data", "test999 example.com 1 /home/awardweb/test999", "action", ...) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 58
        Cpanel::AdminBin::adminrun("domain", "ADD", "test999", "example.com", 1, "/home/awardweb/test999") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 316
        Cpanel::SubDomain::_addsubdomain("test999", "example.com", 1, 0, "") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 255
        Cpanel::SubDomain::api2_addsubdomain(__CPANEL_HIDDEN__, 1, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 120
        eval {...} called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 120
        Cpanel::Api2::Exec::api2_exec("SubDomain", "addsubdomain", HASH(0x2a177f0), HASH(0x51bd8c8)) called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 51
        eval {...} called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 51
        Cpanel::Template::Plugin::Api2::_api2_exec("SubDomain", "addsubdomain", HASH(0x51bd8c8)) called at /usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadddomain.html.tt line 2
        eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadddomain.html.tt line 2
        eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadddomain.html.tt line 16
        Template::Provider::__ANON__(Template::Context=HASH(0x55f5a70)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
        eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
        Template::Document::process(Template::Document=HASH(0x55e0de8), Template::Context=HASH(0x55f5a70)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
        eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
        Template::Context::process(Template::Context=HASH(0x55f5a70), Template::Document=HASH(0x55e0de8)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
        eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
        Template::Service::process(Template::Service=HASH(0x55f5698), "/usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadd"..., HASH(0x5318fb8)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
        Template::process(Template=HASH(0x4f22bc8), "/usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadd"..., HASH(0x5318fb8), SCALAR(0x28cec30)) called at /usr/local/cpanel/Cpanel/Template.pm line 427
        Cpanel::Template::process_template("cpanel", HASH(0x5318fb8), HASH(0x46a2c20)) called at cpanel.pl line 1221
        cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/subdomain/doadd"..., 1) called at cpanel.pl line 5224
        cpanel::cpanel::run_standard_mode() called at cpanel.pl line 847
        cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/subdomain/doadddomain.html.tt") called at cpanel.pl line 306
    [2016-12-11 13:30:58 +0000] warn [SubDomain::addsubdomain] Encountered error in SubDomain::addsubdomain: [A fatal error or timeout occurred while processing this directive.]
    
    
    And trying to add a redirect to the newly created subdomain:

    Code:
    ----start add redirect---
    [2016-12-11 13:36:09 +0000] warn [SubDomain::setsuburl] Encountered error in SubDomain::setsuburl: SubDomain::setsuburl(test999_example.com,http://google.com) failed: (XID mtx5cj) The system failed to read the directory “/usr/local/cpanel/Cpanel/SSL/Auto/Provider” because of an error: No such file or directory
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify there are no filesystem issues on the server (e.g. partitions in read-only mode)? For instance, the error message suggests cPanel is unable to read directories such as /var/cpanel/users and /usr/local/cpanel/Cpanel/SSL/Auto/Provider. Try browsing to those directories and creating test files. Here are some sample commands to use:

    Code:
    mkdir /var/cpanel/users/cpanel-testing
    touch /var/cpanel/users/cpanel-testing/123
    stat /var/cpanel/users
    Thank you.
     
Loading...

Share This Page