Creating Subdomain with One Character Error

Luana Premoli

Well-Known Member
Oct 3, 2016
59
6
8
São Paulo/Brazil
cPanel Access Level
Root Administrator
Hi,

When we try to create a subdomain with 1 character the error in cpanel is displayed:


Code:
Houve um problema na criação do subdomínio:
O subdomínio “l.example.com.br” foi adicionado.: Unable to set up domain keys for 'l.example.com.br': Cpanel::DnsUtils::Install::Processor:551: The zone "example.com.br" could not be parsed because of an error: There was an error while loading the zone for example.com.br. Please correct any errors in this zone manually and try again. The exact error from the parser was: expected valid minimum, line 8: [    86400    )] at /usr/local/cpanel/Cpanel/ZoneFile/Collection.pm line 56. Cpanel::DnsUtils::Install::Processor:488: The zone “example.com.br” is empty. Modification of “default._domainkey.l.example.com.br.:TXT” failed.


The subdomain is created and displayed in the cpanel, and the DNS entry is added in the DNS zone of the main domain.

Code:
l IN A  162.241.3.4
www.l IN A  162.241.3.4
In the /usr/local/cpanel/logs/error_log file is shown:

Code:
[2019-01-14 16:00:14 -0200] warn [domain] Error while parsing zonedata for 1domain.com.br: expected valid minimum, line 8
        ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 169.
 at /usr/local/cpanel/Cpanel/ZoneFile.pm line 79.
        Cpanel::ZoneFile::new("Cpanel::ZoneFile::Edit", "domain", "1domain.com.br", "text", ARRAY(0x43899d0)) called at /usr/local/cpanel/Cpanel/ZoneFile/Collection.pm line 51
        eval {...} called at /usr/local/cpanel/Cpanel/ZoneFile/Collection.pm line 51
        Cpanel::ZoneFile::Collection::create_zone_file_objs(HASH(0x1380628)) called at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 553
        Cpanel::DnsUtils::Install::Processor::_create_zone_file_objs(Cpanel::DnsUtils::Install::Processor=HASH(0x4271d60), HASH(0x1380628)) called at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 594
        Cpanel::DnsUtils::Install::Processor::_load_zones_and_find_op_zone_targets(Cpanel::DnsUtils::Install::Processor=HASH(0x4271d60), undef) called at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 182
        Cpanel::DnsUtils::Install::Processor::_process_dnsrecord_operations("Cpanel::DnsUtils::Install::Processor", "dns_record_operations", HASH(0x1347bb0), "pre_fetched_zones", undef, "reload", 0, "replace_records", ...) called at /usr/local/cpanel/Cpanel/DnsUtils/Install.pm line 593
        Cpanel::DnsUtils::Install::_install_records("TXT", ARRAY(0x134dd00), ARRAY(0x43e01c8), undef, 1, undef) called at /usr/local/cpanel/Cpanel/DnsUtils/Install.pm line 563
        Cpanel::DnsUtils::Install::install_txt_records(ARRAY(0x134dd00), ARRAY(0x43e01c8), undef, 1, undef) called at /usr/local/cpanel/Cpanel/DKIM.pm line 158
        Cpanel::DKIM::setup_domain_keys(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 1) called at /usr/local/cpanel/Cpanel/Sub.pm line 395
        Cpanel::Sub::_create_subdomain(__CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at /usr/local/cpanel/Cpanel/Sub.pm line 72
        Cpanel::Sub::addsubdomain(__CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at bin/admin/Cpanel/domain.pl line 183
        bin::admin::Cpanel::domain::__ANON__() called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Try/Tiny.pm line 95
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Try/Tiny.pm line 90
        Try::Tiny::try(CODE(0x32fb3c0), Try::Tiny::Catch=REF(0x1273ae0)) called at bin/admin/Cpanel/domain.pl line 196
        bin::admin::Cpanel::domain::script("bin::admin::Cpanel::domain") called at bin/admin/Cpanel/domain.pl line 41
warn [domain] Error while parsing zonedata for 1domain.com.br: expected valid minimum, line 8
        ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 169.

[2019-01-14 16:00:14 -0200] warn [domain] Cpanel::DnsUtils::Install::Processor::_add_error: The zone "1domain.com.br" could not be parsed because of an error: There was an error while loading the zone for 1domain.com.br.  Please correct any errors in this zone manually and try again.  The exact error from the parser was: expected valid minimum, line 8: [   86400    )] at /usr/local/cpanel/Cpanel/ZoneFile/Collection.pm line 56.
 at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 223.
        Cpanel::DnsUtils::Install::Processor::_add_error(Cpanel::DnsUtils::Install::Processor=HASH(0x4271d60), "The zone \"1domain.com.br\" could not be parsed because of "...) called at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 551
        Cpanel::DnsUtils::Install::Processor::__ANON__(__CPANEL_HIDDEN__...) called at /usr/local/cpanel/Cpanel/ZoneFile/Collection.pm line 56
        Cpanel::ZoneFile::Collection::create_zone_file_objs(HASH(0x1380628)) called at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 553
        Cpanel::DnsUtils::Install::Processor::_create_zone_file_objs(Cpanel::DnsUtils::Install::Processor=HASH(0x4271d60), HASH(0x1380628)) called at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 594
        Cpanel::DnsUtils::Install::Processor::_load_zones_and_find_op_zone_targets(Cpanel::DnsUtils::Install::Processor=HASH(0x4271d60), undef) called at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 182
        Cpanel::DnsUtils::Install::Processor::_process_dnsrecord_operations("Cpanel::DnsUtils::Install::Processor", "dns_record_operations", HASH(0x1347bb0), "pre_fetched_zones", undef, "reload", 0, "replace_records", ...) called at /usr/local/cpanel/Cpanel/DnsUtils/Install.pm line 593
        Cpanel::DnsUtils::Install::_install_records("TXT", ARRAY(0x134dd00), ARRAY(0x43e01c8), undef, 1, undef) called at /usr/local/cpanel/Cpanel/DnsUtils/Install.pm line 563
        Cpanel::DnsUtils::Install::install_txt_records(ARRAY(0x134dd00), ARRAY(0x43e01c8), undef, 1, undef) called at /usr/local/cpanel/Cpanel/DKIM.pm line 158
        Cpanel::DKIM::setup_domain_keys(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 1) called at /usr/local/cpanel/Cpanel/Sub.pm line 395
        Cpanel::Sub::_create_subdomain(__CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at /usr/local/cpanel/Cpanel/Sub.pm line 72
        Cpanel::Sub::addsubdomain(__CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at bin/admin/Cpanel/domain.pl line 183
        bin::admin::Cpanel::domain::__ANON__() called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Try/Tiny.pm line 95
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Try/Tiny.pm line 90
        Try::Tiny::try(CODE(0x32fb3c0), Try::Tiny::Catch=REF(0x1273ae0)) called at bin/admin/Cpanel/domain.pl line 196
        bin::admin::Cpanel::domain::script("bin::admin::Cpanel::domain") called at bin/admin/Cpanel/domain.pl line 41
warn [domain] Cpanel::DnsUtils::Install::Processor::_add_error: The zone "1domain.com.br" could not be parsed because of an error: There was an error while loading the zone for 1domain.com.br.  Please correct any errors in this zone manually and try again.  The exact error from the parser was: expected valid minimum, line 8: [                               86400    )] at /usr/local/cpanel/Cpanel/ZoneFile/Collection.pm line 56.

[2019-01-14 16:00:14 -0200] warn [domain] Cpanel::DnsUtils::Install::Processor::_add_error: The zone “1domain.com.br” is empty. Modification of “default._domainkey.l.1domain.com.br.:TXT” failed. at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 223.
        Cpanel::DnsUtils::Install::Processor::_add_error(Cpanel::DnsUtils::Install::Processor=HASH(0x4271d60), "The zone \x{e2}\x{80}\x{9c}1domain.com.br\x{e2}\x{80}\x{9d} is empty. Modification of \x{e2}"...) called at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 488
        Cpanel::DnsUtils::Install::Processor::_add_records_that_do_not_already_exist(Cpanel::DnsUtils::Install::Processor=HASH(0x4271d60)) called at /usr/local/cpanel/Cpanel/DnsUtils/Install/Processor.pm line 193
        Cpanel::DnsUtils::Install::Processor::_process_dnsrecord_operations("Cpanel::DnsUtils::Install::Processor", "dns_record_operations", HASH(0x1347bb0), "pre_fetched_zones", undef, "reload", 0, "replace_records", ...) called at /usr/local/cpanel/Cpanel/DnsUtils/Install.pm line 593
        Cpanel::DnsUtils::Install::_install_records("TXT", ARRAY(0x134dd00), ARRAY(0x43e01c8), undef, 1, undef) called at /usr/local/cpanel/Cpanel/DnsUtils/Install.pm line 563
        Cpanel::DnsUtils::Install::install_txt_records(ARRAY(0x134dd00), ARRAY(0x43e01c8), undef, 1, undef) called at /usr/local/cpanel/Cpanel/DKIM.pm line 158
        Cpanel::DKIM::setup_domain_keys(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 1) called at /usr/local/cpanel/Cpanel/Sub.pm line 395
        Cpanel::Sub::_create_subdomain(__CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at /usr/local/cpanel/Cpanel/Sub.pm line 72
        Cpanel::Sub::addsubdomain(__CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at bin/admin/Cpanel/domain.pl line 183
        bin::admin::Cpanel::domain::__ANON__() called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Try/Tiny.pm line 95
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Try/Tiny.pm line 90
        Try::Tiny::try(CODE(0x32fb3c0), Try::Tiny::Catch=REF(0x1273ae0)) called at bin/admin/Cpanel/domain.pl line 196
        bin::admin::Cpanel::domain::script("bin::admin::Cpanel::domain") called at bin/admin/Cpanel/domain.pl line 41
warn [domain] Cpanel::DnsUtils::Install::Processor::_add_error: The zone “1domain.com.br” is empty. Modification of “default._domainkey.l.1domain.com.br.:TXT” failed.
[2019-01-14 16:00:14 -0200] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request adminbin Cpanel/domain/ADD: exit 1: namespace=[Cpanel] module=[domain] function=[ADD]: set error in context subdomain: raw_response=[{__CPANEL_HIDDEN__:__CPANEL_HIDDEN__,__CPANEL_HIDDEN__:0,__CPANEL_HIDDEN__:__CPANEL_HIDDEN__,__CPANEL_HIDDEN__:__CPANEL_HIDDEN__,__CPANEL_HIDDEN__:1,__CPANEL_HIDDEN__:__CPANEL_HIDDEN__,__CPANEL_HIDDEN__:256,__CPANEL_HIDDEN__:__CPANEL_HIDDEN__,__CPANEL_HIDDEN__:1}] at /usr/local/cpanel/Cpanel/Wrap.pm line 119, <$socket> line 1.
        Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "domain", "function", "ADD", "data", "l 1domain.com.br 1 /home2/minut10/public_html/l.1minutene"..., ...) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 57
        Cpanel::AdminBin::adminrun("domain", "ADD", "l", "1domain.com.br", 1, "/home2/minut10/public_html/l.1domain.com.br", 0, 0, ...) called at /usr/local/cpanel/Cpanel/SubDomain.pm line 364
        Cpanel::SubDomain::_addsubdomain("l", "1domain.com.br", 1, 0, "public_html/l.1domain.com.br") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 287
        Cpanel::SubDomain::api2_addsubdomain(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 1, __CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 123
        eval {...} called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 123
        Cpanel::Api2::Exec::api2_exec("SubDomain", "addsubdomain", HASH(0x3b06a28), HASH(0x38df450)) called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 62
        eval {...} called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 62
        Cpanel::Template::Plugin::Api2::_api2_exec("SubDomain", "addsubdomain", HASH(0x38df450)) called at /var/cpanel/template_compiles//usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doadddomain.html.tt line 1
        eval {...} called at /var/cpanel/template_compiles//usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doadddomain.html.tt line 1
        eval {...} called at /var/cpanel/template_compiles//usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doadddomain.html.tt line 1
        Template::Provider::__ANON__(Template::Context=HASH(0x38d3750)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
        Template::Document::process(Template::Document=HASH(0x38d0e08), Template::Context=HASH(0x38d3750)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 357
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 327
        Template::Context::process(Template::Context=HASH(0x38d3750), Template::Document=HASH(0x38d0e08)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
        Template::Service::process(Template::Service=HASH(0x388cfd0), "/usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doa"..., HASH(0x1653b40)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 64
        Template::process(Template=HASH(0x388cb50), "/usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doa"..., HASH(0x1653b40), SCALAR(0x1779b88)) called at /usr/local/cpanel/Cpanel/Template.pm line 501
        Cpanel::Template::process_template("cpanel", HASH(0x1653b40), HASH(0x179cf40)) called at cpanel.pl line 1031
        cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doa"..., 1) called at cpanel.pl line 4408
        cpanel::cpanel::run_standard_mode() called at cpanel.pl line 864
        cpanel::cpanel::script("cpanel::cpanel", "./frontend/hostgator_latam/subdomain/doadddomain.html.tt") called at cpanel.pl line 271
warn [cpanel] Cpanel::Wrap::send_cpwrapd_request adminbin Cpanel/domain/ADD: exit 1: namespace=[Cpanel] module=[domain] function=[ADD]: set error in context subdomain: raw_response=[{"statusmsg":"adminbin Cpanel/domain/ADD: exit 1","timeout":0,"data":"O subdomínio “l.1domain.com.br” foi adicionado.: Unable to set up domain keys for 'l.1domain.com.br': Cpanel::DnsUtils::Install::Processor:551: The zone \"1domain.com.br\" could not be parsed because of an error: There was an error while loading the zone for 1domain.com.br.  Please correct any errors in this zone manually and try again.  The exact error from the parser was: expected valid minimum, line 8: [\t\t\t\t\t\t86400\t)] at /usr/local/cpanel/Cpanel/ZoneFile/Collection.pm line 56.\n\nCpanel::DnsUtils::Install::Processor:488: The zone “1domain.com.br” is empty. Modification of “default._domainkey.l.1domain.com.br.:TXT” failed.","mode":"simple","status":1,"version":"2.4","exit_code":256,"action":"run","error":1}]
[2019-01-14 16:00:14 -0200] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[domain] function=[ADD]: set error in context subdomain: statusmsg=[adminbin Cpanel/domain/ADD: exit 1] at /usr/local/cpanel/Cpanel/Wrap.pm line 128, <$socket> line 1.
        Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "domain", "function", "ADD", "data", "l 1domain.com.br 1 /home2/minut10/public_html/l.1minutene"..., ...) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 57
        Cpanel::AdminBin::adminrun("domain", "ADD", "l", "1domain.com.br", 1, "/home2/minut10/public_html/l.1domain.com.br", 0, 0, ...) called at /usr/local/cpanel/Cpanel/SubDomain.pm line 364
        Cpanel::SubDomain::_addsubdomain("l", "1domain.com.br", 1, 0, "public_html/l.1domain.com.br") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 287
        Cpanel::SubDomain::api2_addsubdomain(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 1, __CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 123
        eval {...} called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 123
        Cpanel::Api2::Exec::api2_exec("SubDomain", "addsubdomain", HASH(0x3b06a28), HASH(0x38df450)) called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 62
        eval {...} called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 62
        Cpanel::Template::Plugin::Api2::_api2_exec("SubDomain", "addsubdomain", HASH(0x38df450)) called at /var/cpanel/template_compiles//usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doadddomain.html.tt line 1
        eval {...} called at /var/cpanel/template_compiles//usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doadddomain.html.tt line 1
        eval {...} called at /var/cpanel/template_compiles//usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doadddomain.html.tt line 1
        Template::Provider::__ANON__(Template::Context=HASH(0x38d3750)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
        Template::Document::process(Template::Document=HASH(0x38d0e08), Template::Context=HASH(0x38d3750)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 357
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 327
        Template::Context::process(Template::Context=HASH(0x38d3750), Template::Document=HASH(0x38d0e08)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
        Template::Service::process(Template::Service=HASH(0x388cfd0), "/usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doa"..., HASH(0x1653b40)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 64
        Template::process(Template=HASH(0x388cb50), "/usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doa"..., HASH(0x1653b40), SCALAR(0x1779b88)) called at /usr/local/cpanel/Cpanel/Template.pm line 501
        Cpanel::Template::process_template("cpanel", HASH(0x1653b40), HASH(0x179cf40)) called at cpanel.pl line 1031
        cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doa"..., 1) called at cpanel.pl line 4408
        cpanel::cpanel::run_standard_mode() called at cpanel.pl line 864
        cpanel::cpanel::script("cpanel::cpanel", "./frontend/hostgator_latam/subdomain/doadddomain.html.tt") called at cpanel.pl line 271
warn [cpanel] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[domain] function=[ADD]: set error in context subdomain: statusmsg=[adminbin Cpanel/domain/ADD: exit 1]
[2019-01-14 16:00:14 -0200] warn [cpanel] Encountered error in SubDomain::addsubdomain: O subdomínio “l.1domain.com.br” foi adicionado.: Unable to set up domain keys for 'l.1domain.com.br': Cpanel::DnsUtils::Install::Processor:551: The zone "1domain.com.br" could not be parsed because of an error: There was an error while loading the zone for 1domain.com.br.  Please correct any errors in this zone manually and try again.  The exact error from the parser was: expected valid minimum, line 8: [                                       86400    )] at /usr/local/cpanel/Cpanel/ZoneFile/Collection.pm line 56.

Cpanel::DnsUtils::Install::Processor:488: The zone “1domain.com.br” is empty. Modification of “default._domainkey.l.1domain.com.br.:TXT” failed. at /usr/local/cpanel/Cpanel/EventHandler.pm line 112.
        Cpanel::EventHandler::post_event(2, "post", "SubDomain", "addsubdomain", HASH(0x38df450), ARRAY(0x38df228)) called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 154
        Cpanel::Api2::Exec::api2_exec("SubDomain", "addsubdomain", HASH(0x3b06a28), HASH(0x38df450)) called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 62
        eval {...} called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 62
        Cpanel::Template::Plugin::Api2::_api2_exec("SubDomain", "addsubdomain", HASH(0x38df450)) called at /var/cpanel/template_compiles//usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doadddomain.html.tt line 1
        eval {...} called at /var/cpanel/template_compiles//usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doadddomain.html.tt line 1
        eval {...} called at /var/cpanel/template_compiles//usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doadddomain.html.tt line 1
        Template::Provider::__ANON__(Template::Context=HASH(0x38d3750)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
        Template::Document::process(Template::Document=HASH(0x38d0e08), Template::Context=HASH(0x38d3750)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 357
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 327
        Template::Context::process(Template::Context=HASH(0x38d3750), Template::Document=HASH(0x38d0e08)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
        eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
        Template::Service::process(Template::Service=HASH(0x388cfd0), "/usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doa"..., HASH(0x1653b40)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 64
        Template::process(Template=HASH(0x388cb50), "/usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doa"..., HASH(0x1653b40), SCALAR(0x1779b88)) called at /usr/local/cpanel/Cpanel/Template.pm line 501
        Cpanel::Template::process_template("cpanel", HASH(0x1653b40), HASH(0x179cf40)) called at cpanel.pl line 1031
        cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/hostgator_latam/subdomain/doa"..., 1) called at cpanel.pl line 4408
        cpanel::cpanel::run_standard_mode() called at cpanel.pl line 864
        cpanel::cpanel::script("cpanel::cpanel", "./frontend/hostgator_latam/subdomain/doadddomain.html.tt") called at cpanel.pl line 271
warn [cpanel] Encountered error in SubDomain::addsubdomain: O subdomínio “l.1domain.com.br” foi adicionado.: Unable to set up domain keys for 'l.1domain.com.br': Cpanel::DnsUtils::Install::Processor:551: The zone "1domain.com.br" could not be parsed because of an error: There was an error while loading the zone for 1domain.com.br.  Please correct any errors in this zone manually and try again.  The exact error from the parser was: expected valid minimum, line 8: [                                            86400   )] at /usr/local/cpanel/Cpanel/ZoneFile/Collection.pm line 56.

Cpanel::DnsUtils::Install::Processor:488: The zone “1domain.com.br” is empty. Modification of “default._domainkey.l.1domain.com.br.:TXT” failed.


I have tested on two servers that have the same configuration and in more than one domain per server.


Code:
[[email protected] ~]# cat /etc/[A-Za-z]*[_-][rv]e[lr]*
CentOS Linux release 7.6.1810 (Core)
Derived from Red Hat Enterprise Linux 7.6 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.6.1810 (Core)
CentOS Linux release 7.6.1810 (Core)
cpe:/o:centos:centos:7
[[email protected] ~]#

Can help us?


Thanks
 
Last edited by a moderator:

Eminds

Well-Known Member
Nov 10, 2016
319
30
28
India
cPanel Access Level
Root Administrator
The error clearly states

Error while parsing zonedata for 1example.com.br: expected valid minimum

The length of the subdomain name should be more than 1 character
 
Last edited by a moderator:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,080
657
263
Houston
cPanel Access Level
DataCenter Provider
Hello @Luana Premoli


I'm not able to replicate this behavior when adding a single character subdomain but looking at the error specifically it's maybe alerting to something else that may be going on:

Code:
The zone “example.com.br” is empty. Modification of “default._domainkey.l.example.com.br.:TXT” failed
I also noticed you're running a custom template. I'd like to know the following:

1. If you switch from your provider's Paper Lantern theme to the stock Paper Lantern theme if this persists.
2. What's on line 8 of the zone file in this instance?
3. Are any other DKIM entries present in the zone file? If so are any of them for the domain you're attempting to add


Thanks!
 

Luana Premoli

Well-Known Member
Oct 3, 2016
59
6
8
São Paulo/Brazil
cPanel Access Level
Root Administrator
Hi @cPanelLauren


I can not change the theme because the company just left the custom.

The DNS zone of the domain is below, however, I remember that it happens on other servers and with other domains too.


Code:
  5                                                 2019011405 ;Serial Number
  6                                                 86400 ;refresh
  7                                                 7200 ;retry
  8                                                 3600000 ;expire
  9                                                 86400   )
 10





Hello @Luana Premoli


I'm not able to replicate this behavior when adding a single character subdomain but looking at the error specifically it's maybe alerting to something else that may be going on:

Code:
The zone “example.com.br” is empty. Modification of “default._domainkey.l.example.com.br.:TXT” failed
I also noticed you're running a custom template. I'd like to know the following:

1. If you switch from your provider's Paper Lantern theme to the stock Paper Lantern theme if this persists.
2. What's on line 8 of the zone file in this instance?
3. Are any other DKIM entries present in the zone file? If so are any of them for the domain you're attempting to add


Thanks!
 
Last edited by a moderator:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,080
657
263
Houston
cPanel Access Level
DataCenter Provider
Hello @Luana Premoli


Yes, they're different. I'm not entirely sure I understand what the issue is, in order to rule out that the custom template is the cause of the issue please try to create the subdomain on the standard paper lantern style and let me know if you continue toexperiencing the issue.


Thanks!