package moodle 1.9.4.dfsg-0ubuntu1 failed to install/upgrade:

Bug #378726 reported by manwe
272
This bug affects 49 people
Affects Status Importance Assigned to Milestone
moodle (Ubuntu)
Fix Released
Undecided
Unassigned
Hardy
Fix Released
Undecided
Jeremy Bícha
Jaunty
Won't Fix
Undecided
Jeremy Bícha

Bug Description

Binary package hint: moodle

error al actualizar moodle

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage:
 ErrorMessage: o subproceso post-installation script devolveu o estado de saída de erro 2
Package: moodle 1.9.4.dfsg-0ubuntu1
PackageArchitecture: all
SourcePackage: moodle
Title: package moodle 1.9.4.dfsg-0ubuntu1 failed to install/upgrade:
Uname: Linux 2.6.27-14-generic i686

Revision history for this message
manwe (carlosatocha) wrote :
Revision history for this message
Ben Crisford (bencrisford) wrote :

Hey!

Thanks for taking the time to report this bug :).

Would you mind giving a bit more detail about how you produced this bug. Obviously you installed/upgraded but using what method? A bit more detail would be great :).

Also - I translated the error message as:
"sub-process the post-installation script returned the error status of output 2"
Can anyone confirm that translation?

Cheers :),
Ben

Changed in moodle (Ubuntu):
status: New → Incomplete
Revision history for this message
manwe (carlosatocha) wrote : Re: [Bug 378726] Re: package moodle 1.9.4.dfsg-0ubuntu1 failed to install/upgrade:

Hello:
Excuse me. I'm a novice in reports. I'm upgrading online.
Thank you
Carlos

Ben Crisford escribió:
> Hey!
>
> Thanks for taking the time to report this bug :).
>
> Would you mind giving a bit more detail about how you produced this bug.
> Obviously you installed/upgraded but using what method? A bit more
> detail would be great :).
>
> Also - I translated the error message as:
> "sub-process the post-installation script returned the error status of output 2"
> Can anyone confirm that translation?
>
> Cheers :),
> Ben
>
> ** Changed in: moodle (Ubuntu)
> Status: New => Incomplete
>
>

Revision history for this message
ppyo (pedrogalvan) wrote :

Same thing happened to me in my Ubuntu 9.04. I was installing with Synaptic both moodle and moodle-book. This is the error code I got:

E: moodle: subprocess post-installation script returned error exit status 1
E: moodle-book: dependency problems - leaving unconfigured

Revision history for this message
sup3roque (superoque) wrote :

Same thing happened to me in my Ubuntu 9.04

Revision history for this message
barbolani (barbolani-gmail) wrote :

Same thing here, I selected the moodle, moodle-book and moodle-debian-edu-theme in synaptic. The details showed on the progress window showed

subprocess post-installation script returned error exit status 1
moodle-book: dependency problems - leaving unconfigure

Synaptic threw me an error about corrupted package cache after reporting this error.

Any other info I can provide?

Revision history for this message
Myroslav (mgalan) wrote :

The program simply failed to install. I will try again.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

All of the other bugs seemed to have the same problem as this one, so I'm marking them as duplicates and confirming this one:

Setting up postgresql-client-common (97) ...
Setting up postgresql-client-8.3 (8.3.7-1) ...

Setting up postgresql-client (8.3.7-1) ...
Setting up moodle (1.9.4.dfsg-0ubuntu1) ...

Creating config file /etc/moodle/apache.conf with new version

Creating config file /etc/moodle/config.php with new version
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
grep: /etc/postgresql///pg_hba.conf: No such file or directory
Your settings in /etc/postgresql///pg_hba.conf do not allow me to continue.
Unknown id: postgres
Unknown id: postgres
dpkg: error processing moodle (--configure):
 subprocess post-installation script returned error exit status 1

Changed in moodle (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Nominated for SRU for Jaunty. This bug causes installation to fail for users who do not already have PostgreSQL or MySQL configured first. This bug was fixed in Karmic with 1.9.4.dfsg-0ubuntu4 by having moodle depend on either PostgreSQL or MySQL. Also we are moving debconf to depends instead of pre-depends as pre-depends is heavily discouraged.

TEST CASE:
To test bug:
Install moodle. During installation, select postgresql (as that is default). Moodle installation will fail with the error "package moodle 1.9.4.dfsg-0ubuntu1.1 failed to install/upgrade: subprocess post-installation script returned error exit status 1" If moodle were setup correctly, you would be able to access the software by visiting http://localhost/moodle/ in your web browser.

To test fix:
Purge moodle php5-pgsql php5-xmlrpc postgresql postgresql-8.3 postgresql-client-8.3 postgresql-client-common postgresql-common mysql-server mysql-server-5.0 php5-mysql
Install patched moodle.
Installation should complete and http://localhost/moodle/ should work fine.

There is no expected regression potential.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Nominated for SRU for Hardy. This bug causes installation to fail for users who do not already have PostgreSQL or MySQL configured first. This bug was fixed in Karmic with 1.9.4.dfsg-0ubuntu4 by having moodle depend on either PostgreSQL or MySQL. Hardy didn't pre-depend on debconf so there is no need to change that here.

There is no expected regression potential.

Revision history for this message
Martin Pitt (pitti) wrote :

sponsored hardy/jaunty.

This is fixed in karmic.

Changed in moodle (Ubuntu Hardy):
assignee: nobody → Jeremy Bicha (jbicha)
status: New → In Progress
Changed in moodle (Ubuntu Jaunty):
assignee: nobody → Jeremy Bicha (jbicha)
status: New → In Progress
Changed in moodle (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted moodle into hardy-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in moodle (Ubuntu Hardy):
status: In Progress → Fix Committed
tags: added: verification-needed
Changed in moodle (Ubuntu Jaunty):
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted moodle into jaunty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Paul Elliott (omahn) wrote :

When using moodle 1.8.2-1ubuntu4.3 from hardy-proposed with PostgreSQL, everything is fine. However, attempting to select MySQL during the configuration questions will fail if MySQL is not already installed on the box. Would it be possible to only list DB backends during configuration that are already installed to avoid this issue?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package moodle - 1.8.2-1ubuntu4.3

---------------
moodle (1.8.2-1ubuntu4.3) hardy-proposed; urgency=low

  * Depend on PostgreSQL or MySQL to ensure host database is set up
    before moodle configuration (Closes LP: #378726, #440098)

 -- Jeremy Bicha <email address hidden> Sat, 24 Oct 2009 03:08:51 -0400

Changed in moodle (Ubuntu Hardy):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks. Releasing hardy, keeping v-needed tag for Jaunty.

Revision history for this message
Martin Pitt (pitti) wrote :

Anyone who can test the proposed package? If not, the proposed update will be removed again. Thanks!

Revision history for this message
Martin Pitt (pitti) wrote :

This update has been in jaunty-proposed for half a year or longer, without any testing feedback. I removed the jaunty-proposed package again.

Changed in moodle (Ubuntu Jaunty):
status: Fix Committed → Won't Fix
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.