apache restarting randomly on all directadmin servers

Driesp

Verified User
Joined
Mar 12, 2007
Messages
212
Location
Belgium
Hello

I noticed since we upgraded to DirectAdmin 1.697
that DirectAdmin is restarting the httpd (apache) service from time to time without a clear reason.

It is restarting with this message:
/var/log/messages:Mar 21 17:19:42 web1 dataskq[2852283]: executing task task=action=httpd&affect_php_fpm=no&value=restart
/var/log/messages:Mar 21 17:19:47 web1 dataskq[2852283]: finished task duration=4.942548506s task=action=httpd&affect_php_fpm=no&value=restart

It's not really a problem that it is restarting apache, it is a problem that restarting apache can take up to 10 seconds.
During this time, the webserver is offline, and it is rejecting new connections.

Before the update, DirectAdmin would never restart the apache webserver, it would request a reload if that was needed.

Is it a bug?

I will upgrade to DirectAdmin 1.698 to see if the problem persist.

Kind regards
Dries
 
Update:

I don't know if this is relevant:
# /usr/local/directadmin/directadmin c | grep -E 'graceful_restarts|restart_apache_after_tally'
restart_apache_after_tally=1

While I have the option restart_apache_after_tally not set in directadmin.conf
# cat /usr/local/directadmin/conf/directadmin.conf | grep -E 'graceful_restarts|restart_apache_after_tally'
graceful_restarts=1


Kr
Dries
 
Update

# /usr/local/directadmin/directadmin config-set graceful_restarts 1
Error with the current values: Cannot find 'graceful_restarts' in the directadmin.conf

# /usr/local/directadmin/directadmin config-set restart_apache_after_tally 0

# cat directadmin.conf | grep restart
graceful_restarts=1
restart_apache_after_tally=0

Kr
Dries
 
I just noticed that 'graceful_restarts' has been removed since 1.654
Then I don't understand why it is restarting the service and not reloading it as it was before.

Kr
Dries
 
We have the same on all our servers, it looks related with de SSL letsencrypt renew on every domain.

Normally it reloads apache only without seconds downtime, sinds a few weeks restart apache complete.

Hopefully they can change it back, it works really good before.
 
Back
Top