gforge fails to install due to bashisms

Bug #154199 reported by kahealani on 2007-10-19
232
This bug affects 28 people
Affects Status Importance Assigned to Milestone
gforge (Ubuntu)
Undecided
Unassigned
Nominated for Hardy by Alain Baeckeroot

Bug Description

Binary package hint: gforge

Kubuntu 7.04 on AMD64, fully updated.
I used Adept Manager to request an install of gforge.
The install failed on dpkg configure.
Remove fails on dpkg configure.
dpkg --configure -a fails:
root@pc:~# dpkg --configure -a
Setting up apache (1.3.34-4.1) ...
 * Configuration syntax error detected, not starting/reloading...
Syntax error on line 33 of /etc/apache/conf.d/gforge.httpd.conf:
Invalid command 'php_admin_value', perhaps mis-spelled or defined by a module not included in the server configuration
                                                                                  [fail]
invoke-rc.d: initscript apache, action "start" failed.
dpkg: error processing apache (--configure):
 subprocess post-installation script returned error exit status 1
Setting up gforge-lists-mailman (4.5.14-22ubuntu1.1) ...
Calculating defaults
Reading defaults from /etc/gforge/gforge.conf
[: 104: ==: unexpected operator
Creating /etc/gforge/gforge.conf
[: 107: ==: unexpected operator
[: 107: ==: unexpected operator
[: 107: ==: unexpected operator
Creating /etc/gforge/httpd.conf
Creating /etc/gforge/httpd.secrets
Creating /etc/gforge/local.inc
Creating other includes
Found /etc/apache/conf.d/gforge.httpd.conf
Fixing past damage in mailing-lists...
DBI connect('dbname=gforge;host=192.168.0.101','gforge',...) failed: could not connect to server: Connection refused
        Is the server running on host "192.168.0.101" 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
dpkg: dependency problems prevent configuration of gforge-web-apache:
 gforge-web-apache depends on libapache2-mod-php5 | apache (>= 1.3.26) | apache-ssl (>= 1.3.26) | apache-perl (>= 1.3.26); however:
  Package libapache2-mod-php5 is not installed.
  Package apache is not configured yet.
  Package apache-ssl is not installed.
  Package apache-perl is not installed.
dpkg: error processing gforge-web-apache (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 apache
 gforge-lists-mailman
 gforge-web-apache
root@pc:~# apt-get remove gforge
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gforge is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache (1.3.34-4.1) ...
 * Configuration syntax error detected, not starting/reloading...
Syntax error on line 33 of /etc/apache/conf.d/gforge.httpd.conf:
Invalid command 'php_admin_value', perhaps mis-spelled or defined by a module not included in the server configuration
                                                                                  [fail]
invoke-rc.d: initscript apache, action "start" failed.
dpkg: error processing apache (--configure):
 subprocess post-installation script returned error exit status 1
Setting up gforge-lists-mailman (4.5.14-22ubuntu1.1) ...
Calculating defaults
Reading defaults from /etc/gforge/gforge.conf
[: 104: ==: unexpected operator
Creating /etc/gforge/gforge.conf
[: 107: ==: unexpected operator
[: 107: ==: unexpected operator
[: 107: ==: unexpected operator
Creating /etc/gforge/httpd.conf
Creating /etc/gforge/httpd.secrets
Creating /etc/gforge/local.inc
Creating other includes
Found /etc/apache/conf.d/gforge.httpd.conf
Fixing past damage in mailing-lists...
DBI connect('dbname=gforge;host=192.168.0.101','gforge',...) failed: could not connect to server: Connection refused
        Is the server running on host "192.168.0.101" 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
dpkg: dependency problems prevent configuration of gforge-web-apache:
 gforge-web-apache depends on libapache2-mod-php5 | apache (>= 1.3.26) | apache-ssl (>= 1.3.26) | apache-perl (>= 1.3.26); however:
  Package libapache2-mod-php5 is not installed.
  Package apache is not configured yet.
  Package apache-ssl is not installed.
  Package apache-perl is not installed.
dpkg: error processing gforge-web-apache (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 apache
 gforge-lists-mailman
 gforge-web-apache
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pc:~#
Stuck in a perpetual loop of
install, dpkg configure, remove dpkg configure, etc.

juma (jukka-matila) wrote :

I did end up to this same problem with HardyHeron,

Same problem on Hardy LTS i386 server.

Leaves the machine in an unusable state. `apt-get -f install` is unable to put the machine back in a sane state.

It needs to dpkg-reconfigure proftpd to be launched by inetd , then apt-get --force remove gforge_stuff

Changed in gforge:
status: New → Confirmed

don't install this ! It will wreak havoc in your server :-(

> lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04

> LANG=C apt-cache policy gforge
gforge:
  Installed: (none)
  Candidate: 4.6.99+svn6347-1
  Version table:
     4.6.99+svn6347-1 0
        500 http://fr.archive.ubuntu.com hardy/universe Packages

Thorsten Glaser (mirabilos) wrote :

Fixed in upstream r6960, so Ubuntu employees can please pick up this bugfix.

summary: - gforge install/remove failure loop w/ broken dpkg
+ gforge fails to install due to bashisms
Changed in gforge (Ubuntu):
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers