Hangs when installed in chroot in hardy

Bug #203844 reported by Michael Vogt
2
Affects Status Importance Assigned to Milestone
moodle (Ubuntu)
Fix Released
High
Steve Langasek

Bug Description

Binary package hint: moodle

When I do a fresh install of moodle in a pbuilder chroot it hangs in the postinst script. A ps ax shows that it runs ucf.

Looking closer at the postinst script it looks like dh_stop is run before ucf is run. ucf needs debconf, so this is most likely the problem.

Cheers,
 michael

Related branches

Revision history for this message
Michael Vogt (mvo) wrote :

There is also some background on this in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470066

Revision history for this message
Michael Vogt (mvo) wrote :

The bits in the postinst that looks suspicious (handle_config runs ucf):

       # Read debconf and edit the config file accordingly
        get_config
        db_stop
        exec 0<&1
        handle_config

Shuffling this around so that hanle_config is run before db_stop should fix it. I have no idea why exec 0<&1 is run here though.

Changed in moodle:
importance: Undecided → High
milestone: none → ubuntu-8.04-beta
Revision history for this message
Colin Watson (cjwatson) wrote :

I don't think this is beta-critical (Oliver says he didn't encounter it during normal testing), but it should be fixed for 8.04 final.

Changed in moodle:
milestone: ubuntu-8.04-beta → ubuntu-8.04
Revision history for this message
Daniel Bair (danielbair) wrote :

Edubuntu server requires moodle, and Edubuntu server won't complete it's install if moodle fails...

Steve Langasek (vorlon)
Changed in moodle:
assignee: nobody → vorlon
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package moodle - 1.8.2-1ubuntu3

---------------
moodle (1.8.2-1ubuntu3) hardy; urgency=low

  * debian/postinst: Only call db_stop after ucf has been run in
    handle_config(), since ucf itself uses debconf; and drop the
    "exec 0<&1" workaround which no longer matters. LP: #203844

 -- Steve Langasek <email address hidden> Fri, 28 Mar 2008 00:37:00 +0000

Changed in moodle:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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