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.

Near nightly httpd fail after upcp since version 11

Discussion in 'General Discussion' started by orty, May 20, 2007.

  1. orty

    orty Well-Known Member

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bend, Oregon
    cPanel Access Level:
    Root Administrator
    Every since cPanel 11 was installed a week or so ago, nearly every night about 5-10 minutes after the upcp runs, apache fails. I wake up in the morning with my upcp e-mail, with an e-mail with a time stamp five minutes afterwards that says "httpd failed @ Sun May 20 02:45:39 2007. A restart was attempted automagicly." The time on the e-mail is just about exactly when upcp gets done. Apache comes back up, fine and runs fine the rest of the day but what is causing this to die? I'm not noticing anything in the upcp that's restarting or killing the process. Is there someplace I can look?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Open SSH and type this in:

    /usr/sbin/apachectl configtest

    Whats it tell you?
     
  3. orty

    orty Well-Known Member

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bend, Oregon
    cPanel Access Level:
    Root Administrator
    Here's what I get:
    Code:
    root@servername [/usr/sbin]# /usr/sbin/apachectl configtest
    -bash: /usr/sbin/apachectl: No such file or directory
    I ran a "locate apachectl" just to see where it was, and got these:
    Code:
    /usr/local/apache/bin/apachectl
    /usr/local/apache/htdocs/manual/programs/apachectl.html.en
    /usr/local/apache/htdocs/manual/programs/apachectl.html.ja.jis
    /usr/local/apache/htdocs/manual/programs/apachectl.html.html
    /usr/local/apache/man/man8/apachectl.8
    /usr/share/man/fr/man8/apachectl.8.gz
    So I ran "/usr/local/apache/bin/apachectl configtest" and got the following:
    Code:
    Warning: DocumentRoot [/home/username/public_html/dev] does not exist
    [Sun May 20 12:21:09 2007] [warn] NameVirtualHost [I]xx.xx.xx.xx[/I]:80 has no VirtualHosts
    [Sun May 20 12:21:09 2007] [warn] NameVirtualHost [I]xx.xx.xx.xx[/I]:80 has no VirtualHosts
    Syntax OK
    I see that when I delete the dev.username.com subdomain from the username.com cPanel, it didn't delete it properly from the VirtualHost, so I'll manually delete that.

    Thoughts otherwise?
     
    #3 orty, May 20, 2007
    Last edited: May 20, 2007
  4. will_raymo2000

    Joined:
    Jul 4, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    I seem to be getting this failure as well.. not every night but intermittently every couple of days. I try to go onto the site and apache is not running at all. Does yours restart itself or do you have to do it manually?

    Thanks,
    Will
     
  5. orty

    orty Well-Known Member

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bend, Oregon
    cPanel Access Level:
    Root Administrator
    The the time I get online about 5 hours after the upcp, it appears to have been running fine as none of my various other monitoring services (siteuptime.com, monitor.us, etc...) pick up the site as being dead, so it must be just a temporary blip.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    My mistake sorry. Yes sure, clean it up so you get no errors and see if that helps.
     
  7. orty

    orty Well-Known Member

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bend, Oregon
    cPanel Access Level:
    Root Administrator
    Sorry, I'm just getting back to replying on this. Cleared out the httpd.conf errors it was reporting, and also ran the httpdcleanup script, and my httpd.conf file is nice and clean.

    While it's less frequent, I'm still getting an httpd failure every 4 nights or so after upcp runs.

    Ideas?
     
  8. gfisch

    gfisch Member

    Joined:
    Aug 9, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Montreal
    mallac for me too

    Hi Orty and others.

    Did this get resolved? This just started happening to me four days ago. Intermitant apache failures and chkservd can't restart it with malloc errors.
    Yet starting by hand is fine.

    Thanks
    Gord
     
  9. orty

    orty Well-Known Member

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bend, Oregon
    cPanel Access Level:
    Root Administrator
    Don't know if it'll help you at all, but I basically worked with cPanel and helped discover a bug in chksrvd that has since been resolved in the CURRENT branch. We also upgraded to Perl 5.8.8, and then, lastly, moved my cpbackup time so it was run after my upcp (it was running before it before) and spread it out a couple hours apart. It wasn't until after that last step that things were fixed. I haven't had the nightly fail like I was having before. So my guess it was some sort of resource problem that seems really odd considering the server has few clients and 2gigs of RAM and an AMD Athlon 3800+.
     
Loading...

Share This Page