|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Bug#490270: dpkg: [S-S-D] start-stop-daemon --stop fails if the daemon is not running.Package: dpkg
Version: 1.13.25 Severity: important Dear dpkg maintainers, I was trying to remove `fam' in an Etch chroot, but was blocked by the following error: root@anx159:/# dpkg --purge fam (Reading database ... 54012 files and directories currently installed.) Removing fam ... Stopping file alteration monitor: FAMstart-stop-daemon: nothing in /proc - not mounted? (Success) invoke-rc.d: initscript fam, action "stop" failed. dpkg: error processing fam (--purge): subprocess pre-removal script returned error exit status 2 Starting file alteration monitor: FAMstart-stop-daemon: nothing in /proc - not mounted? (Success) invoke-rc.d: initscript fam, action "start" failed. dpkg: error while cleaning up: subprocess post-installation script returned error exit status 2 Errors were encountered while processing: fam The postinst script of fam fails because of invoke-rc.d stop fails: root@anx159:/# more /var/lib/dpkg/info/fam.prerm #!/bin/sh set -e # Automatically added by dh_installinit if [ -x "/etc/init.d/fam" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d fam stop || exit $? else /etc/init.d/fam stop || exit $? fi fi # End automatically added section invoke-rc.d fails because /etc/init.d/fam uses start-stop-daemon, that does not realise that fam is not running and fails later trying to stop it. casee "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" start-stop-daemon --start --quiet --exec $DAEMON -- $FAMOPTS log_end_msg $? ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" start-stop-daemon --stop --oknodo --quiet --exec $DAEMON log_end_msg $? ;; The consequence of this is that it is difficult to remove not runnign daemons on Debian. Apparently, fam uses templates from dh-make and debhelper, so the bug may be that the template is wrong if the behaviour of start-stop-daemon is right... Have a nice day, -- Charles Plessy Tsurumi, Kanagawa, Japan -- To UNSUBSCRIBE, email to debian-dpkg-bugs-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Bug#490270: marked as done (dpkg: [S-S-D] start-stop-daemon --stop fails if the daemon is not running.)Your message dated Fri, 11 Jul 2008 09:16:04 +0200 with message-id <20080711071604.GH17010@...> and subject line Re: Bug#490270: dpkg: [S-S-D] start-stop-daemon --stop fails if the daemon is not running. has caused the Debian Bug report #490270, regarding dpkg: [S-S-D] start-stop-daemon --stop fails if the daemon is not running. to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@... immediately.) -- 490270: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490270 Debian Bug Tracking System Contact owner@... with problems Package: dpkg Version: 1.13.25 Severity: important Dear dpkg maintainers, I was trying to remove `fam' in an Etch chroot, but was blocked by the following error: root@anx159:/# dpkg --purge fam (Reading database ... 54012 files and directories currently installed.) Removing fam ... Stopping file alteration monitor: FAMstart-stop-daemon: nothing in /proc - not mounted? (Success) invoke-rc.d: initscript fam, action "stop" failed. dpkg: error processing fam (--purge): subprocess pre-removal script returned error exit status 2 Starting file alteration monitor: FAMstart-stop-daemon: nothing in /proc - not mounted? (Success) invoke-rc.d: initscript fam, action "start" failed. dpkg: error while cleaning up: subprocess post-installation script returned error exit status 2 Errors were encountered while processing: fam The postinst script of fam fails because of invoke-rc.d stop fails: root@anx159:/# more /var/lib/dpkg/info/fam.prerm #!/bin/sh set -e # Automatically added by dh_installinit if [ -x "/etc/init.d/fam" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d fam stop || exit $? else /etc/init.d/fam stop || exit $? fi fi # End automatically added section invoke-rc.d fails because /etc/init.d/fam uses start-stop-daemon, that does not realise that fam is not running and fails later trying to stop it. casee "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" start-stop-daemon --start --quiet --exec $DAEMON -- $FAMOPTS log_end_msg $? ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" start-stop-daemon --stop --oknodo --quiet --exec $DAEMON log_end_msg $? ;; The consequence of this is that it is difficult to remove not runnign daemons on Debian. Apparently, fam uses templates from dh-make and debhelper, so the bug may be that the template is wrong if the behaviour of start-stop-daemon is right... Have a nice day, -- Charles Plessy Tsurumi, Kanagawa, Japan On Fri, 11 Jul 2008, Charles Plessy wrote: > Package: dpkg > Version: 1.13.25 > Severity: important > > Dear dpkg maintainers, > > I was trying to remove `fam' in an Etch chroot, but was blocked by the > following error: > > root@anx159:/# dpkg --purge fam > (Reading database ... 54012 files and directories currently installed.) > Removing fam ... > Stopping file alteration monitor: FAM > start-stop-daemon: nothing in /proc - not mounted? (Success) I'm afraid there's no bug here but a user problem because you had /proc not mounted. Furthermore before reporting new bugs, it's always best to see if you can reproduce it with the current sid version... s-s-d has had quite a few fixes during the lenny cycle. Closing the bug. Cheers, -- Raphaël Hertzog Le best-seller français mis à jour pour Debian Etch : http://www.ouaza.com/livre/admin-debian/ |
|
|
|
|
|
Bug#490270: dpkg: [S-S-D] start-stop-daemon --stop fails if the daemon is not running.On Fri, 11 Jul 2008, Charles Plessy wrote:
> 1) I think that one should be able to remove Debian packages with /proc > not mounted. This doesn't mean that s-s-d has a problem however. And I don't agree with the premise that /proc should not be required. > 2) I chose to report this bug against Etch's version because not being > able to remove some packages can complicate upgrade to next release. And? You know that the etch version is _released_ and as such can't be fixed unless it's a major problem (which this is not). And as I said, you should check if the sid version is any better for your problem. > But the real problem is that despite the daemon is not running, the > package can not be removed. So file bugs against real problems where they are. :) > Can I reopen this bug in Etch and mark it fixed in Lenny+Sid if it has > been solved in these versions ? Not until you define more precisely what problem do you have with start-stop-daemon and what would be the right behaviour in your opinion. In many cases, it's the caller of s-s-d that is at fault and not s-s-d itself. Cheers, -- Raphaël Hertzog Le best-seller français mis à jour pour Debian Etch : http://www.ouaza.com/livre/admin-debian/ -- To UNSUBSCRIBE, email to debian-dpkg-bugs-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
| Free Forum Powered by Nabble | Forum Help |