package fail on "seting up" stage

Bug #1489 reported by Ricardo Markiewicz
32
Affects Status Importance Assigned to Milestone
gforge (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

after executing "aptitude install gforge gforge-db-postgresql gforge-mta-postfix" in Breezy, I'm getting an error when dpkg is trying to configure gforge-db-postgresql :

Setting up gforge-db-postgresql (3.1-31) ...
Configuring for PostgreSQL 7.3 or later
create OKCannot enable the PLPGSQL language in the database... This shouldn't have happened.
Maybe a problem in your PostgreSQL configuration?
Please report a bug to the Debian bug tracking system
Please include the following output:
enable_lang's STDOUT:
enable_lang's STDERR:
sh: /usr/lib/postgresql/bin/enable_lang: No such file or directory
dpkg: error processing gforge-db-postgresql (--configure):
 subprocess post-installation script returned error exit status 1

/usr/lib/postgresql/bin/enable_lang is not provieded by any PostgreSQL package. In Debian postgresql package has this command in testing, but not in unstable.

postgresql installed packages :
ii postgresql 7.5.8
ii postgresql-7.4 7.4.8-10
ii postgresql-client 7.5.8
ii postgresql-client-7.4 7.4.8-10
ii postgresql-common 20

Changed in gforge:
assignee: nobody → motu
Revision history for this message
Barry deFreese (bddebian) wrote :

This problem still exists in Dapper and has to do with postgresql now being able to have multiple versions install so the postinst script fails looking in the wrong dirs.

Changed in gforge:
status: Unconfirmed → Confirmed
Revision history for this message
Barry deFreese (bddebian) wrote :

This appears to be fixed in Edgy. Could you please test and report back? Thank you.

Changed in gforge:
status: Confirmed → Needs Info
Revision history for this message
Luis Mondesi (lemsx1) wrote :

ouch. i hit this bug today. the package doesn't provide this script.

the script that calls this is: /usr/lib/gforge/bin/install-db.sh

i'm not sure what enable_lang is supposed to have, but i made a symlink like:

ln -s /bin/true /usr/lib/postgresql/bin/enable_lang

Revision history for this message
Luis Mondesi (lemsx1) wrote :

ah, removing all instances of postgres (including -common) and re-installing gforge-db-postgres fixed it!

Revision history for this message
Rocco Stanzione (trappist) wrote :

Thanks for posting that workaround. This does still seem to need a fix.

Changed in gforge:
status: Needs Info → Confirmed
Revision history for this message
Yusuf Kaka (yusufk) wrote :

dpkg: error processing gforge-lists-mailman (--configure):
subprocess post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of gforge:
gforge depends on gforge-web-apache (= 4.5.14-22ubuntu1); however:
Package gforge-web-apache is not configured yet.
gforge depends on gforge-lists-mailman (= 4.5.14-22ubuntu1); however:
Package gforge-lists-mailman is not configured yet.
dpkg: error processing gforge (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gforge-web-apache
gforge-lists-mailman

Revision history for this message
Yusuf Kaka (yusufk) wrote :

Tried the fixes mentioned above and it still fails.

Revision history for this message
Yusuf Kaka (yusufk) wrote :

Installing postgres 8.1 client which is a dependancy of gforge now breaks feisty. I can't login to the machine after installing gforge!

I have to boot up in safe mode and uninstall postgres client etc.

Revision history for this message
Barry deFreese (bddebian) wrote :

Fixing past damage in mailing-lists...
DBI connect('dbname=gforge;host=127.0.0.1','gforge',...) failed: could not connect to server: Connection refused
        Is the server running on host "127.0.0.1" and accepting
        TCP/IP connections on port 5432?
 at /usr/lib/gforge/lib/include.pl line 38
Uncaught exception from user code:
        Cannot connect to database: at /usr/lib/gforge/lib/include.pl line 40.
 at /usr/lib/gforge/lib/include.pl line 40
        main::db_connect called at /usr/lib/gforge/bin/fix-mailing-lists.pl line 22
dpkg: error processing gforge-lists-mailman (--configure):
 subprocess post-installation script returned error exit status 255

Just pasting this for a reminder.

Revision history for this message
Aaron D (drakaar) wrote :

This problem still occurs in FF. I have attached my install log from the console. Hopefully someone will be able to make better sense of it then me.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom reproducible in current 8.04 or 8.10 alpha?

Changed in gforge:
status: Confirmed → Incomplete
Revision history for this message
Javier Jardón (jjardon) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in gforge:
assignee: motu → nobody
status: Incomplete → Invalid
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

Bug attachments

Remote bug watches

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