wackamole init script start fails with "Cannot write PID file" on 10.04 Server

Bug #788085 reported by Eric Williams
26
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wackamole (Ubuntu)
Invalid
Undecided
Unassigned
Lucid
Won't Fix
Undecided
Daniel T Chen
Maverick
Won't Fix
Undecided
Daniel T Chen
Natty
Won't Fix
Undecided
Daniel T Chen

Bug Description

Binary package hint: wackamole

## Issue

* wackamole does not start at system boot

* wackamole init script startup fails with "Cannot write PID file"

## Environment

* working wackamole / spread configuration

* Lucid 10.04.2

* /var/run/ mounted as tmpfs

## Root Cause

/var/run/wackamole is created at dpkg install time. /var/run is tmpfs, however, and the directory disappears on reboot.

## Resolution

Adding the following lines to /etc/init.d/wackamole before daemon start resolves this issue:

  test -d /var/run/$NAME || mkdir /var/run/$NAME

See patch: https://bugs.launchpad.net/ubuntu/+source/wackamole/+bug/788085/+attachment/2219241/+files/wackamole_2.1.1-3.1ubuntu0.11.04.0.debdiff

Note that this patch is not applicable to Oneiric, which does not have this source package.

## TEST CASE (Diagnostic Steps)

1. install wackamole and spread

2. setup configuration so that it works as expected

3. reboot

4. Check for the following in /var/log/daemon.log:

May 25 12:33:13 wacka1 wackamole[871]: Cannot write PID file /var/run/wackamole/wackamole.pid

## Regression potential

Slim to none - addition of the check for pid dir nonexistence does not impact other paths.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: wackamole 2.1.1-3.1
ProcVersionSignature: Ubuntu 2.6.32-28.55-generic-pae 2.6.32.27+drm33.12
Uname: Linux 2.6.32-28-generic-pae i686
Architecture: i386
Date: Wed May 25 13:14:08 2011
InstallationMedia: Ubuntu-Server 10.04.2 LTS "Lucid Lynx" - Release i386 (20110211.1)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: wackamole

Revision history for this message
Eric Williams (eric-canonical) wrote :
tags: added: patch
Revision history for this message
Daniel T Chen (crimsun) wrote :
description: updated
Changed in wackamole (Ubuntu Natty):
assignee: nobody → Daniel T Chen (crimsun)
Changed in wackamole (Ubuntu Maverick):
assignee: nobody → Daniel T Chen (crimsun)
Changed in wackamole (Ubuntu Lucid):
assignee: nobody → Daniel T Chen (crimsun)
Daniel T Chen (crimsun)
description: updated
description: updated
description: updated
Revision history for this message
Chris Halse Rogers (raof) wrote :

SRU team ack. Please accept into lucid-proposed, maverick-proposed, and natty-proposed.

Changed in wackamole (Ubuntu):
status: New → Invalid
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Eric, or anyone else affected,

Accepted wackamole into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in wackamole (Ubuntu Natty):
status: New → Fix Committed
tags: added: verification-needed
Changed in wackamole (Ubuntu Maverick):
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Hello Eric, or anyone else affected,

Accepted wackamole into maverick-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in wackamole (Ubuntu Lucid):
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Hello Eric, or anyone else affected,

Accepted wackamole into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Eric Williams (eric-canonical) wrote :

Hi, Martin

I'll be testing this shortly.

Thanks,
Eric

tags: added: testcase
Changed in wackamole (Ubuntu Maverick):
status: Fix Committed → Won't Fix
Revision history for this message
Brian Murray (brian-murray) wrote : Verification still needed

The fix for this bug has been awaiting testing feedback in the -proposed repository for lucid for more than 90 days. Please test this fix and update the bug appropriately with the results. In the event that the fix for this bug is still not verified 15 days from now, the package will be removed from the -proposed repository.

tags: added: removal-candidate
Revision history for this message
Adam Conrad (adconrad) wrote :

Removing packages from lucid-proposed:
 wackamole 2.1.1-3.1ubuntu0.10.04.0 in lucid
  wackamole 2.1.1-3.1ubuntu0.10.04.0 in lucid amd64
  wackamole 2.1.1-3.1ubuntu0.10.04.0 in lucid armel
  wackamole 2.1.1-3.1ubuntu0.10.04.0 in lucid i386
  wackamole 2.1.1-3.1ubuntu0.10.04.0 in lucid ia64
  wackamole 2.1.1-3.1ubuntu0.10.04.0 in lucid powerpc
  wackamole 2.1.1-3.1ubuntu0.10.04.0 in lucid sparc
Comment: Failed to get SRU verification

Changed in wackamole (Ubuntu Lucid):
status: Fix Committed → In Progress
Changed in wackamole (Ubuntu Natty):
status: Fix Committed → Won't Fix
Changed in wackamole (Ubuntu Lucid):
status: In Progress → Triaged
tags: removed: removal-candidate
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in wackamole (Ubuntu Lucid):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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