new install of bugzilla looks for deleted /etc/bugzilla/dbconfig-params

Discussion in 'Server Operation' started by rjamesd, Oct 16, 2007.

  1. rjamesd

    rjamesd New Member

    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:~#
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Try to remove bugzilla completely from your system:

    Code:
    apt-get remove --purge bugzilla
    
    Then re-install it:
    Code:
    apt-get install bugzilla
     
  3. rjamesd

    rjamesd New Member

    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 [email protected]: 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:~#
     
  4. rjamesd

    rjamesd New Member

    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!
     

Share This Page