[Bug 1041234] Re: Upgrade of resolvconf from 1.63ubuntu* to 1.63ubuntu15 fails: start: Job failed to start
Thomas Hood
1041234 at bugs.launchpad.net
Wed Aug 29 21:18:26 UTC 2012
Your invoke-rc.d is original, so that's not the problem.
Nevertheless, when the resolvconf job is already started and "invoke-
rc.d resolvconf start" is done, on my system it remains silent (apart
from the "Rather than... start resolvconf" advisory) and exits zero
whereas on your system we see
start: Job is already running: resolvconf
invoke-rc.d: initscript resolvconf, action "start" failed.
The "Rather than... start resolvconf" comes from /lib/init/upstart-job
to which /etc/init.d/resolvconf is a symlink. Here is the relevant
code.
===snip===
case $COMMAND in
start|stop)
$ECHO
$ECHO "Since the script you are attempting to invoke has been converted to an"
$ECHO "Upstart job, you may also use the $COMMAND(8) utility, e.g. $COMMAND $JOB"
if status "$JOB" 2>/dev/null | grep -q ' start/'; then
RUNNING=1
fi
if [ -z "$RUNNING" ] && [ "$COMMAND" = "stop" ]; then
exit 0
elif [ -n "$RUNNING" ] && [ "$COMMAND" = "start" ]; then
exit 0
elif [ -n "$DISABLED" ] && [ "$COMMAND" = "start" ]; then
exit 0
fi
$COMMAND "$JOB"
;;
===snip===
Here you see how upstart-job is supposed to exit 0 when the job to be
started is already running. But in your case somehow "$COMMAND $JOB",
i.e., "start resolvconf", is getting run anyway (not necessarily from
the line quoted above).
Please post the output of " md5sum /lib/init/upstart-job".
(I see one possible bug in upstart-job, by the way. Nothing unsets
RUNNING before the aforementioned code block, so if RUNNING happens
already to have some value in the inherited environment then the script
may falsely think that the job is running when it's not. But that can't
be the cause of your problem. A cause of your problem would be
something like: the script falsely thinks that the job is not running
when it is.)
Can you reproduce the failure? If so, can you use shell tracing
features to find out *where* "start resolvconf" gets executed the second
time, when it returns nonzero status?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to resolvconf in Ubuntu.
https://bugs.launchpad.net/bugs/1041234
Title:
Upgrade of resolvconf from 1.63ubuntu* to 1.63ubuntu15 fails: start:
Job failed to start
Status in “resolvconf” package in Ubuntu:
Incomplete
Bug description:
I can see that the other bug (https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/929552) has expired, and it was actually addressing a different version.
Today I tried applying the pending upgrades on my amazon ec2 based ubuntu 12.04 64-bit server, and got the following error:
Setting up resolvconf (1.63ubuntu15) ...
resolvconf start/running
Processing triggers for resolvconf ...
start: Job is already running: resolvconf
invoke-rc.d: initscript resolvconf, action "start" failed.
dpkg: error processing resolvconf (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
resolvconf
E: Sub-process /usr/bin/dpkg returned an error code (1)
Please tell me what more information I could provide.
:~$ uname -a
Linux ### 3.2.0-29-virtual #46-Ubuntu SMP Fri Jul 27 17:23:50 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1041234/+subscriptions
More information about the foundations-bugs
mailing list