Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th October 2007, 15:47
rjamesd rjamesd is offline
Member
 
Join Date: Aug 2007
Posts: 35
Thanks: 3
Thanked 4 Times in 3 Posts
Question new install of bugzilla looks for deleted /etc/bugzilla/dbconfig-params

Any advice on how I can coerce the reinstall to provide the missing files such as /etc/bugzilla/dbconfig-params in the same way a fresh install would?

The full story:

I've been working on getting bugzilla installed on debian.

I decided I needed to start again after making a mess of the install.

So I uninstalled it using apt-get remove bugzilla but found that there were some files remaining, like: /etc/bugzilla/dbconfig-params
So I deleted these to tidy up.

Then i tried reinstalling bugzilla using apt-get install bugzilla

But it complained that /etc/bugzilla/dbconfig-params was missing.

Now you might think that this is not surprising given that I had removed it, and that it is my fault, and I shouldn't have done it.

But what I think is that, if I am reinstalling bugzilla, then it should make no assumption about what is there beforehand, what is already present. There should be no dependency on the current state of the machine. The bugzilla re-install should have the same capability as a new fresh install where there hadn't been a previous install.

Any advice on how I can coerce the reinstall to provide the missing files in the same way a fresh install would?

See the term output below for the woeful story:

rockstar:~# apt-get install bugzilla
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
libnet-ldap-perl libgd-text-perl libgd-graph-perl libgd-gd2-perl libgd-noxpm-perl ruby
Recommended packages:
libchart-perl libxml-parser-perl perlmagick
The following NEW packages will be installed
bugzilla
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/822kB of archives.
After unpacking 4526kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package bugzilla.
(Reading database ... 102628 files and directories currently installed.)
Unpacking bugzilla (from .../bugzilla_2.22.1-2_all.deb) ...
Setting up bugzilla (2.22.1-2) ...
dbconfig-common: writing config to /etc/dbconfig-common/bugzilla.conf
Not replacing deleted config file /etc/bugzilla/dbconfig-params
dbconfig-common: flushing administrative password
/var/lib/dpkg/info/bugzilla.postinst: line 107: /etc/bugzilla/dbconfig-params: No such file or directory
dpkg: error processing bugzilla (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
bugzilla
E: Sub-process /usr/bin/dpkg returned an error code (1)
rockstar:~#
Reply With Quote
Sponsored Links
  #2  
Old 17th October 2007, 16:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Try to remove bugzilla completely from your system:

Code:
apt-get remove --purge bugzilla
Then re-install it:
Code:
apt-get install bugzilla
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th October 2007, 17:49
rjamesd rjamesd is offline
Member
 
Join Date: Aug 2007
Posts: 35
Thanks: 3
Thanked 4 Times in 3 Posts
Question Same problem still.

Same problem still. Though it does ask a lot more setup questions when I re-install following the remove with the purge option you suggested.

rockstar:~# apt-get remove --purge bugzilla
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED
bugzilla*
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 4526kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 103134 files and directories currently installed.)
Removing bugzilla ...
Purging configuration files for bugzilla ...
dpkg - warning: while removing bugzilla, directory `/etc/bugzilla' not empty so not removed.
rockstar:~# apt-get install bugzilla
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
libnet-ldap-perl libgd-text-perl libgd-graph-perl libgd-gd2-perl
libgd-noxpm-perl ruby
Recommended packages:
libchart-perl libxml-parser-perl perlmagick
The following NEW packages will be installed
bugzilla
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/822kB of archives.
After unpacking 4526kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package bugzilla.
(Reading database ... 102618 files and directories currently installed.)
Unpacking bugzilla (from .../bugzilla_2.22.1-2_all.deb) ...
Setting up bugzilla (2.22.1-2) ...
dbconfig-common: writing config to /etc/dbconfig-common/bugzilla.conf
Not replacing deleted config file /etc/bugzilla/dbconfig-params
granting access to database bugzilla for bugzilla@localhost: already exists.
creating database bugzilla: already exists.
dbconfig-common: flushing administrative password
/var/lib/dpkg/info/bugzilla.postinst: line 107: /etc/bugzilla/dbconfig-params: No such file or directory
dpkg: error processing bugzilla (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
bugzilla
E: Sub-process /usr/bin/dpkg returned an error code (1)
rockstar:~#
Reply With Quote
  #4  
Old 18th October 2007, 11:35
rjamesd rjamesd is offline
Member
 
Join Date: Aug 2007
Posts: 35
Thanks: 3
Thanked 4 Times in 3 Posts
 
Thumbs up

Solution:
I created an /etc/bugzilla/dbconfig-params

Then did:
apt-get remove --purge bugzilla

Then:
apt-get install bugzilla

Thanks falco for your advise on this - this partially helped.

The install had to be tricked into thinking that dbconfig-params existed.

Credit to a colleague who gave me this solution.

As always - I will follow up if I find solutions to my own problems for the benefit of others that have helped me!

Shame the install is not robust enough to adapt.

Getting frustrated having to spend more time fiddling with tedious technical detail than actually getting the computer to realise my grand ideas!
Reply With Quote
The Following User Says Thank You to rjamesd For This Useful Post:
falko (18th October 2007)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem install perl modules Cirox Installation/Configuration 10 16th May 2007 17:04
VMWare Server Free License - Invalid bardgd HOWTO-Related Questions 6 19th November 2006 18:50
install Net::DNS chrno Installation/Configuration 4 5th September 2006 18:01
/usr/bin/make install install HTML::Parser -- NOT OK oddo Installation/Configuration 4 14th March 2006 19:32
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 17:04


All times are GMT +2. The time now is 06:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.