The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WHM/cpanel, nameserver, mysql, SSH, ifd etc all services failing and restarting on it's own

Discussion in 'Bind / DNS / Nameserver Issues' started by karthi2014, Aug 21, 2014.

  1. karthi2014

    karthi2014 Member

    Joined:
    Aug 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bangalore
    cPanel Access Level:
    Root Administrator
    Hi All,

    We have recently updated our cpanel version after that all our services are keeps on failing every five minutes. Professional advise would be useful.

    Thanks in advance.
     
  2. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hello,

    Are you running out of system memory ?

    If so,

    Check # top -c ( shift+m ) to know what is consuming the memory.
     
  3. karthi2014

    karthi2014 Member

    Joined:
    Aug 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bangalore
    cPanel Access Level:
    Root Administrator
    Hi,

    Thanks for your reply.

    Yes our RAM is full thanks to MySQL process.

    I tried to kill that process but unfortunately SSH and WHM services are down now.

    Not sure what to do. Is it wise to power cycle server to get the service back and stop MYSQL.
     
  4. karthi2014

    karthi2014 Member

    Joined:
    Aug 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bangalore
    cPanel Access Level:
    Root Administrator
    Hi,

    Only 3 process in mysql but it's more than 50% of memory. Still all cpanel services are restarting.

    Can someone please help with this.
     
  5. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hello,

    Is your MySQL the latest version ? ie 5.6.x ? Can you post your /etc/my.cnf here ?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Are you sure the memory usage is what's causing services to fail? Please see this thread:

    Memory Usage Higher Than Expected

    Also, what error messages do you see in /usr/local/apache/logs/error_log when Apache fails?

    Thank you.
     
  7. karthi2014

    karthi2014 Member

    Joined:
    Aug 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bangalore
    cPanel Access Level:
    Root Administrator
    Hi traintech,

    Am not sure hot to download the config file or copy the text from SSH.

    I would appreciate if you direct me how to do. Thanks for your help and time

    - - - Updated - - -

    Hi Michael,

    Am not sure the memory causing the services to fail. But everything happened after upgrading Cpanel.

    Insight of what happened - Monday i logged in to whm and checked for upgrades and did cpanel upgrade after that everything collapsed i tried contacting our webhost they advised to contact here to fix the issue.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    For instance, with Apache, your websites are actually down and it's not just the warning email you are receiving that you are concerned about right? What error messages do you see in /usr/local/apache/logs/error_log when Apache fails?

    Thank you.
     
  9. karthi2014

    karthi2014 Member

    Joined:
    Aug 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bangalore
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    I have reviewed the link you have provided and i found around 30MB free out of 1024MB. Also in WHM it shows MYSQL uses 50%+ memory but only 3 process running. Is it something to worry about? I have pasted the result of # free -m

    total used free shared buffers cached
    Mem: 1024 993 30 0 0 0
    -/+ buffers/cache: 993 30
    Swap: 0 0 0

    Thanks for your help

    - - - Updated - - -

    Hi Michael,

    This is what i found in the error log

    root@ip-103-1-173-156 [/usr/local/apache/logs]# tail -f error_log
    [Thu Aug 21 15:10:41 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Thu Aug 21 15:10:41 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Thu Aug 21 15:10:41 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Thu Aug 21 15:10:41 2014] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
    [Thu Aug 21 15:10:41 2014] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
    [Thu Aug 21 15:10:41 2014] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
    [Thu Aug 21 15:10:41 2014] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
    [Thu Aug 21 15:10:41 2014] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
    [Thu Aug 21 15:10:41 2014] [notice] Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.0-fips mod_bwlimited/1.4 configured -- resuming normal operations
    [Thu Aug 21 15:10:41 2014] [alert] Child 3241 returned a Fatal error... Apache is exiting!

    For Note : I didn't get this error yesterday but it appearing today
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please check to see if rebuilding the Apache configuration file helps:

    Code:
    /scripts/rebuildhttpdconf
    I suggest opening a support ticket using the link in my signature if the issue persists so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  11. karthi2014

    karthi2014 Member

    Joined:
    Aug 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bangalore
    cPanel Access Level:
    Root Administrator
    hi thanks for the email... Created new ticket from our cpanel email which is dar****1@g****.com.

    Support ticket number is 5367489

    Thanks.

    - - - Updated - - -

    I have authorized the SSH key too. We Would appreciate if you take closer look

    - - - Updated - - -

    I have authorized the SSH key too. We Would appreciate if you take closer look
     
  12. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hello,

    If its MySQL 5.6.x, it might be due to the parameter 'performance_schema' which is enabled by default,
    and that consumes higher amount of system RAM, even in an idle state.
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, it looks like a lack of memory is responsible for the services failing. You may want to try the suggestion in the previous post, or consider adding more RAM to your server.

    Thank you.
     
Loading...

Share This Page