LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problem with "Graceful restart requested, doing restart" (https://www.linuxquestions.org/questions/linux-server-73/problem-with-graceful-restart-requested-doing-restart-4175665350/)

Guldstrand 12-03-2019 01:17 PM

Problem with "Graceful restart requested, doing restart"
 
I upgraded to php 7.3 yesterday and i've a few issues with apache stoping from time to time and then i need to start apache manually.
Not sure if this issue is only with this version of php, or what's causing this all of the sudden.

Here are a few lines from my error.log:
PHP Code:

[Tue Dec 03 18:55:53.037786 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:55:53.626777 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:55:53.626898 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:56:00.508145 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:56:00.866526 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:56:00.866636 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:56:06.708145 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:56:06.983932 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:56:06.984050 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:56:14.157472 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:56:14.547813 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:56:14.547940 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:56:23.079938 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:56:23.363851 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:56:23.363980 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:56:30.559822 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:56:30.921009 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:56:30.921111 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:56:35.386950 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:56:35.711654 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:56:35.711771 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:56:42.803868 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:56:43.173163 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:56:43.173335 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:56:48.308743 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:56:48.611687 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:56:48.611806 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:56:56.467522 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:56:56.866418 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:56:56.866524 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:57:05.766930 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:57:06.049494 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:57:06.049633 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2'
[Tue Dec 03 18:57:13.214486 2019] [mpm_prefork:notice] [pid 16307AH00171Graceful restart requesteddoing restart
[Tue Dec 03 18:57:13.582141 2019] [mpm_prefork:notice] [pid 16307AH00163Apache/2.4.38 (DebianOpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 03 18:57:13.582260 2019] [core:notice] [pid 16307AH00094Command line'/usr/sbin/apache2' 


business_kid 12-11-2019 02:08 PM

? That's restarting every few seconds. I take it the 'Graceful restart' is because it completes whatever it's doing. It looks to me like it's puking on startup, and php would be the prime suspect as you've just changed it. Are you expecting Apache to work? I doubt if it will like that.

Guldstrand 12-13-2019 02:49 AM

How can i solve this then?
Last night i needed to restart apache manually 5 times in a hour.

PHP Code:

[Fri Dec 13 02:57:25.183905 2019] [core:notice] [pid 1642AH00052child pid 2775 exit signal Segmentation fault (11)
[
Fri Dec 13 02:57:26.199552 2019] [core:notice] [pid 1642AH00052child pid 2746 exit signal Segmentation fault (11)
[
Fri Dec 13 02:57:28.201820 2019] [core:notice] [pid 1642AH00052child pid 2776 exit signal Segmentation fault (11)
[
Fri Dec 13 02:57:37.211350 2019] [core:notice] [pid 1642AH00052child pid 2778 exit signal Segmentation fault (11)
[
Fri Dec 13 02:57:38.212521 2019] [core:notice] [pid 1642AH00052child pid 2779 exit signal Segmentation fault (11)
[
Fri Dec 13 02:59:03.301910 2019] [core:notice] [pid 1642AH00052child pid 2783 exit signal Segmentation fault (11)
[
Fri Dec 13 02:59:37.338448 2019] [core:notice] [pid 1642AH00052child pid 2782 exit signal Segmentation fault (11)
[
Fri Dec 13 02:59:38.344964 2019] [core:notice] [pid 1642AH00052child pid 2784 exit signal Segmentation fault (11)
[
Fri Dec 13 02:59:47.354545 2019] [core:notice] [pid 1642AH00052child pid 2773 exit signal Segmentation fault (11)
[
Fri Dec 13 03:00:48.421144 2019] [core:notice] [pid 1642AH00052child pid 2780 exit signal Segmentation fault (11)
[
Fri Dec 13 03:01:36.473420 2019] [core:notice] [pid 1642AH00052child pid 2781 exit signal Segmentation fault (11)
[
Fri Dec 13 03:01:38.482089 2019] [core:notice] [pid 1642AH00052child pid 2786 exit signal Segmentation fault (11


business_kid 12-13-2019 04:46 AM

Undo the upgrade and see if that sorts it. That's the first thing to try. Contact RH support, if you have it.
Presuming you haven't, resort to Google. The 'graceful restart' bit is irrelevant. Apache barfing on startup is the relevant bit

Guldstrand 12-13-2019 04:53 AM

Quote:

Originally Posted by business_kid (Post 6067443)
Undo the upgrade and see if that sorts it. That's the first thing to try. Contact RH support, if you have it.
Presuming you haven't, resort to Google. The 'graceful restart' bit is irrelevant. Apache barfing on startup is the relevant bit

I've already tried to reinstall the older version of PHP and that didn't help.
And i've searched for answers on google for a few hour already.
There are a few other with the same problem but no solutions.

business_kid 12-13-2019 10:00 AM

Quote:

Originally Posted by Guldstrand (Post 6067445)
I've already tried to reinstall the older version of PHP and that didn't help.
And i've searched for answers on google for a few hour already.
There are a few other with the same problem but no solutions.

Did you reinstall the old version or not? You'd have to force uninstall the new version before installing the old. There will also be some way of fixing broken installs on yum or dnf or whatever(and I'm sure they're building another equally useless replacement ATM).

If you're online (and running Apache, you probably are), you must have a backup. Why not revert to that?

Guldstrand 03-29-2020 03:35 AM

I'm still having issues with apache shuting down around midnight and are struggeling to start automaticly again.
Why is this happening?

business_kid 03-30-2020 03:52 AM

A segmentation fault is a memory fault. Originally it refers to the 80286's 4 bit segmentation registers and addressing a memory page that
wasn't there, but now I think it's any memory fault. 'Apache segmentation fault' might be a good search. I don't know how memory
hungry apache is, but a memory check would be a good idea to eliminate hardware. Presuming that checks out, I'd look for a broken binary,
which could be apache itself, or any lib it depends on. Lastly, if all that checks out and highest in order of unlikelihood is some other pc bug.

mic93304 02-02-2021 11:13 PM

Guldstrand, I had this same thing happing to me and it was because I was running an old version of certbot. Cron job would restart the server forever domain it would check, to see if it needs a new SSL certificate and it would do that twice a day.


All times are GMT -5. The time now is 07:09 PM.