[11.25 Current] apache restarting every hour

Status
Not open for further replies.

Bono_

Active Member
Sep 20, 2007
27
0
51
What is changed in latest update for Release version?
Corrected problem with cpanellogd rotating system logs

As far I can see there is no more *.bkup files. So how are now logs processed?
I see web server still restarts every few hours even though I changed to recommended settings:
process bandwidth every 8 hours
process logs every 24 hours.
 

some1512

Member
Mar 25, 2008
6
0
51
I don't know how to say?

They are in holiday and no one care.

I use

#/scripts/restartsrv_cpanellogd --stop
to stop cpanellogd, but cpanel always send me the email:
cpanellogd failed @ Sun Dec 27 06:08:28 2009. A restart was attempted automagically.
Service Check Method: [check command]

Cmd Service Check Raw Output: cpanellogd is not running
I pay $35 per month but now lost more than $35 everyday because the stupid http restarting

how to fully stop cpanellogd? please help me?

Or the only solution is that we don't use cpanel anymore ?
 
Last edited:

sharmaine001

Well-Known Member
Jun 23, 2006
143
0
166
Sorry I encounter this problem too!

And one of my servers nameservers is going down sometimes due to graceful restart :(

cpanel, any resolution please?
 
Last edited:

mickscool

Registered
Dec 27, 2009
1
0
51
I am having the same issue..

OK, I experienced the same issue with 11.25 that was installed by OLM on the dedicated server allocated to me and I created a cPanel ticket i.e..

cPanel Ticket ID# 546497

And this was the response from cPanel team -

"Are these restarts causing problems? If not, I'd just ignore them. There are various reasons apache could be restarted, including modifications to accounts, stats processing, etc."


What kind of response is that? I created a ticket and they are saying me to ignore it if it's not causing any problems..lol.
It's a new server with just one default site and no customizations at all and even cPanel team noticed that as they had full access to my server for 2-3 days.And then some nice folk on webhostingtalk, told me that it's an issue with 11.25 version of CPanel/WHM and re-directed me to this thread which atleast gave me a better understanding of the issue and atleast some settings to tweak and reduce the impact.

C'mon guys, we are paying for this, we would expect better support from you then just ignoring our concerns.

Still waiting for the fix.

Thank You
 
Last edited:

sharmaine001

Well-Known Member
Jun 23, 2006
143
0
166
This doesnt even solve the rotation log problem of cpanel. My error_log and other log fies are not rotated even if I have that setting in WHM.
 

hicom

Well-Known Member
May 23, 2003
292
7
168
We have made a change under WHM -> Statistics Software

At the bottom, clicked on "Statistics Schedule" and set the stats not to run during busy hours. You can also elect to make it not run at all if you want.

At least this resolves it temporarily until cPanel gets back.
 

Misiek

Well-Known Member
Feb 23, 2004
129
3
168
cPanel Access Level
Root Administrator
Same problem here :

Code:
[Sun Dec 27 00:18:26 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 00:35:24 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 00:35:46 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 00:53:03 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 01:11:24 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 01:11:45 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 01:28:56 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 01:29:20 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 01:39:12 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 01:49:18 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 02:06:25 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 02:06:46 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 02:26:46 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 02:27:10 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 02:48:29 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 02:48:51 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 03:06:44 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 03:07:07 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 03:24:40 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 03:25:03 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 03:42:08 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 03:50:58 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 04:01:39 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 04:02:01 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 04:20:12 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 04:37:16 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 04:37:38 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 04:54:48 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 05:12:01 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 05:12:23 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 05:30:10 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 05:30:33 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 05:47:46 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 05:48:09 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 05:56:59 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 06:06:36 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 06:23:40 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 06:40:45 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 06:57:50 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 06:58:12 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 07:15:31 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 07:15:53 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 07:33:03 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 07:50:19 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 07:59:11 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 08:09:09 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 08:09:31 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 08:26:40 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 08:27:02 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 08:48:59 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 09:06:20 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 09:23:05 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 09:39:47 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 09:56:29 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 10:05:11 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 10:14:34 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 10:31:16 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 10:47:58 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 11:04:40 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 11:21:22 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 11:38:26 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 12:11:52 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 12:20:35 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 12:30:36 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 12:47:19 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 13:04:01 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 13:20:44 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 13:37:26 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 13:54:08 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 14:10:50 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 14:27:32 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 14:36:13 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 14:45:35 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 15:02:17 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 15:18:59 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 15:35:41 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 15:52:33 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 16:09:16 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 16:25:58 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 16:42:40 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 16:51:21 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 17:00:43 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 17:17:26 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 17:34:08 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 17:50:53 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 18:07:36 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 18:24:18 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 18:41:00 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 18:57:42 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 19:06:23 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 19:15:47 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 19:32:29 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 19:49:11 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 20:05:53 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 20:22:35 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 20:39:17 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 20:56:00 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 21:12:42 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 21:21:23 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 21:30:52 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 21:47:34 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 22:04:16 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 22:20:58 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 22:37:41 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 22:54:23 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 23:11:05 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 23:22:03 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 23:31:26 2009] [notice] Graceful restart requested, doing restart
[Sun Dec 27 23:31:47 2009] [notice] Graceful restart requested, doing restart
That is really to often for justr processing reasons
 

LDHosting

Well-Known Member
Jan 19, 2008
93
2
58
cPanel Access Level
Root Administrator
Ok, I have now set both bandwidth processing and stats processing to 24 hours but it seems to have had no effect at all. To add to it I also still have the bug where children get locked in the G status after a graceful restart so every time apache does a graceful restart I lose a child slot, as you can imagine it doesn't take very long to hit MaxClients.

Parent Server Generation: 44
Server uptime: 12 hours 2 minutes 51 seconds

Code:
GGGGGGGGGGGGGGGG_GGGGGGGGGGGGG_G_GGGG_GGGGG__GGG_________G_G____
_KW________W______W.............................................
................................................................
................................................................
................................................................
................................................................
................................................................
....................................................
 

racakg

Member
May 17, 2008
14
0
51
I had the same problem with this new version of cPanel (cPanel 11.25.0-R42399 - WHM 11.25.0 - X 3.9). My server was restarting every 17 minutes.

I fix this problem temporarily by disabling all rotation logs via WHM/cPanel (my problem was suexec_log), and I select all the check boxes in "Configure Statistic Process Time Schedule".

No more apache restarts (almost 5 days) after this steps.

If you disable cpanellogd in "Configure Statistic Process Time Schedule" you have to make a cron job to empty your bandwidth logs in /usr/local/apache/domlogs. My logs are filling very quickly 1GB in 12 hours (my server serve 250k daily visitors ) so be careful if you don't want to delete or empty your logs.
 

VeZoZ

Well-Known Member
Dec 14, 2002
245
0
166
cPanel Access Level
DataCenter Provider
It really seems silly the solution for some people is to simply not do any stats processing. I'm not sure how exactly this new way of handling things is better. I think most people rather potentially lose some data then have constant restarts happening. It sounds though like this new way is not going to be changing. So even as a tweak settings option.

So I guess the choices are simple:

1) Use 11.25 but no longer do any stats processing
2) Hold onto 11.24 as long as possible
3) Switch to another control panel


It really makes me wonder if new features and changes are thought through well. So they sound great but the real world repercussions are not thought through. So basically there is lack of input from people using the panel on daily basis in the environment it was intended for.

It's not just this change but there have been others over the past year or maybe longer that have caused just as many issues as they fixed. In some cases caused more issues than they fixed.
 
Last edited:

DjiXas

Well-Known Member
Feb 10, 2007
294
0
166
Hello everyone,

After an update to 11.25 apache gracefully restarts every hour. Log rotation and service monitor are disabled. I am unable to track what is causing these restarts.

/usr/local/apache/logs/error_log

[notice] Graceful restart requested, doing restart
[notice] mod_bw : Memory Allocated 0 bytes (each conf takes 28 bytes)
[notice] mod_bw : Version 0.8 - Initialized [0 Confs]
[notice] Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.11 mod_perl/2.0.4 Perl/v5.8.8 configured -- resuming normal operations

Do you have any suggestions?
Same, using release build, latest.
 

Kurieuo

Well-Known Member
Dec 13, 2002
106
0
166
Australia
Not sure if I'm just lucky... but I began the upgrade two days ago, and while it was running I noticed this post and thought "oh great".

However, I haven't noticed anything really that out of the ordinary with graceful Apache restarts. I think they happen slightly more than before (at least the hours leading up to when I performed the upgrade), but otherwise they don't seem to be any hindrance. :confused:
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
We are still examining what options are available to retain the improved log processing while reducing the number of Apache restarts.

Here are some recommendations to help lessen the problems caused by the Apache restarts:

1. Set the processing frequency for Logs and Bandwidth to be in sync.

For example if you process logs ever 8 hours and Bandwidth every 2, then change Bandwidth to 8.

2. Once a day touch the files in /var/cpanel/lastrun.

The mtime of the files in /var/cpanel/lastrun are used, in conjunction with the files in /usr/local/apache/domlogs to determine whether an account needs processed during a specific interval. Processing of the Bandwidth logs is very fast. Processing of the domlogs is the slowest of the process. The processing is handled by AWStats, Analog, etc. The longer it takes to process the logs files for an account, the more out of sync the account becomes with the rest of the accounts.

Further an account that takes a long time to process will cause accounts processed afterward to become out of sync.

Over time the loss of synchronicity will cause cpanellogd to process one or more accounts every 15 minutes.

If an account is processed by cpanellogd, at least one graceful restart will be sent to Apache.

Keeping the mtime of the files in /var/cpanel/lastrun synchronized will cause cpanellogd to process all accounts during any one interval.
 

sharmaine001

Well-Known Member
Jun 23, 2006
143
0
166
We have made a change under WHM -> Statistics Software

At the bottom, clicked on "Statistics Schedule" and set the stats not to run during busy hours. You can also elect to make it not run at all if you want.

At least this resolves it temporarily until cPanel gets back.
This doesnt work for me. It has been disabled since I started with the cpanel server but I still see these restart from my logs
 

hicom

Well-Known Member
May 23, 2003
292
7
168
This doesnt work for me. It has been disabled since I started with the cpanel server but I still see these restart from my logs
Once the changes made, we restarted Apache through WHM and that took care of it. it is working now according to schedule
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
We are currently examining a change in log handling that will remove the need for restarting Apache when processing bandwidth and domain log data.
 

tweakNB

Registered
Jun 14, 2006
3
0
151
Just my two cents

Personally Apache restarting is not too much of an issue, although of course if cPanel provides an update which removes the need it would be nice.

But in my case the major issue is with the Apache bug which results in a process not ending and becoming stuck.

Although no-one wants a restart, if it did end up being the only way to process the logs correctly it would be livable with, but when each graceful restart ends up consuming CPU, RAM and swap due to the processes not ending correctly, that is where the main issue is.
 
Status
Not open for further replies.