SOLVED Could not store zonedata for xxx on server

hub2000

Active Member
Dec 18, 2017
32
5
8
germany
cPanel Access Level
Root Administrator
Hello,

I constantly get the following error when trying to add a domain or addon-domain:
Error: Sorry, An error occurred while adding dns zone: Could not store zonedata for xxx on server

Even when i delete the DNS Zone before in WHM…and performed a DNS clean-up.
Allow Remote Domains = On
DNS points to the server IP


Could you help, please?
 

cPJustinD

Administrator
Staff member
Jan 12, 2021
183
34
103
Houston
cPanel Access Level
Root Administrator
Hello hub2000! Unfortunately, the error message provided doesn't provide much information. Could you please run the following command while reproducing the error and provide the output?

tail -fn0 /usr/local/cpanel/logs/error_log

This should provide more information on the actual error that is encountered when attempting to add a domain.
 

hub2000

Active Member
Dec 18, 2017
32
5
8
germany
cPanel Access Level
Root Administrator
Bash:
[2021-06-12 09:10:01 +0200] info [dnsadmin] Error encountered by “/usr/bin/pdns_control” when running command: “bind-add-zone -- domainxyz.xy /var/named/domainxyz.xy.db”
[2021-06-12 09:10:01 +0200] info [dnsadmin] The “/usr/bin/pdns_control bind-add-zone -- domainxyz.xy /var/named/domainxyz.xy.db” command (process 17486) reported error number 2 when it ended.: exec(/usr/bin/pdns_control) failed:
[2021-06-12 09:10:01 +0200] info [dnsadmin] Error encountered by “/usr/bin/pdns_control” when running command: “bind-remove-zone -- domainxyz.xy”
[2021-06-12 09:10:01 +0200] info [dnsadmin] The “/usr/bin/pdns_control bind-remove-zone -- domainxyz.xy” command (process 17487) reported error number 2 when it ended.: exec(/usr/bin/pdns_control) failed:
[2021-06-12 09:10:01 +0200] warn [dnsadmin] domainxyz.xy does not exist in named.conf at /usr/local/cpanel/Cpanel/NameServer/Conf/BIND.pm line 446, <$_[...]> line 8.
        Cpanel::NameServer::Conf::BIND::removezones(Cpanel::NameServer::Conf::PowerDNS=HASH(0x1a15640), "domainxyz.xy") called at /usr/local/cpanel/Cpanel/NameServer/Conf/PowerDNS.pm line 236
        Cpanel::NameServer::Conf::PowerDNS::remove_zone_config(Cpanel::NameServer::Conf::PowerDNS=HASH(0x1a15640), ARRAY(0xf01b88)) called at /usr/local/cpanel/Cpanel/NameServer/Conf/PowerDNS.pm line 217
        Cpanel::NameServer::Conf::PowerDNS::removezones(Cpanel::NameServer::Conf::PowerDNS=HASH(0x1a15640), "domainxyz.xy") called at /usr/local/cpanel/Cpanel/NameServer/Conf/BIND.pm line 507
        Cpanel::NameServer::Conf::BIND::removezone(Cpanel::NameServer::Conf::PowerDNS=HASH(0x1a15640), "domainxyz.xy") called at /usr/local/cpanel/Cpanel/NameServer/Local/cPanel.pm line 751
        Cpanel::NameServer::Local::cPanel::quickzoneadd(Cpanel::NameServer::Local::cPanel=HASH(0x1a154d8), "we33O2M8gDtdwzX02zW0qcDZ0acYgFYb_1623481801", HASH(0x18ea818), "zone=domainxyz.xy&zonedata=%3b%20cPanel%2096.0.9%0a"...) called at whostmgr/bin/dnsadmin.pl line 1170
        main::_action_handler("QUICKZONEADD", "local", "we33O2M8gDtdwzX02zW0qcDZ0acYgFYb_1623481801", HASH(0x18ea818), "zone=domainxyz.xy&zonedata=%3b%20cPanel%2096.0.9%0a"...) called at whostmgr/bin/dnsadmin.pl line 1203
        main::local_action_handler("QUICKZONEADD") called at whostmgr/bin/dnsadmin.pl line 907
        main::handle_request(GLOB(0x18aeb18), "QUICKZONEADD", ARRAY(0x17f8030), 965) called at whostmgr/bin/dnsadmin.pl line 592
        eval {...} called at whostmgr/bin/dnsadmin.pl line 592
        main::_handle_one_connection(GLOB(0x18aeb18)) called at whostmgr/bin/dnsadmin.pl line 511
        main::_handle_accepted_socket(GLOB(0x18aeb18), GLOB(0xeb0558)) called at whostmgr/bin/dnsadmin.pl line 438
        main::run("main") called at whostmgr/bin/dnsadmin.pl line 320
[2021-06-12 09:10:01 +0200] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request adminbin Cpanel/park/ADD: exit 1: namespace=[Cpanel] module=[park] function=[ADD]: set error in context park: raw_response=[{"action":"run","version":"2.4","data":"Sorry, An error occurred while adding dns zone: Could not store zonedata for domainxyz.xy on server\n","timeout":0,"status":1,"mode":"simple","exit_code":256,"error":1,"statusmsg":"adminbin Cpanel/park/ADD: exit 1"}] at /usr/local/cpanel/Cpanel/Wrap.pm line 120, <$socket> line 1.
        Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "park", "function", "ADD", "data", "domainxyz.xy  1 0", ...) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 57
        Cpanel::AdminBin::adminrun("park", "ADD", "domainxyz.xy", undef, 1, 0) called at /usr/local/cpanel/Cpanel/Park.pm line 297
        Cpanel::Park::_park("domainxyz.xy", undef, undef) called at /usr/local/cpanel/Cpanel/Park.pm line 162
        Cpanel::Park::api2_park("domain", "domainxyz.xy", "cpanel_jsonapi_func", "park", "cpanel_jsonapi_module", "Park", "cpanel_jsonapi_apiversion", 2) called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 153
        eval {...} called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 153
        Cpanel::Api2::Exec::api2_exec("Park", "park", HASH(0x1f98fb8), HASH(0x1f98cd0)) called at cpanel.pl line 1375
        cpanel::cpanel::docpanelaction(HASH(0x1f98e38)) called at cpanel.pl line 4573
        cpanel::cpanel::run_fast_json_mode() called at cpanel.pl line 928
        cpanel::cpanel::script("cpanel::cpanel", "--json-fast-connect", "--stdin") called at cpanel.pl line 328
[2021-06-12 09:10:01 +0200] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[park] function=[ADD]: set error in context park: statusmsg=[adminbin Cpanel/park/ADD: exit 1] at /usr/local/cpanel/Cpanel/Wrap.pm line 129, <$socket> line 1.
        Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "park", "function", "ADD", "data", "domainxyz.xy  1 0", ...) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 57
        Cpanel::AdminBin::adminrun("park", "ADD", "domainxyz.xy", undef, 1, 0) called at /usr/local/cpanel/Cpanel/Park.pm line 297
        Cpanel::Park::_park("domainxyz.xy", undef, undef) called at /usr/local/cpanel/Cpanel/Park.pm line 162
        Cpanel::Park::api2_park("domain", "domainxyz.xy", "cpanel_jsonapi_func", "park", "cpanel_jsonapi_module", "Park", "cpanel_jsonapi_apiversion", 2) called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 153
        eval {...} called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 153
        Cpanel::Api2::Exec::api2_exec("Park", "park", HASH(0x1f98fb8), HASH(0x1f98cd0)) called at cpanel.pl line 1375
        cpanel::cpanel::docpanelaction(HASH(0x1f98e38)) called at cpanel.pl line 4573
        cpanel::cpanel::run_fast_json_mode() called at cpanel.pl line 928
        cpanel::cpanel::script("cpanel::cpanel", "--json-fast-connect", "--stdin") called at cpanel.pl line 328
I replaced my domain by domainxyz.xy

Thank you
 

cPJustinD

Administrator
Staff member
Jan 12, 2021
183
34
103
Houston
cPanel Access Level
Root Administrator
It looks like that domain didn't exist in the named configuration. I do find it strange though that it would give an error about the domain not existing in the config if you're just now adding it.


I think it would be best to open a support ticket so that our analysts can review the issue more thoroughly and determine what exactly is occurring. You can submit a support request using the "Submit a ticket" link in my signature below.

Please be sure to link this thread when opening the ticket and provide the ticket number here so that we can track the issue appropriately. If possible, please post the resolution on this thread as it may help other community members with similar issues.
 

hub2000

Active Member
Dec 18, 2017
32
5
8
germany
cPanel Access Level
Root Administrator
Solution:
I found that your server didn't have the cpanel-pdns service installed.
Trying to install with yum, the package manager was unable to find the package
I have switched from PowerDNS to BIND and back in WHM Home »Service Configuration »Nameserver Selection and the cpanel-pdns package was installed.
And the service is up and running

After that i was able to add domains again
 
Last edited:
  • Like
Reactions: cPRex and cPJustinD