Error adding new addon domain


Active Member
Jul 9, 2013
cPanel Access Level
Root Administrator
I wanted to add a new domain on my clients account and when i added the domain in the addon domain menu from cPanel i was getting error that domain is pointing to a different ip , this was not true because i made the ns server changes 24 h back.
So i edited the Tweak setting allowing remote domain and i tried to re-add the domain name.
But i got this error:
exit level [die] [pid=3563] (Could not lock Apache configuration: Cpanel::Exception::Timeout/(XID 744c5y) The system failed to lock the file “/etc/apache2/conf/httpd.conf” after 301 seconds. at /usr/local/cpanel/Cpanel/Exception/ line 336, <STDIN> line 1. Cpanel::Exception::create("Timeout", "The system failed to lock the file \x{e2}\x{80}\x{9c}[_1]\x{e2}\x{80}\x{9d} after [quant,_2"..., ARRAY(0x34fd750)) called at /usr/local/cpanel/Cpanel/ line 46 Cpanel::Exception::__ANON__(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__..., ARRAY(0x34fd750)) called at /usr/local/cpanel/Cpanel/ line 711 Cpanel::SafeFile::_timeout_exception("/etc/apache2/conf/httpd.conf", 301) called at /usr/local/cpanel/Cpanel/ line 743 Cpanel::SafeFile::_die_if_file_is_flocked_cuz_already_waited_a_while("/etc/apache2/conf/httpd.conf", 301) called at /usr/local/cpanel/Cpanel/ line 812 Cpanel::SafeFile::_lock_wait("/etc/apache2/conf/httpd.conf") called at /usr/local/cpanel/Cpanel/ line 340 Cpanel::SafeFile::_safelock("/etc/apache2/conf/httpd.conf") called at /usr/local/cpanel/Cpanel/ line 539 Cpanel::SafeFile::_safe_open(undef, 66, "/etc/apache2/conf/httpd.conf", CODE(0x34fd4b0), "safesysopen") called at /usr/local/cpanel/Cpanel/ line 197 Cpanel::SafeFile::safesysopen(undef, "/etc/apache2/conf/httpd.conf", 66, 384) called at /usr/local/cpanel/Cpanel/ line 114 Cpanel::SafeFile::safesysopen_no_warn_on_fail(undef, "/etc/apache2/conf/httpd.conf", 66, 384) called at /usr/local/cpanel/Cpanel/Transaction/File/ line 103 Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::Raw", "path", "/etc/apache2/conf/httpd.conf") called at /usr/local/cpanel/Cpanel/ line 19 eval {...} called at /usr/local/cpanel/Cpanel/ line 19 Cpanel::Transaction::get_httpd_conf() called at /usr/local/cpanel/Cpanel/ line 606 Cpanel::ApacheConf::_loadhttpdconf_and_transaction(undef) called at /usr/local/cpanel/Cpanel/ line 528 Cpanel::ApacheConf::loadhttpdconf() called at /usr/local/cpanel/Cpanel/HttpUtils/ line 96 Cpanel::HttpUtils::Domain::domainExistsInConf_vhost_name("") called at /usr/local/cpanel/Cpanel/Validate/Component/Domain/ line 44 Cpanel::Validate::Component::Domain::HasApacheConfEntry::validate(Cpanel::Validate::Component::Domain::HasApacheConfEntry=HASH(0x34f4d08)) called at /usr/local/cpanel/Cpanel/Validate/ line 45 Cpanel::Validate::Validator::validate(Cpanel::Validate::DomainCreation::Sub=HASH(0x34d1c68)) called at /usr/local/cpanel/Cpanel/ line 120 Cpanel::Sub::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/ line 99 eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/ line 90 Try::Tiny::try(CODE(0x34de4f8), Try::Tiny::Catch=REF(0x34ddd48)) called at /usr/local/cpanel/Cpanel/ line 124 Cpanel::Sub::addsubdomain(__CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, 1, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at bin/admin/Cpanel/ line 198 main::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/ line 95 eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/ line 90 Try::Tiny::try(CODE(0x34bb610), Try::Tiny::Catch=REF(0x13c6ab0)) called at bin/admin/Cpanel/ line 211 )
My LiteSpeed server was taken down i head, to restart i after that.

Did any one head the same problem and know's a solution ?
Thank you!


Staff member
Apr 11, 2011

Could you open a support ticket using the link in my signature so we can take a closer look?

Thank you.