increase javascript-common.postinst verbosity to report apache restart failures.

Bug #495791 reported by Kieron Wilkinson
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
javascript-common (Debian)
Fix Released
Unknown
javascript-common (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: javascript-common

Upgrading to karmic koala from 9.04

javascript-common:
  Installed: 6
  Candidate: 6
  Version table:
 *** 6 0
        500 http://gb.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

Upgrade failed.

ProblemType: Package
Architecture: i386
Date: Sat Dec 12 08:55:34 2009
Dependencies: wwwconfig-common 0.2.1
DistroRelease: Ubuntu 9.10
ErrorMessage:
 ErrorMessage: subprocess installed post-installation script killed by signal (Terminated)
NonfreeKernelModules: nvidia
Package: javascript-common 6
PackageArchitecture: all
ProcVersionSignature: Ubuntu 2.6.28-17.58-generic
SourcePackage: javascript-common
Title: package javascript-common 6 failed to install/upgrade:
Uname: Linux 2.6.28-17-generic i686

Revision history for this message
Kieron Wilkinson (kieron-wilkinson) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

From the log :
dpkg: error processing javascript-common (--configure):
 subprocess installed post-installation script killed by signal (Terminated)

Could you please elaborate on what occurred during the upgrade ?

Changed in javascript-common (Ubuntu):
status: New → Incomplete
Revision history for this message
Kieron Wilkinson (kieron-wilkinson) wrote :

At that point, the installation halted for several hours, I think I left it running overnight, and so I killed the process manually in order to get it to move on. It stopped again when updating LIRC, so I did the same with the intention of trying to update these packages later. I did then try to track it down further, and it seemed to be problems with javascript-common loading LIRC modules? I didn't realise there was a dependency there...

When I rebooted, it dumped me to terminal, and I could then see the issue was with LIRC loading modules. So I disabled my remote control in my lirc.conf, rebooted, and it was then able to boot properly.

I'm not sure what is wrong with my LIRC install yet, but it seems that this is the root cause. I've not tried to reinstall javascript-common yet, but I assume it would work now.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

I don't see how lirc could hang javascript-common setup. javascript-common postinst script restarts apache2 may be the restart of apache failed.

If you're able to reproduce the hang, then provide the output of the command
$sudo sh -x /var/lib/dpkg/info/javascript-common.postinst configure

Thanks in advance.

Revision history for this message
Kieron Wilkinson (kieron-wilkinson) wrote :

That could very well be the case (apache2) since I have a self-signed certificate that requires manual entry of my passphrase when it starts up.

I'll see if I can reproduce though, and report back here with that output if I can.

Revision history for this message
Kieron Wilkinson (kieron-wilkinson) wrote :

Okay, it does indeed seem to have been down to by apache2 prompting for a passphrase. I got it to hang again, ran your command, and got the following:

$ sudo sh -x /var/lib/dpkg/info/javascript-common.postinst configure
+ set -e
+ mkdir -p /etc/apache2/conf.d
+ [ ! -e /etc/apache2/conf.d/javascript-common.conf ]
+ ln -s /etc/javascript-common/javascript-common.conf /etc/apache2/conf.d/javascript-common.conf
+ restart=apache2
+ servers=apache2
+ . /usr/share/wwwconfig-common/restart.sh
+ status=nothing
+ error=
+ [ -z apache2 ]
+ restart= apache2
+ echo apache2
+ sed -e s| apache2 ||g;
+ verify=
+ [ != apache2 ]
+ log=apache2 needs to be restarted.
+ [ -x /usr/sbin/invoke-rc.d ]
+ [ -x /etc/init.d/apache2 ]
+ /usr/sbin/invoke-rc.d apache2 restart
+ status=error
+ error=ERROR! /usr/sbin/invoke-rc.d apache2 restart, returned an error. apache2 could not be restarted.
+ exit 0

I then disabled my SSL certificate to avoid the apache restart prompt, then reinstalled javascript-common, and it installed fine!

I'm not sure how this problem can be resolved for others doing something similar, maybe it is possible to detect if apache2 is waiting for something?

Anyway, thanks very much for your help!

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for following up. Im setting the status of this report to confirmed.
javascript-common.postinst should increasse verbosity and report errors from /usr/share/wwwconfig-common/restart.sh

Thanks for your help to make Ubuntu better.

Changed in javascript-common (Ubuntu):
status: Incomplete → Confirmed
summary: - package javascript-common 6 failed to install/upgrade: (upgrade to 9.10)
+ increase javascript-common.postinst verbosity to report apache restart
+ failures.
Revision history for this message
Numerous (loganvw) wrote :

Shouldn't something be warning us to disable our SSL certificate before upgrade?

I did exactly as listed above and everything is fine for me now too, if I had my SSL certificate disabled this wouldn't have been an issue.

tags: added: dist-upgrade
Changed in javascript-common (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.