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.

Apache 2 Crashing

Discussion in 'Workarounds and Optimization' started by fickany, Jan 17, 2012.

  1. fickany

    fickany Member

    Joined:
    Dec 28, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello!

    The problem came in the morning, but I can not fix it. Please help me.

    Code:
    [Tue Jan 17 11:02:06 2012] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 99
    [Tue Jan 17 11:02:06 2012] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 99
    [Tue Jan 17 11:02:06 2012] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 99
    [Tue Jan 17 11:02:06 2012] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 99
    [Tue Jan 17 11:02:06 2012] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 99
    [Tue Jan 17 11:02:06 2012] [alert] Child 14221 returned a Fatal error... Apache is exiting!
    [Tue Jan 17 11:02:06 2012] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 99
    [Tue Jan 17 11:02:06 2012] [emerg] (43)Identifier removed: couldn't grab the accept mutex
    [Tue Jan 17 11:02:06 2012] [emerg] (22)Invalid argument: couldn't release the accept mutex
    [Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:09 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:10 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:10 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:11 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:14 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:14 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:02:14 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Tue Jan 17 11:10:30 2012] [notice] SSL FIPS mode disabled
    [Tue Jan 17 11:10:30 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Tue Jan 17 11:10:30 2012] [warn] No JkShmFile defined in httpd.conf. Using default /usr/local/apache/logs/jk-runtime-status
    [Tue Jan 17 11:10:30 2012] [notice] ModSecurity for Apache/2.6.2 ([url=http://www.modsecurity.org/]ModSecurity: Open Source Web Application Firewall[/url]) configured.
    [Tue Jan 17 11:10:30 2012] [notice] ModSecurity: APR compiled version="1.4.5"; loaded version="1.4.5"
    [Tue Jan 17 11:10:30 2012] [notice] ModSecurity: PCRE compiled version="8.12"; loaded version="8.12 2011-01-15"
    [Tue Jan 17 11:10:30 2012] [notice] ModSecurity: LIBXML compiled version="2.7.8"
    [Tue Jan 17 11:10:31 2012] [notice] SSL FIPS mode disabled
    [Tue Jan 17 11:10:31 2012] [notice] mod_bw : Memory Allocated 0 bytes (each conf takes 36 bytes)
    [Tue Jan 17 11:10:31 2012] [notice] mod_bw : Version 0.92 - Initialized [0 Confs]
    [Tue Jan 17 11:10:31 2012] [warn] No JkShmFile defined in httpd.conf. Using default /usr/local/apache/logs/jk-runtime-status
    [Tue Jan 17 11:10:31 2012] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Tue Jan 17 11:10:31 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/1.0.0-fips mod_mono/2.6.3 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.32 mod_perl/2.0.5 Perl/v5.10.1 configured -- resuming normal operations
    Thank you very much,
    Gabor
     
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Re: Apache2 Crashing, please help!!!!

    Howdy,

    Could you open a ticket for this? It could be a permission issue but we can not tell without a closer look at the system.

    Thanks!
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Re: Apache2 Crashing, please help!!!!

    Typically, these type of errors occur on systems low on memory or file handlers. Without access to that system as Eric mentioned, it is difficult to see if this would have been the case.

    Of note, one suggested resolution for the error message would be to try adding the following line to /usr/local/apache/conf/httpd.conf file:

    Code:
    AcceptMutex fcntl
    If you add this above "<IfModule prefork.c>" in tht file, you could then try running these commands to distill the change and restart Apache:

    Code:
    /usr/local/cpanel/bin/apache_conf_distiller --update
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd restart
    Please check on the rebuild that the line you'd entered was maintained.

    Documentation on the AcceptMutex option can be found at this location:

    mpm_common - Apache HTTP Server
     
  4. fickany

    fickany Member

    Joined:
    Dec 28, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Re: Apache2 Crashing, please help!!!!

    Thank you for answer, Tristan!

    Meanwhile, I noticed the munin graph. The 'apps' memory is more than 7 GB, when the apach2 was crash.
    cpanel.PNG

    Thank you,
    Gabor
     
  5. joomlads07

    joomlads07 Registered

    Joined:
    Aug 10, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    3 Locust Street, Suite A
    Yes cPanelTristan is right without accessing that system , it is difficult to see if this would have been the case.
     
  6. yamaharr1

    yamaharr1 Well-Known Member

    Joined:
    Jun 22, 2007
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
    Re: Apache2 Crashing, please help!!!!

    What to do if it was not maintained?
     
Loading...

Share This Page