If I reboot the server apache2.service fails
If i restart the service it runs fine until i have to reboot
error log
[Sun Apr 23 21:06:33.749160 2023] [mpm_event:notice] [pid 36985:tid 139878813543744] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 21:06:33.749227 2023] [core:notice] [pid 36985:tid 139878813543744] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 21:06:53.884719 2023] [mpm_event:notice] [pid 36985:tid 139878813543744] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using vault118.payloadhosting.com. Set the 'ServerName' directive globally to suppress this message
[Sun Apr 23 21:06:53.935567 2023] [mpm_event:notice] [pid 36985:tid 139878813543744] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 21:06:53.935574 2023] [core:notice] [pid 36985:tid 139878813543744] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 21:07:15.215353 2023] [mpm_event:notice] [pid 36985:tid 139878813543744] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Apr 23 21:07:15.316796 2023] [mpm_event:notice] [pid 38697:tid 140220509142336] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 21:07:15.316887 2023] [core:notice] [pid 38697:tid 140220509142336] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 21:07:17.397545 2023] [mpm_event:notice] [pid 38697:tid 140220509142336] AH00493: SIGUSR1 received. Doing graceful restart
[Sun Apr 23 21:07:17.454427 2023] [mpm_event:notice] [pid 38697:tid 140220509142336] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 21:07:17.454446 2023] [core:notice] [pid 38697:tid 140220509142336] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 21:47:40.935984 2023] [mpm_event:notice] [pid 38697:tid 140220509142336] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Apr 23 21:56:18.560983 2023] [mpm_event:notice] [pid 3270:tid 139631591849280] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 21:56:18.561136 2023] [core:notice] [pid 3270:tid 139631591849280] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 22:45:53.194074 2023] [mpm_event:notice] [pid 3270:tid 139631591849280] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Apr 23 22:45:53.295566 2023] [mpm_prefork:notice] [pid 51991] AH00163: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 22:45:53.295667 2023] [core:notice] [pid 51991] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 22:45:53.450092 2023] [mpm_prefork:notice] [pid 51991] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Apr 23 22:45:53.591372 2023] [mpm_prefork:notice] [pid 52035] AH00163: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 22:45:53.591431 2023] [core:notice] [pid 52035] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 22:45:56.442286 2023] [mpm_prefork:notice] [pid 52035] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Apr 23 22:45:56.608084 2023] [mpm_prefork:notice] [pid 54845] AH00163: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 22:45:56.608130 2023] [core:notice] [pid 54845] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 22:45:59.935432 2023] [mpm_prefork:notice] [pid 54845] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Apr 23 22:46:00.102947 2023] [mpm_prefork:notice] [pid 55931] AH00163: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 22:46:00.102972 2023] [core:notice] [pid 55931] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 22:46:21.901283 2023] [mpm_prefork:notice] [pid 55931] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Apr 23 22:46:22.035922 2023] [mpm_prefork:notice] [pid 68060] AH00163: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 22:46:22.035961 2023] [core:notice] [pid 68060] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 22:46:29.486724 2023] [mpm_prefork:notice] [pid 68060] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Apr 23 22:46:29.587004 2023] [mpm_prefork:notice] [pid 70926] AH00163: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 22:46:29.587106 2023] [core:notice] [pid 70926] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 22:46:34.768740 2023] [mpm_prefork:notice] [pid 70926] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Apr 23 22:46:34.863481 2023] [mpm_event:notice] [pid 71582:tid 140408469175616] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 22:46:34.863585 2023] [core:notice] [pid 71582:tid 140408469175616] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 22:47:19.470677 2023] [mpm_event:notice] [pid 71582:tid 140408469175616] AH00493: SIGUSR1 received. Doing graceful restart
[Sun Apr 23 22:47:19.525881 2023] [mpm_event:notice] [pid 71582:tid 140408469175616] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 22:47:19.525892 2023] [core:notice] [pid 71582:tid 140408469175616] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 23 23:35:49.022336 2023] [mpm_event:notice] [pid 71582:tid 140408469175616] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Apr 23 23:43:56.176145 2023] [mpm_event:notice] [pid 3230:tid 139760954694976] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Apr 23 23:43:56.176292 2023] [core:notice] [pid 3230:tid 139760954694976] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 24 00:05:07.827825 2023] [mpm_event:notice] [pid 3230:tid 139760954694976] AH00493: SIGUSR1 received. Doing graceful restart
[Mon Apr 24 00:05:07.884292 2023] [mpm_event:notice] [pid 3230:tid 139760954694976] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Mon Apr 24 00:05:07.884314 2023] [core:notice] [pid 3230:tid 139760954694976] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 24 00:08:20.111837 2023] [mpm_event:notice] [pid 3230:tid 139760954694976] AH00492: caught SIGWINCH, shutting down gracefully
[Mon Apr 24 00:13:00.586291 2023] [mpm_event:notice] [pid 2776:tid 140066059664704] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Mon Apr 24 00:13:00.586419 2023] [core:notice] [pid 2776:tid 140066059664704] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 24 00:15:12.650319 2023] [mpm_event:notice] [pid 2776:tid 140066059664704] AH00492: caught SIGWINCH, shutting down gracefully
[Mon Apr 24 00:18:00.588981 2023] [mpm_event:notice] [pid 2321:tid 140488983276864] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Mon Apr 24 00:18:00.589188 2023] [core:notice] [pid 2321:tid 140488983276864] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 24 00:32:20.422262 2023] [mpm_event:notice] [pid 2321:tid 140488983276864] AH00492: caught SIGWINCH, shutting down gracefully
[Mon Apr 24 00:37:18.957173 2023] [mpm_event:notice] [pid 2520:tid 140398921485632] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Mon Apr 24 00:37:18.957308 2023] [core:notice] [pid 2520:tid 140398921485632] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 24 18:17:56.011887 2023] [mpm_event:notice] [pid 2520:tid 140398921485632] AH00492: caught SIGWINCH, shutting down gracefully
[Mon Apr 24 19:02:17.275425 2023] [mpm_event:notice] [pid 4339:tid 140196306226496] AH00489: Apache/2.4.56 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Mon Apr 24 19:02:17.275473 2023] [core:notice] [pid 4339:tid 140196306226496] AH00094: Command line: '/usr/sbin/apache2'
Please advise
Apache2 Service Crashing
- myVesta
- Site Admin
- Posts: 932
- Joined: Fri Jun 19, 2020 9:59 am
- Has thanked: 8 times
- Been thanked: 6 times
It's not crashing, it's restarting.
Every time you add/edit/remove domain or change template or proxy extensions, or every time you or cron generate LetsEncrypt SSL... both Apache and nginx will be restarted.
Every time you add/edit/remove domain or change template or proxy extensions, or every time you or cron generate LetsEncrypt SSL... both Apache and nginx will be restarted.
Let me clarify. After the server reboots the apache2.service is in a failed state. If I run it again later it starts just fine.
For the time being I have created a cron job that runs 90 seconds after the server reboots and that seems to have apache2 working correctly. I am trying to discover why it is entering a failed state.
Thanks.
For the time being I have created a cron job that runs 90 seconds after the server reboots and that seems to have apache2 working correctly. I am trying to discover why it is entering a failed state.
Thanks.
- myVesta
- Site Admin
- Posts: 932
- Joined: Fri Jun 19, 2020 9:59 am
- Has thanked: 8 times
- Been thanked: 6 times
Probably network is not ready at that time, so Apache can't bind IP address.
I had the same problem on some virtuelizations, I solved in the similar way, I used /etc/rc.local to start apache and nginx after 60 seconds from server boot.
I had the same problem on some virtuelizations, I solved in the similar way, I used /etc/rc.local to start apache and nginx after 60 seconds from server boot.