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!

Getting an odd error when I try to add an addon domain to a client

Discussion in 'General Discussion' started by etcio, Jul 5, 2013.

  1. etcio

    etcio Member

    Joined:
    Mar 7, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm getting a red box with the error "Ran adminbin Cpanel/hooks/addondomain::addaddondomain" whenever I try to add an addon domain.

    In the cpanel error log, I'm getting the following:

    Code:
    [2013-07-05 00:02:34 -0500] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[hooks] function=[addondomain::addaddondomain]: set error in context addondomain: statusmsg=[Ran adminbin Cpanel/hooks/addondomain::addaddondomain] at /usr/local/cpanel/Cpanel/Wrap.pm line 128
    	Cpanel::Wrap::send_cpwrapd_request('namespace', 'Cpanel', 'module', 'hooks', 'function', 'addondomain::addaddondomain', 'data', HASH(0x399c190), 'action', 'run', 'env', HASH(0x7f5772bb27a0)) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 77
    	Cpanel::AdminBin::adminstor('hooks', 'addondomain::addaddondomain', HASH(0x399c190)) called at /usr/local/cpanel/Cpanel/EventHandler.pm line 45
    	Cpanel::EventHandler::hook('addondomain', 'addaddondomain', HASH(0x2110310), ARRAY(0x398daf0)) called at /usr/local/cpanel/Cpanel/EventHandler.pm line 112
    	Cpanel::EventHandler::post_event(2, 'post', 'AddonDomain', 'addaddondomain', HASH(0x2110310), ARRAY(0x398daf0)) called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 130
    	Cpanel::Api2::Exec::api2_exec('AddonDomain', 'addaddondomain', HASH(0x3922410), HASH(0x2110310)) called at cpanel line 979
    	main::real_cpexectag('<?cp AddonDomain::addaddondomain(\'% %\',result,reason) newdomain=$FORM{\'domain\'},dir=$FORM{\'dir\'},subdomain=$FORM{\'user\'},pass=$FORM{\'pass\'} ?>') called at cpanel line 4138
    	main::dotag_finished_headers(1) called at cpanel line 3955
    	main::cpanel_parseblock('<cpanel setvar="headerimg=../images/topsubdomains.gif">\x0A<cpanel setvar="dprefix=../">\x0A<cpanel Branding="include(stdheader.html)">\x0A\x0A<style type="text/css">\x0A<?cp Branding::spritelist(.spriteicon_img_mini {float:left;margin-right:5px;background: url\\{leftparenthesis}"%"\\{rightparenthesis};} %,@spriteurl,images::#icon-${img}_mini {background-position\\{colon}0 -${cssposition}px;width\\{colon}${width}px;height\\{colon}${height}px; }:) imgtype=icon,subtype=img,method=scale_60percent,format=png,img=addondomain ?>\x0A</style>\x0A\x0A<div class="body-content"> \x0A\x0A<div class="h1Title"><div class="spriteicon_img_mini" id="icon-addondomain_mini"></div><cpanel langprint="INDXAddonDomains"></div>\x0A\x0A<h2><cpanel langprint="AODAddition"></h2>\x0A\x0A<!--\x0A<?cp AddonDomain::addaddondomain(\'% %\',result,reason) newdomain=$FORM{\'domain\'},dir=$FORM{\'dir\'},subdomain=$FORM{\'user\'},pass=$FORM{\'pass\'} ?>\x0A-->\x0A\x0A<cpanelif !$CPERROR{\'addondomain\'}>\x0A\x09<div class="success_details"><cpanel Locale="maketext(\'The addon domain \xE2\x80\x9C[_1]\xE2\x80\x9D has been created.\',$FORM{\'domain\'})"></div>\x0A\x09<!-- <cpanel Ftp="addftp($RAW_FORM{\'user\'},$RAW_FORM{\'pass\'},$RAW_FORM{\'dir\'},,,$RAW_FORM{\'dir\'})"> -->\x0A\x09<cpanel langprint="AODGoFileMgr">: <a target="_blank" href="../filemanager/index.html?dir=<cpanel uriprint="$homedir">/<cpanel uriprint="$FORM{\'dir\'}">" class="ajaxfiles"><cpanel langprint="TFileManager"></a>\x0A</cpanelif>\x0A\x0A<cpanelif $CPERROR{\'addondomain\'}>\x0A\x09<div class="error_details">\x0A        <cpanel print="$CPERROR{\'addondomain\'}">\x0A\x09</div>\x0A</cpanelif>\x0A\x0A<cpanelif !$CPERROR{\'ftp\'} && !$CPERROR{\'addondomain\'}>\x0A    <div class="success_details"><cpanel Locale="maketext(\'The FTP account \xE2\x80\x9C[_1]\xE2\x80\x9D has been created.\',$FORM{\'user\'})"></div>\x0A</cpanelif>\x0A\x0A<cpanelif $CPERROR{\'ftp\'}>\x0A\x09<div class="error_details">\x0A        <cpanel print="$CPERROR{\'ftp\'}">\x09\x09\x0A\x09</div>\x0A</cpanelif>\x0A\x0A<div class="return-link"><a href="index.html">&larr; <cptext "Go Back"></a></div>\x0A\x0A</div><!-- end body-content -->\x0A\x0A<cpanel Branding="include(stdfooter.html)">\x0A') called at cpanel line 3869
    	main::y(GLOB(0x33a46a0)) called at cpanel line 5199
    	main::run_standard_mode() called at cpanel line 767
    Thanks in advance for any help or guidance you can provide. Thanks!
     

    Attached Files:

  2. apollonx

    apollonx Registered

    Joined:
    Feb 28, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    I have the same problem "Ran adminbin Cpanel/hooks/addondomain::addaddondomain"
    cpanel's error_log:

    Code:
    [2013-07-06 22:32:24 +0600] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[hooks] function=[addondomain::addaddondomain]:
     set error in context addondomain: statusmsg=[Ran adminbin Cpanel/hooks/addondomain::addaddondomain] at /usr/local/cpanel/Cpanel/Wrap.pm line 128
            Cpanel::Wrap::send_cpwrapd_request('namespace', 'Cpanel', 'module', 'hooks', 'function', 'addondomain::addaddondomain', 'data', HASH(0x7b022d0), 'act
    ion', 'run', 'env', HASH(0x7b97200)) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 77
            Cpanel::AdminBin::adminstor('hooks', 'addondomain::addaddondomain', HASH(0x7b022d0)) called at /usr/local/cpanel/Cpanel/EventHandler.pm line 45
            Cpanel::EventHandler::hook('addondomain', 'addaddondomain', HASH(0x2110310), ARRAY(0x7afc9c0)) called at /usr/local/cpanel/Cpanel/EventHandler.pm lin
    e 112
            Cpanel::EventHandler::post_event(2, 'post', 'AddonDomain', 'addaddondomain', HASH(0x2110310), ARRAY(0x7afc9c0)) called at /usr/local/cpanel/Cpanel/Ap
    i2/Exec.pm line 130
            Cpanel::Api2::Exec::api2_exec('AddonDomain', 'addaddondomain', HASH(0x7a61390), HASH(0x2110310)) called at cpanel line 979
            main::real_cpexectag('<?cp AddonDomain::addaddondomain(\'% %\',result,reason) newdomain=$FORM{\'domain\'},dir=$FORM{\'dir\'},subdomain=$FORM{\'user\'
    },pass=$FORM{\'pass\'} ?>') called at cpanel line 4138
            main::dotag_finished_headers(1) called at cpanel line 3955
            main::cpanel_parseblock('<cpanel setvar="headerimg=../images/topsubdomains.gif">\x0A<cpanel setvar="dprefix=../">\x0A<cpanel Branding="include(stdhea
    der.html)">\x0A\x0A<style type="text/css">\x0A<?cp Branding::spritelist(.spriteicon_img_mini {float:left;margin-right:5px;background: url\\{leftparenthesis}"
    %"\\{rightparenthesis};} %,@spriteurl,images::#icon-${img}_mini {background-position\\{colon}0 -${cssposition}px;width\\{colon}${width}px;height\\{colon}${he
    ight}px; }:) imgtype=icon,subtype=img,method=scale_60percent,format=png,img=addondomain ?>\x0A</style>\x0A\x0A<div class="body-content"> \x0A\x0A<div class="
    h1Title"><div class="spriteicon_img_mini" id="icon-addondomain_mini"></div><cpanel langprint="INDXAddonDomains"></div>\x0A\x0A<h2><cpanel langprint="AODAddit
    ion"></h2>\x0A\x0A<!--\x0A<?cp AddonDomain::addaddondomain(\'% %\',result,reason) newdomain=$FORM{\'domain\'},dir=$FORM{\'dir\'},subdomain=$FORM{\'user\'},pa
    ss=$FORM{\'pass\'} ?>\x0A-->\x0A\x0A<cpanelif !$CPERROR{\'addondomain\'}>\x0A\x09<div class="success_details"><cpanel Locale="maketext(\'The addon domain \xE
    2\x80\x9C[_1]\xE2\x80\x9D has been created.\',$FORM{\'domain\'})"></div>\x0A\x09<!-- <cpanel Ftp="addftp($RAW_FORM{\'user\'},$RAW_FORM{\'pass\'},$RAW_FORM{\'
    dir\'},,,$RAW_FORM{\'dir\'})"> -->\x0A\x09<cpanel langprint="AODGoFileMgr">: <a target="_blank" href="http://forums.cpanel.net/filemanager/index.html?dir=<cpanel uriprint="$homedi
    r">/<cpanel uriprint="$FORM{\'dir\'}">" class="ajaxfiles"><cpanel langprint="TFileManager"></a>\x0A</cpanelif>\x0A\x0A<cpanelif $CPERROR{\'addondomain\'}>\x0
    A\x09<div class="error_details">\x0A        <cpanel print="$CPERROR{\'addondomain\'}">\x0A\x09</div>\x0A</cpanelif>\x0A\x0A<cpanelif !$CPERROR{\'ftp\'} && !$
    CPERROR{\'addondomain\'}>\x0A    <div class="success_details"><cpanel Locale="maketext(\'The FTP account \xE2\x80\x9C[_1]\xE2\x80\x9D has been created.\',$FO
    RM{\'user\'})"></div>\x0A</cpanelif>\x0A\x0A<cpanelif $CPERROR{\'ftp\'}>\x0A\x09<div class="error_details">\x0A        <cpanel print="$CPERROR{\'ftp\'}">\x09
    \x09\x0A\x09</div>\x0A</cpanelif>\x0A\x0A<div class="return-link"><a href="index.html">&larr; <cptext "Go Back"></a></div>\x0A\x0A</div><!-- end body-content
     -->\x0A\x0A<cpanel Branding="include(stdfooter.html)">\x0A') called at cpanel line 3869
            main::y(GLOB(0x74ee740)) called at cpanel line 5199
            main::run_standard_mode() called at cpanel line 767
     
  3. etcio

    etcio Member

    Joined:
    Mar 7, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I got told this might be an issues with nginxcp. Are you using the Unixy script by chance? Anyways, updating nginxcp might solve your problem.
     
  4. apollonx

    apollonx Registered

    Joined:
    Feb 28, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    Hello! Thank you for your reply.
    That's what i'm using: CENTOS 5.9 x86_64 virtuozzo – server3 WHM 11.38.1 (build 6), and Nginx Admin: v4.4 Stable version. And No any Unixy script (i do not know what is it).
    The problem with adding additional domains appeared about 24 hours ago. I did update nginxcp from 2.8 to 4.4, as you sugessted, but this didn't help. The problem still exist.
     
  5. JackDeRips

    JackDeRips Member

    Joined:
    Jan 5, 2013
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    This is a recent error coming from NginxCP and it's most probably due to an incompatibility with the latest cPanel update.
    Guess we'll have to wait until NginxCP releases a new update or we will unfortunately have to uninstall it.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,344
    Likes Received:
    1,852
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You may want to contact their support team directly to alert them of the issue in-case they are not aware of the problem with their application. Their support page is found at:

    http://nginxcp.com/support/

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. micho101

    micho101 Member

    Joined:
    Sep 29, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    51
    I got rid of the error "Ran adminbin Cpanel/hooks/addondomain::addaddondomain" by editing the file:

    /usr/local/cpanel/hooks/addondomain/addaddondomain

    Basically, wrong indentation on lines 31-34.
     
  8. milangm89

    milangm89 Registered

    Joined:
    May 7, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    comment the hook lines from the below files to fix the issue.

    /usr/local/cpanel/hooks/addondomain/addaddondomain
    /usr/local/cpanel/hooks/addondomaindeladdondomain/

    - - - Updated - - -

    sorry the second file is

    /usr/local/cpanel/hooks/addondomain/deladdondomain
     
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