Skip to main content

Unable to create addon domain: cPanel warnings

Comments

14 comments

  • cPanelMichael
    Hello :) Is any additional information about the error message found in /usr/local/cpanel/logs/error_log when attempting to add the domain name? Does this happen for any other domain name, or just the one you are adding? Does the domain name you are adding resolve to the server? Thank you.
    0
  • Tim Hysniu
    Hi there, It is happening for any domain. It is happening regardless whether the domain/subdomain is pointing to this server or not. I am seeing some other memory exhausted errors. I tried increasing cPanel memory to 1024 and unlimited for testing. This didn't fix anything. [2015-11-12 16:34:24 -0800] warn [Internal Warning while parsing [stdin] 26646] The system failed to fork a new process because of an error: Cannot allocate memory at /usr/local/cpanel/Cpanel/BandwidthDB/ImportRRD/Steps.pm line 183. at /usr/local/cpanel/Cpanel/BandwidthDB/ImportRRD/Steps.pm line 183. Cpanel::BandwidthDB::ImportRRD::Steps::__ANON__(Cpanel::Exception::IO::ForkError=HASH(0x58bcb530)) called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 103 Try::Tiny::try(CODE(0x5aba8b58), Try::Tiny::Catch=REF(0x59e826a8)) called at /usr/local/cpanel/Cpanel/BandwidthDB/ImportRRD/Steps.pm line 184 Any thoughts? Thanks, Tim
    0
  • Tim Hysniu
    I believe I found the reason why this error is occurring. I am currently dealing with a setup where there are many domains owned by a single cPanel user. My assumption is that the htttrpd.conf has become so large that it's taking more memory to parse it? I just tried creating another cPanel user with WHM and tried creating an addon domain with this new user. It worked! Do you know of a way I can increase memory needed by cPanel to parse this file? Max cPanel process memory in Tweak Settings didn't really do anything. Thanks, Tim
    0
  • cPanelMichael
    Hello :) How much RAM is installed on this system? Is this a VPS or a dedicated server? Thank you.
    0
  • Tim Hysniu
    Hi there, Looks like we have 4GB. This is a dedicated server. Do you think this is low? Thanks, Tim # free -m total used free shared buffers cached Mem: 3832 3365 467 0 384 2030 -/+ buffers/cache: 949 2882 Swap: 0 0 0
    0
  • cPanelMichael
    I am currently dealing with a setup where there are many domains owned by a single cPanel user.

    How many domain names are added to the account? Is the cPanel memory limit as configured in "WHM >> Tweak Settings" set to unlimited? Thank you.
    0
  • Tim Hysniu
    Hi Michael, Thanks for your help on this. There are 450 domains in this account. I have set memory limit to unlimited and tried restarting few services as well (httpd, mysqld). This didn't help. Thanks, Tim
    0
  • david510
    Had you tried to edit the httpd.conf file manually any time?
    0
  • Tim Hysniu
    I usually don't but there may have been cases where someone from the team did. Could this have to do with httpd.conf being un-parsible? Thanks, Tim
    0
  • cPanelMichael
    You can rebuild the Apache configuration file via:
    /scripts/rebuildhttpdconf
    Also, you can enable "Conserve memory" under the "System" tab in "WHM >> Tweak Settings" to see if that helps. Thank you.
    0
  • Tim Hysniu
    Thank you for your support. I tried rebuilding httpd.conf using script mentioned which worked fine (no memory issues reported here). I enabled conserve memory and set max cpanel process memory to unlimited. No luck so far. I have asked the provider to double the memory in the meantime.
    0
  • cPanelMichael
    Could you verify if the issue persists after adding the additional memory? Thank you.
    0
  • Tim Hysniu
    We upgraded memory to 8GB and that took care of the issue. Thanks for your help.
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.