Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member orty's Avatar
    Join Date
    Jun 2004
    Location
    Bend, Oregon
    Posts
    105
    cPanel/Enkompass Access Level

    Root Administrator

    Default Near nightly httpd fail after upcp since version 11

    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. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Open SSH and type this in:

    /usr/sbin/apachectl configtest

    Whats it tell you?
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  3. #3
    Member orty's Avatar
    Join Date
    Jun 2004
    Location
    Bend, Oregon
    Posts
    105
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Infopro View Post
    Open SSH and type this in:

    /usr/sbin/apachectl configtest

    Whats it tell you?
    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 xx.xx.xx.xx:80 has no VirtualHosts
    [Sun May 20 12:21:09 2007] [warn] NameVirtualHost xx.xx.xx.xx: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?
    Last edited by orty; 05-20-2007 at 02:25 PM. Reason: removed IP addresses

  4. #4
    Member
    Join Date
    Jul 2006
    Posts
    21

    Default

    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. #5
    Member orty's Avatar
    Join Date
    Jun 2004
    Location
    Bend, Oregon
    Posts
    105
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by will_raymo2000 View Post
    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
    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. #6
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Post

    My mistake sorry. Yes sure, clean it up so you get no errors and see if that helps.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  7. #7
    Member orty's Avatar
    Join Date
    Jun 2004
    Location
    Bend, Oregon
    Posts
    105
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #8
    Member
    Join Date
    Aug 2003
    Location
    Montreal
    Posts
    24

    Default 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. #9
    Member orty's Avatar
    Join Date
    Jun 2004
    Location
    Bend, Oregon
    Posts
    105
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by gfisch View Post
    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
    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+.

Similar Threads & Tags
Similar threads

  1. MySQL being upgraded/downgraded with nightly upcp?
    By btrieve in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-21-2005, 11:48 AM
  2. [CentOS] upcp or nightly upcp overwrites issues
    By eos1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-16-2004, 10:38 PM
  3. UPCP broke httpd.conf and apache fail ...
    By cass in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-27-2004, 03:44 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube