Open Bug 629975 Opened 13 years ago Updated 10 years ago

mkdir from checksetup.pl fails due to missing data directory

Categories

(Bugzilla :: Installation & Upgrading, defect)

defect
Not set
minor

Tracking

()

UNCONFIRMED

People

(Reporter: gdr, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 CentOS/3.6-2.el5.centos Firefox/3.6.13
Build Identifier: http://www.bugzilla.org/download/#v40  (v4 RC2)

On a fresh install of v4.0 RC2, the 2nd invocation of checksetup.pl (just after editing the localconfig.site file -- for a multiproject installation) fails while creating data/site, because mkdir doesn't use the -p flag and the data directory does not yet exist.

If I manually create the data directory, then rerun checksetup.pl, then the installation succeeds.

Reproducible: Always

Steps to Reproduce:
1. Fresh install of v4.0 RC2 following documented procedures, up to:
2. export PROJECT=site
3. ./checksetup.pl
4. Edit localconfig.site
5. ./checksetup.pl



Actual Results:  
Output from checksetup.pl:

Inserting values into the 'op_sys' table:
'All'     sortkey: 100
'Windows' sortkey: 200
'Mac OS'  sortkey: 300
'Linux'   sortkey: 400
'Other'   sortkey: 500
Creating ./data/site directory...
mkdir ./data/site failed: No such file or directory at Bugzilla/Install/Filesystem.pm line 398.   


Expected Results:  
Script should run correctly to completion.


Multi-project installation.  Mysql backend.
OS: Linux → All
Hardware: x86 → All
Version: unspecified → 4.0
FWIW, this means you never ran checksetup without a PROJECT. I'm not sure if Bugzilla even works in that situation.
Shouldn't we warn the admin in that case, then?

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