unable to install updates in debian lenny on a xen

Updating 5 packages on debian.bislinks.com ..

Updating apache2 to version 2.2.9-10+lenny11 .. .. update failed : Installing package(s) with command apt-get -y install apache2 apache2-mpm-prefork ..

Setting up locales (2.7-18lenny7) ... Generating locales (this might take a while)... aa_DJ.UTF-8... done aa_DJ.ISO-8859-1... done aa_ER.UTF-8... done aa_ER.UTF-8@saaho... done aa_ET.UTF-8... done af_ZA.UTF-8... done af_ZA.ISO-8859-1... done am_ET.UTF-8... done an_ES.UTF-8... done an_ES.ISO-8859-15... done ar_AE.UTF-8... done ar_AE.ISO-8859-6... done ar_BH.UTF-8... done ar_BH.ISO-8859-6... done ar_DZ.UTF-8... done ar_DZ.ISO-8859-6... done ar_EG.UTF-8... done ar_EG.ISO-8859-6... done ar_IN.UTF-8... done ar_IQ.UTF-8... done ar_IQ.ISO-8859-6... done ar_JO.UTF-8... done ar_JO.ISO-8859-6... done ar_KW.UTF-8... done ar_KW.ISO-8859-6... done ar_LB.UTF-8... done ar_LB.ISO-8859-6... done ar_LY.UTF-8... done ar_LY.ISO-8859-6... done ar_MA.UTF-8... done ar_MA.ISO-8859-6...E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

.. install failed!

Updating apache2-doc to version 2.2.9-10+lenny11 .. .. update failed : Error reading response length from fastrpc.cgi :

Updating apache2-mpm-prefork to version 2.2.9-10+lenny11 .. .. update failed : Error reading response length from fastrpc.cgi :

Updating apache2-utils to version 2.2.9-10+lenny11 ..

Status: 
Active

Comments

If you SSH into the system and try an update with a command like apt-get install apache2 , does that work OK?

bislinks's picture
Submitted by bislinks on Tue, 09/06/2011 - 23:44 Pro Licensee

no, that fails too.

What error do you see when running that manually, does it fail generating the locales? Or is it a different error?

bislinks's picture
Submitted by bislinks on Tue, 09/06/2011 - 23:47 Pro Licensee

output of above command:

apt-get install apache2 E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. debian:~# dpkg --configure -a Setting up locales (2.7-18lenny7) ... Generating locales (this might take a while)... aa_DJ.UTF-8... done aa_DJ.ISO-8859-1... done aa_ER.UTF-8... done aa_ER.UTF-8@saaho... done aa_ET.UTF-8... done af_ZA.UTF-8... done af_ZA.ISO-8859-1... done am_ET.UTF-8... done an_ES.UTF-8... done an_ES.ISO-8859-15... done ar_AE.UTF-8... done ar_AE.ISO-8859-6... done ar_BH.UTF-8... Broadcast message from root@debian.bislinks.com (Wed Sep 7 04:49:26 2011): The system is going down for system halt NOW! done ar_BH.ISO-8859-6... done ar_DZ.UTF-8...

bislinks's picture
Submitted by bislinks on Tue, 09/06/2011 - 23:51 Pro Licensee

yes, i think it fails to generate locales.

AND SHUTS DOWN??

You may want to try running this command:

dpkg --configure -a

It looks like something is in an unusual state, and running that command should cause dpkg to configure whatever it is that's awry.

bislinks's picture
Submitted by bislinks on Tue, 09/06/2011 - 23:54 Pro Licensee

nope. the command fails by system halt/restart

I was wondering if that was just a copy/paste error of some sort... did your system actually shut down there? That's quite unusual!

Are you seeing any unusual output towards the end of "dmesg", or perhaps in /var/log/kern.log?

No package update should ever cause a system shutdown, that makes me wonder if something else is going on...

bislinks's picture
Submitted by bislinks on Wed, 09/07/2011 - 00:06 Pro Licensee

it does restart the xen instance though whenever I get the system halt message when dpkg command is run.

I also note that mysqld never stays started. i have to start the mysqld again and again. i dont know if that is related.

bislinks's picture
Submitted by bislinks on Wed, 09/07/2011 - 00:08 Pro Licensee

dmesg:

ADDRCONF(NETDEV_UP): vif3238.0: link is not ready blkback: ring-ref 8, event-channel 8, protocol 2 (x86_32-abi) ADDRCONF(NETDEV_CHANGE): vif3238.0: link becomes ready xenbr0: port 3(vif3238.0) entering forwarding state xenbr0: port 3(vif3238.0) entering disabled state device vif3238.0 left promiscuous mode xenbr0: port 3(vif3238.0) entering disabled state device vif3239.0 entered promiscuous mode ADDRCONF(NETDEV_UP): vif3239.0: link is not ready blkback: ring-ref 8, event-channel 8, protocol 2 (x86_32-abi) ADDRCONF(NETDEV_CHANGE): vif3239.0: link becomes ready xenbr0: port 3(vif3239.0) entering forwarding state xenbr0: port 3(vif3239.0) entering disabled state device vif3239.0 left promiscuous mode xenbr0: port 3(vif3239.0) entering disabled state device vif3240.0 entered promiscuous mode ADDRCONF(NETDEV_UP): vif3240.0: link is not ready blkback: ring-ref 8, event-channel 8, protocol 2 (x86_32-abi) ADDRCONF(NETDEV_CHANGE): vif3240.0: link becomes ready xenbr0: port 3(vif3240.0) entering forwarding state

This seems outside the scope of Cloudmin if Debian packages are triggering a reboot!

How was this VM created exactly? From our images, or some other method?

bislinks's picture
Submitted by bislinks on Wed, 09/07/2011 - 00:20 Pro Licensee

from virtualmin images

Was it the image "Debian Lenny Xen instance with base OS" ?

I just tested creating a VM using the Cloudmin-provided lenny image, and then updating packages .. and it worked fine. The locales package took a long time as it seems to re-generate a lot of language files, but at no time did the VM reboot.

bislinks's picture
Submitted by bislinks on Fri, 09/09/2011 - 09:37 Pro Licensee

it was Debian lenny xen instance with virtualmin gpl.

bislinks's picture
Submitted by bislinks on Fri, 09/09/2011 - 09:38 Pro Licensee

But i had the same problem with apache2 as before while updating packages for debian.bislinks.com

Here is the error report:

Updating 5 packages on debian.bislinks.com ..

Updating apache2 to version 2.2.9-10+lenny11 .. .. update failed : Installing package(s) with command apt-get -y install apache2 apache2-mpm-prefork ..

Setting up locales (2.7-18lenny7) ... Generating locales (this might take a while)... aa_DJ.UTF-8... done aa_DJ.ISO-8859-1... done aa_ER.UTF-8... done aa_ER.UTF-8@saaho... done aa_ET.UTF-8... done af_ZA.UTF-8... done af_ZA.ISO-8859-1... done am_ET.UTF-8... done an_ES.UTF-8... done an_ES.ISO-8859-15... done ar_AE.UTF-8... done ar_AE.ISO-8859-6... done ar_BH.UTF-8... done ar_BH.ISO-8859-6... done ar_DZ.UTF-8... done ar_DZ.ISO-8859-6... done ar_EG.UTF-8... done ar_EG.ISO-8859-6... done ar_IN.UTF-8... done ar_IQ.UTF-8... done ar_IQ.ISO-8859-6... done ar_JO.UTF-8...E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

.. install failed!

Updating apache2-doc to version 2.2.9-10+lenny11 .. .. update failed : Error reading response length from fastrpc.cgi :

Updating apache2-mpm-prefork to version 2.2.9-10+lenny11 ..

I just created a test VM from that image and then updated all packages on it, and it didn't reboot ..