Bug#572971: upgrade fails if mongodb not currently started

2010-03-30 Thread Michal Politowski
On Mon, 15 Mar 2010 14:18:48 +0100, Antonin Kral wrote:
> Hi Michal,
> 
> could you please check the file /etc/init.d/mongodb ? I am suspicious
> that it will be symlink:
> 
> mongodb -> /lib/init/upstart-job
> 
> This is caused by the incorrect implementation of upstart / upgrade path
> from the upstart script.
> 
> Please remove the file and reinstall the package. It should solve your
> problem.

Yes, /etc/init.d/mongodb is indeed a link to /lib/init/upstart-job
(actually, I wrote about modifying it in the prevoius mail).
and removing it lets me remove mongodb.
After reinstalling 1.2.2-1 the problem of course repeats.
1.2.4-1 installs and removes correctly, even when mongodb is stopped.

-- 
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#572971: upgrade fails if mongodb not currently started

2010-03-15 Thread Antonin Kral
Hi Michal,

could you please check the file /etc/init.d/mongodb ? I am suspicious
that it will be symlink:

mongodb -> /lib/init/upstart-job

This is caused by the incorrect implementation of upstart / upgrade path
from the upstart script.

Please remove the file and reinstall the package. It should solve your
problem.

Thank you,

Antonin




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Bug#572971: upgrade fails if mongodb not currently started

2010-03-12 Thread Michal Politowski
On Mon,  8 Mar 2010 08:11:34 +0100, Antonin Kral wrote:
> Hello Michal,
> 
> to be honest I am not able to replicate your problem. I am a bit
> confused with the message:
> 
> > stop: Unknown instance: 
> 
> I have just went through multiple upgrade scenarios (like stopped
> daemon, killed...) and all of them were pretty successful.
> 
> One thing came on mi mind through - the -1 version includes upstart
> script, which slipped accidentally through. So I am a bit suspicious
> about it messing the rc.

Adding -x to the first lines in /var/lib/dpkg/info/mongodb.prerm
and /lib/init/upstart-job shows:

Preparing to replace mongodb 1:1.2.2-1 (using .../mongodb_1.2.2-4_i386.deb) ...
+ set -e
+ echo arg: upgrade
arg: upgrade
+ [ -x /etc/init.d/mongodb ]
+ which invoke-rc.d
+ [ -x /usr/sbin/invoke-rc.d ]
+ invoke-rc.d mongodb stop
+ sed s/[SK][0-9][0-9]//
+ basename /etc/init.d/mongodb
+ service=mongodb
+ action=stop
+ id -u
+ [ 0 -ne 0 ]
+ echo Stopping mongodb...
Stopping mongodb...
+ stop mongodb
stop: Unknown instance: 
invoke-rc.d: initscript mongodb, action "stop" failed.
+ exit 1
dpkg: warning: old pre-removal script returned error exit status 1

> Are you able to upgrade by hand?

What do you mean? How do I upgrade by hand?

-- 
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#572971: upgrade fails if mongodb not currently started

2010-03-07 Thread Antonin Kral
Hello Michal,

to be honest I am not able to replicate your problem. I am a bit
confused with the message:

> stop: Unknown instance: 

I have just went through multiple upgrade scenarios (like stopped
daemon, killed...) and all of them were pretty successful.

One thing came on mi mind through - the -1 version includes upstart
script, which slipped accidentally through. So I am a bit suspicious
about it messing the rc.

Are you able to upgrade by hand?

Thank you,

Antonin

* Michal Politowski  [2010-03-08 06:47] wrote:
> Package: mongodb
> Version: 1:1.2.2-1
> Severity: normal
> 
> Preparing to replace mongodb 1:1.2.2-1 (using .../mongodb_1.2.2-2_i386.deb) 
> ...
> arg: upgrade
> Stopping mongodb...
> stop: Unknown instance: 
> invoke-rc.d: initscript mongodb, action "stop" failed.
> dpkg: warning: old pre-removal script returned error exit status 1
> dpkg - trying script from the new package instead ...
> arg: failed-upgrade
> Stopping mongodb...
> stop: Unknown instance: 
> invoke-rc.d: initscript mongodb, action "stop" failed.
> dpkg: error processing 
> /var/cache/debtorrent/ftp.pl.debian.org_debian_dists_unstable_main_binary-i386/pool/main/m/mongodb/mongodb_1.2.2-2_i386.deb
>  (--unpack):
>  subprocess new pre-removal script returned error exit status 1
> update-rc.d: warning: /etc/init.d/mongodb missing LSB information
> update-rc.d: see 
> Errors were encountered while processing:
>  
> /var/cache/debtorrent/ftp.pl.debian.org_debian_dists_unstable_main_binary-i386/pool/main/m/mongodb/mongodb_1.2.2-2_i386.deb
> 
> -- 
> Michał Politowski
> Talking has been known to lead to communication if practiced carelessly.
> 
> 



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#572971: upgrade fails if mongodb not currently started

2010-03-07 Thread Michal Politowski
Package: mongodb
Version: 1:1.2.2-1
Severity: normal

Preparing to replace mongodb 1:1.2.2-1 (using .../mongodb_1.2.2-2_i386.deb) ...
arg: upgrade
Stopping mongodb...
stop: Unknown instance: 
invoke-rc.d: initscript mongodb, action "stop" failed.
dpkg: warning: old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
arg: failed-upgrade
Stopping mongodb...
stop: Unknown instance: 
invoke-rc.d: initscript mongodb, action "stop" failed.
dpkg: error processing 
/var/cache/debtorrent/ftp.pl.debian.org_debian_dists_unstable_main_binary-i386/pool/main/m/mongodb/mongodb_1.2.2-2_i386.deb
 (--unpack):
 subprocess new pre-removal script returned error exit status 1
update-rc.d: warning: /etc/init.d/mongodb missing LSB information
update-rc.d: see 
Errors were encountered while processing:
 
/var/cache/debtorrent/ftp.pl.debian.org_debian_dists_unstable_main_binary-i386/pool/main/m/mongodb/mongodb_1.2.2-2_i386.deb

-- 
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org