Problem with parked domain, can't remove
From panel I try to unpark an addon domain which is old and need deletion and receive the following error :
(XID x43dqp) This system does not have a domain named "kdomainxx.ccc". at /usr/local/cpanel/Cpanel/Domain/Owner.pm line 57.
Cpanel::Domain::Owner::get_owner_or_die("kdomainxx.ccc") called at whostmgr/bin/whostmgr2.pl line 2935
main::unpark("unpark") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 259
Whostmgr::Dispatch::_do_call("unpark", HASH(0x2670170), HASH(0x2636ab8)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 157
Whostmgr::Dispatch::dispatch("unpark", 1, ARRAY(0x267d138)) called at whostmgr/bin/whostmgr2.pl line 992
I tried the followings :
cd /var/cpanel/userdata/username/
cp main main.bak
vi main
deleted domain and now is
parked_domains: []
sub_domains: []
After that performed
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak110419
/scripts/rebuildhttpdconf
/etc/init.d/httpd restart
/scripts/updateuserdomains
REBUILT CONFIGURATION
/scripts/rebuilddnsconfig
CENTOS 7.6 kvm [srv] v76.0.14
-
Hello @rotame I wouldn't suggest renaming or manually changing anything in /var/cpanel/userdata/$user/ Can you run following in the order it's shown: /scripts/updateuserdomains /scripts/updateuserdatacache mv /etc/apache2/conf/httpd.conf{,.bk} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd
And let me know if you're able to remove the domain once that is complete. If not can you please show me what is present in the following:/var/cpanel/users/$user /var/cpanel/userdata/$user/main
(replace actual domain names)0 -
Hi please clarify this command mv /etc/apache2/conf/httpd.conf{,.bk} as I see it or you mean {,.bk} something random ? 0 -
Hello @rotame That command does the following: mv /etc/apache2/conf/httpd.conf /etc/apache2/conf/httpd.conf.bk
Essentially shortens the process you need to create a backup of a file. Thanks!0 -
You are great worked Thanks a lot 0 -
Can you reopen this.. i'm also trying to remove some older parked domains and am getting the noted error message.. I tried your solution but It still won;t delete the parked domain failing again with that error. Both the user and userdata files still list the old domains.. what next? 0 -
Hi @PPNSteve If you've already attempted to remove the accounts and there is cruft that remains we'll need to see what exactly is present. Can you run the following and let me know the output? whmapi1 removeacct user=username
If that fails to remove the account (which I am anticipating it will) can you then run the following:/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelInc/tech-acctinfo/master/acctinfo) --cruft domain.tld
This is a troubleshooting script we use internally on occasion.0
Please sign in to leave a comment.
Comments
6 comments