Apache2 Fails to Start after recent auto package update...

9 posts / 0 new
Last post
#1 Wed, 07/18/2018 - 21:46
arretx

Apache2 Fails to Start after recent auto package update...

I'm going out of my mind.

Last night at about 7:55, two apache packages were updated to the latest version. Since then Apache has been down and won't start.

I just looked in what appears to be an error log just about when the problem started that has this in it 36 times:

AH00112: Warning: DocumentRoot [/var/lib/letsencrypt/tls_sni_01_page/] does not exist

Sure enough, that doesn't exist, but I don't know what this means.

Followed by this:

[Tue Jul 17 18:54:50.633588 2018] [ssl:warn] [pid 1768:tid 140443327088512] AH01906: a18174a012ff42b4516651e79941dd3f.39e4cbd25921e27b7c7311bfed92f47a.acme.invalid:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)

...another 36 times.

Followed by this:

PHP Warning: Module 'curl' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0
[Tue Jul 17 18:55:03.022274 2018] [mpm_event:notice] [pid 1768:tid 140443327088512] AH00493: SIGUSR1 received. Doing graceful restart
[Tue Jul 17 18:55:03.151287 2018] [mpm_event:notice] [pid 1768:tid 140443327088512] AH00489: Apache/2.4.33 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.0h configured -- resuming normal operations
[Tue Jul 17 18:55:03.151309 2018] [core:notice] [pid 1768:tid 140443327088512] AH00094: Command line: '/usr/sbin/apache2'
PHP Warning: Module 'curl' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0
PHP Warning: Module 'curl' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0
[Tue Jul 17 19:57:18.856479 2018] [mpm_event:notice] [pid 1768:tid 140443327088512] AH00491: caught SIGTERM, shutting down

I've combed through posts and information for about 4 hours now and I'm lost. Anything I should be looking for?

Wed, 07/18/2018 - 21:59
arretx

Also found this after running apachectl configtest.

apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/lbmethod_byrequests.load: Cannot load /usr/lib/apache2/modules/mod_lbmethod_byrequests.so into server: /usr/lib/apache2/modules/mod_lbmethod_byrequests.so: undefined symbol: ap_proxy_balancer_get_best_worker Action 'configtest' failed.

LIne 146 is DefaultRuntimeDir ${APACHE_RUN_DIR}

Line 2 of lbmethod_byrequests.load reads: LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so

That file exists, and as far as I can see has the same permissions that all of the other *.so files have.

So what in the world is this syntax error?

Thu, 07/19/2018 - 00:29
flaviod

I got the same error after the update of Apache. A quick fix was to disable the lbmethod_byrequests module in Webmin just to get Apache working again. But the underlying issue is not solved.

Thu, 07/19/2018 - 01:49
arretx

So, someone on stackexchange figured out that it was being loaded in the wrong order, renamed lbmethod_byrequests.load to zzlbmethod_byrequests.load and it all loads just fine.

/etc/apache2/mods-enabled/zzlbmethod_byrequests.load

Mon, 07/23/2018 - 03:02
Jfro

For all to have it clear is this a BUG?

IF so is this a BUG of Virtualmin?

If so wich change update and version and where documented / readme's?

I mean it seems hard for us to find documentation in a timely matter for things as BUGS and solving after UPDATES, am i wrong here? ( then tell me so i learn know where and how to look)

Sun, 08/19/2018 - 21:33
xtz

I have same issue, i changed to php-fpm virtual servers and still i get those errors for CURL and GD , i could not find any duplicate syntax in any php.ini I noticed only now, but error started after last major update in virtualmin. Smth is wrong with last update.

Mon, 08/20/2018 - 02:38
Jfro

VERSIONS ? As you can read in forumrules. ;)

Mon, 08/20/2018 - 03:46
xtz

Virtualmin is 6.0.3, webmin 1.891, ubuntu 16.04.05 PHP versions installed 7.0.30 I get errors only for GD library and CURL. If i remove them, apache will give me error that i don't have package installed.

Mon, 08/20/2018 - 05:01
Jfro

I myself don't use ubuntu and also not the default "apache" repo so can't help.

Mostly version conflicts with old and new between thoses as curl and more, or same with openssl versions and so on.

You have for support here post your errors/logs to ofcourse. ;)

Topic locked