Init script claims another apache is running when it's not

Bug #1362402 reported by Julian Edwards
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

root@maas:~# grep PID /etc/apache2/envvars
export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
root@maas:~# ls -la /var/run/apache2/
total 0
drwxr-xr-x 2 root root 40 Aug 28 13:22 .
drwxr-xr-x 31 root root 1040 Aug 28 13:23 ..
root@maas:~# service apache2 restart
 * Restarting web server apache2 [fail]
 * There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety, Please review the situation by hand.
root@maas:~# ps -fe|grep apache2
root 10594 6834 0 13:26 pts/1 00:00:00 grep --color=auto apache2

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: apache2 2.4.7-1ubuntu4.1
ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4
Uname: Linux 3.13.0-34-generic x86_64
Apache2ConfdDirListing: ['cobbler.conf', 'cobbler_web.conf', 'maas-http.conf', 'maas-cluster-http.conf']
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
Date: Thu Aug 28 13:27:34 2014
SourcePackage: apache2
UpgradeStatus: Upgraded to trusty on 2014-01-31 (209 days ago)

Revision history for this message
Julian Edwards (julian-edwards) wrote :
Revision history for this message
Robie Basak (racb) wrote :

Hi Julian,

The logic is in /etc/init.d/apache2 from around line 198. What does "pidof /usr/sbin/apache2" give you please, and what is its exit status? If it does provide some pids, then what does ps report against them? And what files and what contents are in /var/run/apache2/?

Changed in apache2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Hey Robie,

As you can see in the description, there was nothing in /var/run/apache2 at all.

However as is typical in these situations, it's stopped happening :( I'll leave this incomplete and comment back again if I see it re-occur.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apache2 (Ubuntu) because there has been no activity for 60 days.]

Changed in apache2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.