Bug 807356 - checksetup.pl fails on a fresh installation when $PROJECT is set
checksetup.pl fails on a fresh installation when $PROJECT is set
Product: Fedora EPEL
Classification: Fedora
Component: bugzilla (Show other bugs)
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Itamar Reis Peixoto
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-03-27 11:19 EDT by Brendan LeFebvre
Modified: 2018-03-30 12:38 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2018-03-30 12:38:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Brendan LeFebvre 2012-03-27 11:19:59 EDT
Description of problem:
When using "export PROJECT=myproject" to set up multiple Bugzilla sites on one host, checksetup.pl fails because it does not explicitly create /var/lib/bugzilla/data

Version-Release number of selected component (if applicable): 3.4.13-1.el6 

How reproducible: Have not tried to reproduce but the nature of the problem and solution (see "Additional info" below) suggests this behavior will occur in any instance where the first post-install invocations of checksetup.pl are made with $PROJECT set.

Steps to Reproduce:

1. Install bugzilla package and (if necessary) database/webserver pkgs

2. # cd /usr/share/bugzilla ; export PROJECT=myproject

3. # ./checksetup.pl # creates /etc/bugzilla/localconfig.myproject

4. configure database and /etc/bugzilla/localconfig.myproject

5. # ./checksetup.pl
Actual results:
Reading /etc/bugzilla/localconfig.myproject...
Checking for              DBD-Pg (v1.45)   ok: found v2.15.1 
Checking for      PostgreSQL (v8.00.0000) ok: found v08.04.0900

Creating /var/lib/bugzilla/data/myproject directory...
Creating /var/lib/bugzilla/data/myproject/attachments directory...
Creating /var/lib/bugzilla/data/myproject/duplicates directory...
Creating /var/lib/bugzilla/data/myproject/mining directory...
Creating /var/lib/bugzilla/data/myproject/webdot directory...
Creating /var/lib/bugzilla/data/myproject/mailer.testfile...
No such file or directory at Bugzilla/Install/Filesystem.pm line 496, <DATA> line 522.
# ls /var/lib/bugzilla/ # empty result

Expected results:
# ./checksetup.pl

Enter the e-mail address of the administrator: 

Additional info:
Was able to fix by:
# mkdir /var/lib/bugzilla/data
# ./checksetup.pl
Comment 1 Itamar Reis Peixoto 2018-03-30 12:38:58 EDT
bugzilla has been marked as dead.package for el6, closing this as won't fix, it's not possible to upgrade bugzilla to a newer version without upgrading el6 base packages.

Note You need to log in before you can comment on or make changes to this bug.