SOLVED Problem with parked domain, can't remove

rotame

Member
Sep 20, 2006
19
2
153
Athens,Greece
cPanel Access Level
Root Administrator
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
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
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:

Code:
/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:

Code:
/var/cpanel/users/$user
/var/cpanel/userdata/$user/main
(replace actual domain names)
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
Hello @rotame

That command does the following:

Code:
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!
 

PPNSteve

Well-Known Member
Mar 13, 2003
413
3
168
Somewhere in Ilex Forest
cPanel Access Level
Root Administrator
Twitter
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?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
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?

Code:
whmapi1 removeacct user=username
If that fails to remove the account (which I am anticipating it will) can you then run the following:

Code:
/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.