checksetup.pl can die during file creation, unclearly

RESOLVED INCOMPLETE

Status

()

Bugzilla
Bugzilla-General
RESOLVED INCOMPLETE
8 years ago
6 years ago

People

(Reporter: Yuri, Assigned: Max Kanat-Alexander)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.10) Gecko/20100708 Firefox/3.5.10
Build Identifier: 

bugzilla-3.6.1

httpd-errors.log got such record:
[Tue Jul 20 13:24:45 2010] [error] [client 127.0.0.1] [Tue Jul 20 13:24:45 2010] index.cgi: Use of uninitialized value in split at Bugzilla/Util.pm line 295.

Reproducible: Always

Comment 1

8 years ago
Line 295 is:

 my @proxies = split(/[\s,]+/, Bugzilla->params->{'inbound_proxies'});

Did you run checksetup.pl before accessing index.cgi? This parameter cannot be undefined.
(Reporter)

Comment 2

8 years ago
I am running checksetup.pl now, getting the error:
No such file or directory at Bugzilla/Install/Filesystem.pm line 508
even though file Bugzilla/Install/Filesystem.pm exists.

Otherwise it complains about various things missing, like this:
Checking for           perl-ldap (any)      not found 
Checking for         Authen-SASL (any)     ok: found v2.1401                                                                                                
Checking for          RadiusPerl (any)      not found 
Checking for           SOAP-Lite (v0.710.06)  not found                                                                                                     
Checking for            JSON-RPC (any)      not found                                                                                                       
Checking for          Test-Taint (any)      not found                                                                                                       
Checking for         HTML-Parser (v3.40)   ok: found v3.66                                                                                                  
Checking for       HTML-Scrubber (any)     ok: found v0.08 
Checking for Email-MIME-Attachment-Stripper (any)     ok: found v1.316 
Checking for         Email-Reply (any)     ok: found v1.202 
Checking for         TheSchwartz (any)      not found 
Checking for      Daemon-Generic (any)      not found                                                                                                       
Checking for            mod_perl (v1.999022)  not found                                                                                                     
This doesn't look important.

Message in the error log still shows up. But in the browser bugzilla seems to work withoutn a problem. Just an httpd message.

Comment 3

8 years ago
Line 508 of Filesystem.pm is:

 my $fh = new IO::File($file, O_WRONLY | O_CREAT, $info->{perms})

Looks like a permission issue when trying to create a new file. The warning displayed in comment 0 may just be a consequence of another problem. mkanat, do you have an idea? Is that a support question?
(Assignee)

Comment 4

8 years ago
It might be a support issue. Unfortunately I didn't put the file name into the error message, so it's hard to say. I'll attach a patch for Yuri that makes the message clearer.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: FreeBSD → All
Hardware: x86 → All
Summary: Use of uninitialized value in split at Bugzilla/Util.pm → checksetup.pl can die during file creation, unclearly
(Assignee)

Comment 5

8 years ago
Created attachment 458813 [details] [diff] [review]
Better Error Message

This makes the error message clearer. Yuri, could you apply this patch to your installation and then run checksetup.pl again and tell us the error? Your problem is that checksetup.pl is not completing.
Assignee: general → mkanat
Status: NEW → ASSIGNED
Attachment #458813 - Flags: review+
(Assignee)

Comment 6

8 years ago
Oh, I see why I didn't make it clearer--because "Creating $file..." is right above it. Yuri, could you attach (as an attachment) the entire output of your checksetup.pl?
(Reporter)

Comment 7

8 years ago
:-) funny but I modified Filesystem.pm in precisely the same way as your patch before I even got the patch from you.

Message now is:
Creating contrib/.htaccess...
contrib/.htaccess: No such file or directory at Bugzilla/Install/Filesystem.pm line 508.

contrib only exists under skins:
> find . -name contrib
./skins/contrib

Is it supposed to be in bugzilla root?
(Assignee)

Comment 8

8 years ago
Ahh. Are you using an rpm or deb package to install Bugzilla? If so, this is sort of a bug in their package. Or at least, it's something I'll have to figure out or talk over with the package maintainers.
(Reporter)

Comment 9

8 years ago
I use FreeBSD port.
It's current maintainer is listed as: skv at FreeBSD with organization suffix added.

Comment 10

7 years ago
Is this still actual?

Comment 11

6 years ago
Seems not...
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.