Apache just dies

oldBastard

Expert Member
Joined
Jul 28, 2006
Messages
4,751
Reaction score
1,234
Location
Somewhere near your mom
Anybody experienced Apache that just stops.

I restart Apache service and run status and check how the child processes gets killed off and then Apache just stops.

No errors in the Apache error log file, just

Code:
systemd[1]: Stopped The Apache HTTP Server.

Oom isn't killing it neither. It has 93 Gigs memory, 89 Gigs available, and 32CPUs and the server is not accepting any connections currently.

The setup is Apache with php-fpm, with mod event, on Ubuntu 18.04.

I've update the mpm_event.conf file with all the settings and still no luck.

I even stopped php-fpm and still the same problem, just short now of doing a reinstall, but **** it, I'm really not in the mood to reinstall and restore.
 
Anybody experienced Apache that just stops.

I restart Apache service and run status and check how the child processes gets killed off and then Apache just stops.

No errors in the Apache error log file, just

Code:
systemd[1]: Stopped The Apache HTTP Server.

Oom isn't killing it neither. It has 93 Gigs memory, 89 Gigs available, and 32CPUs and the server is not accepting any connections currently.

The setup is Apache with php-fpm, with mod event, on Ubuntu 18.04.

I've update the mpm_event.conf file with all the settings and still no luck.

I even stopped php-fpm and still the same problem, just short now of doing a reinstall, but **** it, I'm really not in the mood to reinstall and restore.
Looks like systemd is doing it deliberately
Cron job?
 
Nope, just the normal daily logrotate cleared the error.log file

mpm_event doing something. Just cannot figure it out. Will scratch around more

View attachment 1337774
That looks like normal termination of the child process.

What does journalctl tell you about the apache service?
 
Core files?
Code:
(gdb) bt full
#0  0x00007f48d84bbcd7 in __GI___select (nfds=nfds@entry=0, readfds=readfds@entry=0x0, writefds=writefds@entry=0x0, exceptfds=exceptfds@entry=0x0, 
    timeout=timeout@entry=0x7ffe56d52e80) at ../sysdeps/unix/sysv/linux/select.c:41
        resultvar = 18446744073709551612
        sc_ret = <optimized out>
#1  0x00007f48d89ddac5 in apr_sleep (t=t@entry=1000000) at ./time/unix/time.c:249
        tv = {tv_sec = 0, tv_usec = 103164}
#2  0x0000556ae1229fc1 in ap_wait_or_timeout (status=status@entry=0x7ffe56d52f48, exitcode=exitcode@entry=0x7ffe56d52f4c, ret=ret@entry=0x7ffe56d52f50, p=<optimized out>, 
    s=<optimized out>) at mpm_common.c:199
        rv = <optimized out>
#3  0x00007f48d54a662a in server_main_loop (num_buckets=1, remaining_children_to_start=0) at event.c:2804
        status = 0
        pid = {pid = -1, in = 0x7f48d89c7cd6 <find_entry+134>, out = 0x0, err = 0x9}
        i = <optimized out>
        child_slot = <optimized out>
        exitwhy = APR_PROC_EXIT
        processed_status = <optimized out>
        child_slot = <optimized out>
        exitwhy = <optimized out>
        status = <optimized out>
        processed_status = <optimized out>
        pid = <optimized out>
        i = <optimized out>
        sr__ = <optimized out>
        ps = <optimized out>
        sr__ = <optimized out>
#4  event_run (_pconf=<optimized out>, plog=<optimized out>, s=<optimized out>) at event.c:2982
        num_buckets = 1
        remaining_children_to_start = <optimized out>
        i = <optimized out>
#5  0x0000556ae12295ee in ap_run_mpm (pconf=0x7f48d92a7028, plog=0x7f48d9275028, s=0x7f48d92784a0) at mpm_common.c:94
        pHook = <optimized out>
        n = 0
        rv = -1
#6  0x0000556ae1221deb in main (argc=<optimized out>, argv=<optimized out>) at main.c:818
        c = 0 '\000'
        showcompile = 0
        showdirectives = 0
        confname = 0x556ae1268ca5 "apache2.conf"
        def_server_root = 0x556ae1268c98 "/etc/apache2"
        temp_error_log = <optimized out>
        error = <optimized out>
        process = <optimized out>
        pconf = 0x7f48d92a7028
        plog = 0x7f48d9275028
        ptemp = 0x7f48d9279028
        pcommands = 0x7f48d927f028
        opt = 0x7f48d927f118
        rv = <optimized out>
        mod = <optimized out>
        opt_arg = 0x7f48d92a9028 "(\320*\331H\177"
        signal_server = <optimized out>
        rc = <optimized out>
(gdb)
 
Good luck

If you want to and are able to, I can log in and take a look around if you don't come right?
 
Possibly unrelated but your Apache and PHP are up to date with security patches? and whatever app you have facing the Internet is also secured or at least behind Cloudflare?
 
Good luck

If you want to and are able to, I can log in and take a look around if you don't come right?
Fanks for the offer, but won't be able to.

Possibly unrelated but your Apache and PHP are up to date with security patches? and whatever app you have facing the Internet is also secured or at least behind Cloudflare?
Yes to all
 
i assume you moved over to IIS , and now its all working with no issues ?
 
Top
Sign up to the MyBroadband newsletter
X