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

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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

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