richardforth / apache2buddy

apache2buddy
Apache License 2.0
384 stars 72 forks source link

Buddy cannot load includes #373

Closed rvcoutinho closed 3 years ago

rvcoutinho commented 3 years ago

Includes as httpd-mpm.conf not loaded (ServerLimit is set in httpd-mpm.conf):

VERBOSE: Processing conf/httpd.conf
VERBOSE: Searching Apache configuration for the user directive
VERBOSE: ${APACHE_USER} 
VERBOSE: Using Ubuntu workaround for: user
VERBOSE: Processing /etc/apache2/envvars
[ >> ] Running user (httpd) does NOT match config (www-data).
VERBOSE: Searching Apache configuration for the pidfile directive
VERBOSE: CONFIG NOT FOUND 
[ -- ] pidfile setting is CONFIG NOT FOUND.
VERBOSE: Stripping any quotes from string ...
VERBOSE: BEFORE (CONFIG NOT FOUND).
VERBOSE: AFTER (CONFIG NOT FOUND).
[ -- ] Actual pidfile is /usr/local/apache2/logs/httpd.pid.
[ -- ] Parent PID: 1.
VERBOSE: output of 'pmap' is different depending on distro!
[ OK ] Memory usage of parent PID is less than 50MB: 42160 Kilobytes.
VERBOSE: PID passed to uptime function: 1
VERBOSE: Raw uptime: 29:12
[ -- ] Apache has been running 0d 0h 29m 12s.
[ !! ] *** LOW UPTIME ***.
[ @@ ] The following recommendations may be misleading - apache has been restarted within the last 24 hours.
[ -- ] Your server has 29980 MB of PHYSICAL memory.
VERBOSE: Searching Apache configuration for the serverlimit directive
VERBOSE: CONFIG NOT FOUND 
[ >> ] ServerLimit directive not found, assuming default values.
[ -- ] Your ServerLimit setting is 16.

It ends up in a division by 0 error:

VERBOSE: Memory usage by PID 2656 is K
VERBOSE: Memory usage by PID 2657 is K
VERBOSE: Memory usage by PID 2658 is K
Use of uninitialized value $count in division (/) at - line 958 (#1)

Illegal division by zero at - line 958 (#2)
    (F) You tried to divide a number by 0.  Either something was wrong in
    your logic, or you need to put a conditional in to guard against
    meaningless input.

Uncaught exception from user code:
    Illegal division by zero at - line 958.
    main::get_memory_usage("httpd", "httpd", "average") called at - line 2772
richardforth commented 3 years ago

What version of Ubuntu do you have and how did you install Apache?

rvcoutinho commented 3 years ago

Running official httpd Docker version using debian:buster

richardforth commented 3 years ago

Ok thank you. It's not designed to run inside Docker.

On Tue, 27 Jul 2021, 17:06 Rômulo Coutinho, @.***> wrote:

Running Docker version using debian:buster

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/richardforth/apache2buddy/issues/373#issuecomment-887640288, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNFIVZETBNAUK5CAJYQZ4LTZ3KRBANCNFSM5BCQ4RUQ .

rvcoutinho commented 3 years ago

I see