[Bug 788085] Re: wackamole init script start fails with "Cannot write PID file" on 10.04 Server
Daniel T Chen
seven.steps at gmail.com
Tue Jul 19 21:48:38 UTC 2011
** Description changed:
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
+ test -d /var/run/$NAME || mkdir /var/run/$NAME
See patch.
- ## Diagnostic Steps
+ ## 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
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
+ PATH=(custom, no user)
+ LANG=en_GB.UTF-8
+ SHELL=/bin/bash
SourcePackage: wackamole
** Also affects: wackamole (Ubuntu Lucid)
Importance: Undecided
Status: New
** Also affects: wackamole (Ubuntu Maverick)
Importance: Undecided
Status: New
** Also affects: wackamole (Ubuntu Natty)
Importance: Undecided
Status: New
** Changed in: wackamole (Ubuntu Natty)
Assignee: (unassigned) => Daniel T Chen (crimsun)
** Changed in: wackamole (Ubuntu Maverick)
Assignee: (unassigned) => Daniel T Chen (crimsun)
** Changed in: wackamole (Ubuntu Lucid)
Assignee: (unassigned) => Daniel T Chen (crimsun)
** Patch added: "Patch for natty-proposed"
https://bugs.launchpad.net/ubuntu/+source/wackamole/+bug/788085/+attachment/2219241/+files/wackamole_2.1.1-3.1ubuntu0.11.04.0.debdiff
** Description changed:
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.
+ See patch:
+ https://bugs.launchpad.net/ubuntu/+source/wackamole/+bug/788085/+attachment/2219241/+files/wackamole_2.1.1-3.1ubuntu0.11.04.0.debdiff
## 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
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
** Description changed:
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
## 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
** Description changed:
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
--
You received this bug notification because you are a member of Ubuntu
Review Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/788085
Title:
wackamole init script start fails with "Cannot write PID file" on
10.04 Server
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wackamole/+bug/788085/+subscriptions
More information about the Ubuntu-patch-reviews
mailing list