Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Problem with parked domain, can't remove

Discussion in 'Bind/DNS/Nameserver' started by rotame, Dec 27, 2018.

  1. rotame

    rotame Member

    Joined:
    Sep 20, 2006
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    153
    Location:
    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
     
    #1 rotame, Dec 27, 2018
    Last edited by a moderator: Dec 28, 2018
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,466
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rotame

    rotame Member

    Joined:
    Sep 20, 2006
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    153
    Location:
    Athens,Greece
    cPanel Access Level:
    Root Administrator
    Hi please clarify this command
    mv /etc/apache2/conf/httpd.conf{,.bk}
    as I see it or you mean
    {,.bk} something random ?
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,466
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. rotame

    rotame Member

    Joined:
    Sep 20, 2006
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    153
    Location:
    Athens,Greece
    cPanel Access Level:
    Root Administrator
    You are great worked

    Thanks a lot
     
    cPanelLauren likes this.
  6. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    410
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,466
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice