logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache2 down after package update
Author
Techforce



Joined: 01 May 2017
Posts: 3
Location: USA

PostPosted: Mon 01 May '17 14:37    Post subject: Apache2 down after package update Reply with quote

Glad to be aboard and make my 1st post. Have used Apache flawlessly for probably over a decade - thanks to all who have been involved maintaining it so well. The other day, it finally has given me a serious problem and wont come back up after the latest update.

I have posted to a number of other support forums for Linux as well as to my former ops guy and still Apache is down for about 2+ days now. Here is basically a cut and paste synopsis of the problem and whats been done, sorry if it looks messy but I'm in an endless loop of sorts.... Sad any help appreciated. Sorry if this is too long and I should have used hastebin, but its my first time here and hard to know where to begin.

Note: Apparently I'm stuck using PHP5.6 for the time being as an older web portal cannot use the new sql commands now present in 7.x. Not sure if that is an issue, but I do have (2) other plain http/s sites on the server so should be ok afaik.

(1st post of problem)
======================================================
Did the usual package updates today from Webmin, all went ok except when
upgrading Apache2. There was a timeout, and the service never restarted
during the upgrade process.

I did a purge and remove via bash, and a reinstall , but still no go.

=========================================================
Fri Apr 28 22:33:30 UTC 2017
~# sudo apt-get --purge remove apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
apache2-data apache2-utils
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
apache2*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 514 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 70372 files and directories currently installed.)
Removing apache2 (2.4.25-3+deb.sury.org~xenial+1) ...
Purging configuration files for apache2 (2.4.25-3+deb.sury.org~xenial+1) ...
dpkg: warning: while removing apache2, directory '/var/www/html' not empty
so no
t removed
dpkg: warning: while removing apache2, directory
'/etc/apache2/sites-enabled' no
t empty so not removed
dpkg: warning: while removing apache2, directory '/etc/apache2/conf-enabled'
not
empty so not removed
Processing triggers for man-db (2.7.5-1) ...
~# sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
Job for apache2.service failed because the control process exited with error
cod
e. See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "start" failed.
? apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri
2017-04-28 22
:36:45 UTC; 6ms ago
Docs: man:systemd-sysv-generator(Cool
Process: 22561 ExecStart=/etc/init.d/apache2 start (code=exited,
status=1/FAIL
URE)

Apr 28 22:36:45 systemd[1]: apache2.service: Control
pr...
Apr 28 22:36:45 systemd[1]: Failed to start LSB:
Apache...
Apr 28 22:36:45 systemd[1]: apache2.service: Unit
enter...
Apr 28 22:36:45 systemd[1]: apache2.service: Failed
wit...
Hint: Some lines were ellipsized, use -l to show in full.
insserv: warning: current start runlevel(s) (empty) of script
`apache-htcachecle
an' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script
`apache-htc
acheclean' overrides LSB defaults (0 1 6).
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...

=====================================================

Im not sure if its because I enabled mod_rewrite and there is a new path or
something, but thats
the only change thata major I did with Apache after trying to get the sites
more SEO friendly recently.
There may have been 1 other module enabled, but I cant remember what it was.
I went in and turned on rewrite
and we are still failing.

=================================================
Thought I would try a rollback so tried a purge and remove via bash, and a reinstall , but still no go.


apt-get install apache2=2.4.18-2ubuntu3.1


ran the journalctrl
command and it says:

=====================================================
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Apr 29 14:07:13 systemd[1]: apache2.service: Unit entered failed state.
Apr 29 14:07:13 systemd[1]: apache2.service: Failed with result 'exit-code'.
Apr 29 14:07:13 systemd[1]: apache2.service: Service hold-off time over,
scheduling restart.
Apr 29 14:07:13 systemd[1]: Stopped LSB: Apache2 web server.
-- Subject: Unit apache2.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has finished shutting down.
Apr 29 14:07:13 systemd[1]: apache2.service: Start request repeated too
quickly.
Apr 29 14:07:13 systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
======================================================

Did another purge and reinstall -
apt-get install apache2=2.4.18-2ubuntu3.1

But it said there were 2 dependencies missing.

Someone else on another help list said:
======================================================
The missing dependencies are probably apache2-data apache2-utils . Try
"apt-get install apache2 apache2-data apache2-utils"
======================================================
Tried that,
...seems like those go in and still it tries to put in apache
2.4.25 even after its purged?

====================================================
sudo apt-get --purge remove apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
apache2-data apache2-utils
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
apache2*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 514 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 70372 files and directories currently installed.)
Removing apache2 (2.4.25-3+deb.sury.org~xenial+1) ...
Purging configuration files for apache2 (2.4.25-3+deb.sury.org~xenial+1) ...
dpkg: warning: while removing apache2, directory '/var/www/html' not empty
so no
t removed
dpkg: warning: while removing apache2, directory
'/etc/apache2/sites-enabled' no
t empty so not removed
dpkg: warning: while removing apache2, directory '/etc/apache2/conf-enabled'
not
empty so not removed
Processing triggers for man-db (2.7.5-1) ...
:~# sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
apache2-data apache2-utils
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 1,203 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 70164 files and directories currently installed.)
Removing apache2-data (2.4.25-3+deb.sury.org~xenial+1) ...
Removing apache2-utils (2.4.25-3+deb.sury.org~xenial+1) ...
Processing triggers for man-db (2.7.5-1) ...
~# apt-get install apache2 apache2-data apache2-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
www-browser apache2-doc
The following NEW packages will be installed:
apache2 apache2-data apache2-utils
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/462 kB of archives.
After this operation, 1,717 kB of additional disk space will be used.
Selecting previously unselected package apache2-utils.
(Reading database ... 69850 files and directories currently installed.)
Preparing to unpack
.../apache2-utils_2.4.25-3+deb.sury.org~xenial+1_amd64.deb .
..
Unpacking apache2-utils (2.4.25-3+deb.sury.org~xenial+1) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.25-3+deb.sury.org~xenial+1_all.deb
...
Unpacking apache2-data (2.4.25-3+deb.sury.org~xenial+1) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.25-3+deb.sury.org~xenial+1_amd64.deb ...
Unpacking apache2 (2.4.25-3+deb.sury.org~xenial+1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up apache2-utils (2.4.25-3+deb.sury.org~xenial+1) ...
Setting up apache2-data (2.4.25-3+deb.sury.org~xenial+1) ...
Setting up apache2 (2.4.25-3+deb.sury.org~xenial+1) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Job for apache2.service failed because the control process exited with error
cod
e. See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "start" failed.
? apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun
2017-04-30 17
:39:08 UTC; 5ms ago
Docs: man:systemd-sysv-generator(Cool
Process: 8747 ExecStart=/etc/init.d/apache2 start (code=exited,
status=1/FAILU
RE)

Apr 30 17:39:08 systemd[1]: Failed to start LSB: Apache...
Apr 30 17:39:08 systemd[1]: apache2.service: Unit enter...
Apr 30 17:39:08 systemd[1]: apache2.service: Failed wit...
Hint: Some lines were ellipsized, use -l to show in full.
insserv: warning: current start runlevel(s) (empty) of script
`apache-htcachecle
an' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script
`apache-htc
acheclean' overrides LSB defaults (0 1 6).
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
:~# apt-get install apache2=2.4.18-2ubuntu3.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
apache2 : Depends: apache2-bin (= 2.4.18-2ubuntu3.1) but
2.4.25-3+deb.sury.org~
xenial+1 is to be installed
======================================================
Back to top
Techforce



Joined: 01 May 2017
Posts: 3
Location: USA

PostPosted: Mon 01 May '17 15:10    Post subject: Reply with quote

Update:

Ok, I didnt see my former ops guy seems to have isolated at least part the issue, apparently its because we are using the Froxlor web management system:


AH00526: Syntax
error on line 12 of
/etc/apache2/sites-enabled/10_froxlor_ipandport_139.162.211.216.443.conf:
Apr 30 21:55:27 apache2[18292]: Invalid command
'Action', perhaps misspelled or defined by a module not included in the server configuration


So I guess we will pickup from there and see how it goes. Apparently Froxlor is allowing us to run php5.6 fastcgi in conjunction with Apache or something to that effect.
Back to top
Techforce



Joined: 01 May 2017
Posts: 3
Location: USA

PostPosted: Mon 01 May '17 16:07    Post subject: Reply with quote

1 question I think u guys can probably answer -

Is there a "rollback" option with the apache releases?
If not, would be a good idea here for my case, as a rollback to last known good configuration would most likely have my sites back up at least.
Back to top


Reply to topic   Topic: Apache2 down after package update View previous topic :: View next topic
Post new topic   Forum Index -> Apache