Bug 807356

Summary: checksetup.pl fails on a fresh installation when $PROJECT is set
Product: [Fedora] Fedora EPEL Reporter: Brendan LeFebvre <brendanl79>
Component: bugzillaAssignee: Itamar Reis Peixoto <itamar>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: itamar, xavier
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-30 16:38:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brendan LeFebvre 2012-03-27 15:19:59 UTC
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 16:38:58 UTC
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.