Upgrade to Bugzilla 4.4.9 but it fail to read the localconfig file

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Upgrade to Bugzilla 4.4.9 but it fail to read the localconfig file

Alex Lai
Dear all supporters,

My current version is 3.6.
I was successfully converted mysql database to 4.4.9.

I ran
./checksetup.pl
* This is Bugzilla 4.4.9 on perl 5.12.3
* Running on Linux 2.6.18-402.el5 #1 SMP Tue Feb 10 17:49:04 EST 2015

Checking perl modules...
Checking for               CGI.pm (v3.51)     ok: found v4.15
Checking for           Digest-SHA (any)       ok: found v5.47
Checking for             TimeDate (v2.23)     ok: found v2.24
Checking for             DateTime (v0.28)     ok: found v0.61
Checking for    DateTime-TimeZone (v0.71)     ok: found v1.20
Checking for                  DBI (v1.54)     ok: found v1.616
Checking for     Template-Toolkit (v2.22)     ok: found v2.22
Checking for           Email-Send (v2.04)     ok: found v2.198
Checking for           Email-MIME (v1.904)    ok: found v1.926
Checking for                  URI (v1.37)     ok: found v1.59
Checking for       List-MoreUtils (v0.32)     ok: found v0.33
Checking for    Math-Random-ISAAC (v1.0.1)    ok: found v1.004

Checking available perl DBD modules...
Checking for               DBD-Pg (v2.7.0)    ok: found v3.5.1
Checking for            DBD-mysql (v4.001)    ok: found v4.031
Checking for           DBD-SQLite (v1.29)     ok: found v1.35
Checking for           DBD-Oracle (v1.19)     not found

The following Perl modules are optional:
Checking for                   GD (v1.20)     ok: found v2.46
Checking for                Chart (v2.1.0)    ok: found v2.4.1
Checking for          Template-GD (any)       ok: found v1.56
Checking for           GDTextUtil (any)       ok: found v0.86
Checking for              GDGraph (any)       ok: found v1.44
Checking for           MIME-tools (v5.406)    ok: found v5.428
Checking for          libwww-perl (any)       ok: found v6.06
Checking for             XML-Twig (any)       ok: found v3.35
Checking for          PatchReader (v0.9.6)    ok: found v0.9.6
Checking for            perl-ldap (any)       ok: found v0.43
Checking for          Authen-SASL (any)       ok: found v2.15
Checking for         Net-SMTP-SSL (v1.01)     ok: found v1.01
Checking for           RadiusPerl (any)       ok: found v0.24
Checking for            SOAP-Lite (v0.712)    ok: found v0.712
Checking for          XMLRPC-Lite (v0.712)    ok: found v0.712
Checking for             JSON-RPC (any)       ok: found v1.04
Checking for              JSON-XS (v2.0)      ok: found v2.29
Checking for           Test-Taint (any)       ok: found v1.04
Checking for          HTML-Parser (v3.40)     ok: found v3.71
Checking for        HTML-Scrubber (any)       ok: found v0.08
Checking for               Encode (v2.21)     ok: found v2.39
Checking for        Encode-Detect (any)       ok: found v1.01
Checking for          Email-Reply (any)       ok: found v1.202
Checking for HTML-FormatText-WithLinks (v0.13)     ok: found v0.14
Checking for          TheSchwartz (v1.07)     ok: found v1.10
Checking for       Daemon-Generic (any)       ok: found v0.84
Checking for           File-Slurp (v9999.13)  ok: found v9999.13
Checking for             mod_perl (v1.999022) ok: found v2.000005
Checking for     Apache-SizeLimit (v0.96)     ok: found v0.97
Checking for        File-MimeInfo (any)       ok: found v0.27
Checking for           IO-stringy (any)       ok: found v2.110
Checking for          mod_headers (any)       ok
Checking for          mod_expires (any)       ok
Checking for              mod_env (any)       ok
Reading ./localconfig...
Checking for            DBD-mysql (v4.001)    ok: found v4.031
Checking for                MySQL (v5.0.15)   ok: found v5.1.50

Removing existing compiled templates...
Precompiling templates...done.
Fixing file permissions...

Now that you have installed Bugzilla, you should visit the 'Parameters'
page (linked in the footer of the Administrator account) to ensure it
is set up as you wish - this includes setting the 'urlbase' option to
the correct URL.
checksetup.pl complete.

--------
The problem when I test the
https://omiwww.gsfc.nasa.gov/bz449/index.cgi
I got this error
Software error:

'' is not a valid choice for $db_driver in  localconfig: Null filename
used at (eval 34) line 2.

In the apache configuration file, I added the following line.

Alias /bz449 /omi/web/bz449/
#ScriptAlias /bz449 /omi/web/bz449/
<Directory /omi/web/bz449>
   AddHandler cgi-script .cgi
   Options +ExecCGI
   DirectoryIndex index.cgi index.html
   AllowOverride Limit FileInfo Indexes Options
</Directory>

I tested
https://omiwww.gsfc.nasa.gov/bz449/testagent.cgi
it returned
OK mod_cgi

I also tested perl testserver.pl and also commentted the fail exit() for
Fetch padlock.png image file.

perl testserver.pl
Usage: testserver.pl <URL to this Bugzilla installation>
e.g.:  testserver.pl http://www.mycompany.com/bugzilla
[osstwww@omission bz449]$ perl testserver.pl
https://omiwww.gsfc.nasa.gov/bz449/
TEST-OK Webserver is running under group id in $webservergroup.
TEST-FAILED Fetch of images/padlock.png failed
Your web server could not fetch
https://omiwww.gsfc.nasa.gov/bz449/images/padlock.png.
Check your web server configuration and try again.
https://omiwww.gsfc.nasa.gov/bz449
Use of uninitialized value $response in concatenation (.) or string at
testserver.pl line 101.

https://omiwww.gsfc.nasa.gov/bz449

Use of uninitialized value $response in pattern match (m//) at
testserver.pl line 102.
Use of uninitialized value $response in pattern match (m//) at
testserver.pl line 104.
TEST-FAILED Webserver is not executing CGI files.
TEST-OK Webserver is preventing fetch of
https://omiwww.gsfc.nasa.gov/bz449/localconfig.
TEST-OK GD version 2.46, libgd version 2.0.35; Major versions match.
TEST-OK GD library generated a good PNG image.
TEST-OK Chart library generated a good PNG image.
TEST-OK Template::Plugin::GD is installed.

apachectl -V
Server version: Apache/2.2.29 (Unix)
Server built:   Sep  8 2014 11:47:11
Server's Module Magic Number: 20051115:36
Server loaded:  APR 1.5.1, APR-Util 1.5.3
Compiled using: APR 1.5.1, APR-Util 1.5.3
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


I was able to https://omiwww.gsfc.nasa.gov/bz449/images/padlock.png from
my desktop browser.  I am not sure that is the cause of the problem.
The current host running 3.6 has no problem.  Not sure why 4.4.9 has
such security problem.  Any help will be highly appreciated.

--
Best regards,

Alex Lai  (:-)
[hidden email]
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade to Bugzilla 4.4.9 but it fail to read the localconfig file

Gervase Markham
On 22/05/15 21:26, Alex Lai wrote:
> --------
> The problem when I test the
> https://omiwww.gsfc.nasa.gov/bz449/index.cgi
> I got this error
> Software error:
>
> '' is not a valid choice for $db_driver in  localconfig: Null filename
> used at (eval 34) line 2.

I may be wrong, but doesn't this mean you have set the value of
$db_driver in localconfig to '', when it needs to be 'mysql'?

Gerv

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade to Bugzilla 4.4.9 but it fail to read the localconfig file

Alex Lai
On 05/25/2015 06:25 AM, Gervase Markham wrote:

> On 22/05/15 21:26, Alex Lai wrote:
>> --------
>> The problem when I test the
>> https://omiwww.gsfc.nasa.gov/bz449/index.cgi
>> I got this error
>> Software error:
>>
>> '' is not a valid choice for $db_driver in  localconfig: Null filename
>> used at (eval 34) line 2.
>
> I may be wrong, but doesn't this mean you have set the value of
> $db_driver in localconfig to '', when it needs to be 'mysql'?
>
I am sure $db_driver = 'mysql' is set in /webroot/bz449/localconfig.

> Gerv
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> PLEASE put [hidden email] in the To: field when you reply.
>

Alex Lai
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade to Bugzilla 4.4.9 but it fail to read the localconfig file

kbiswas
In reply to this post by Gervase Markham
Hello,

Can some one help me urgently?

While trying to generate the Graphical Report, the image is not getting downloaded.

Getting the below image :

Inline image 1


On Mon, May 25, 2015 at 12:11 PM, Gervase Markham [via Mozilla] <[hidden email]> wrote:
On 22/05/15 21:26, Alex Lai wrote:
> --------
> The problem when I test the
> https://omiwww.gsfc.nasa.gov/bz449/index.cgi
> I got this error
> Software error:
>
> '' is not a valid choice for $db_driver in  localconfig: Null filename
> used at (eval 34) line 2.

I may be wrong, but doesn't this mean you have set the value of
$db_driver in localconfig to '', when it needs to be 'mysql'?

Gerv

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.



If you reply to this email, your message will be added to the discussion below:
http://mozilla.6506.n7.nabble.com/Upgrade-to-Bugzilla-4-4-9-but-it-fail-to-read-the-localconfig-file-tp340143p340198.html
To start a new topic under Bugzilla - Users, email [hidden email]
To unsubscribe from Bugzilla, click here.
NAML



--
Thanks & Regards,
Kalyan Biswas.
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade to Bugzilla 4.4.9 but it fail to read the localconfig file

Alex Lai
In reply to this post by Alex Lai
I found the problem is Bugzilla try to load localconfig.<PROJECT>.  I
only localconfig without <PROJECT> name.  After copy the localconfig to
localconfig.<PROJECT>, everything works.

I missed the documentation
https://www.bugzilla.org/docs/4.4/en/html/multiple-bz-dbs.html.
Somehow the checkset.pl created the default file named localconfig that
make me think Bugzilla try to load localconfig file.  During the
database convertion, it read localconfig not localconfig.<PROJECT>.

Alex Lai

On 05/26/2015 02:50 PM, Thorsten Schöning wrote:

> Guten Tag Alex Lai,
> am Dienstag, 26. Mai 2015 um 20:19 schrieben Sie:
>
> Please make sure to always write to the list, not individuals. You
> need to copy the list's address manually.
>
>> I cd to ../bz449 before I ran checksetup.pl.
>
> Providing relative paths to this list doesn't help, we don't know
> anything about where you installed Bugzilla or you run your commands
> from. You need to be verbose for paths, the more precise the better.
>
>> How can I ensure it uses the current directory?
>
> Normally by using "./" like you did, but that doesn't tell anything
> about if you are in the right directory and such.
>
>> I installed the new bz449 bugzilla to the same host which it is running
>> the current bugzilla version 3.6.
>
> What does that mean, the same VHOST from httpd or just the same
> server? Regarding your former configuration snippet I guess the
> first, but in that case the whole httpd configuration would be
> helpful. Please be more verbose, every reader can simply ignore what
> you have written, but it's unnecessary time consuming to ask for
> details you're the only one able to know them.
>
> http://www.catb.org/esr/faqs/smart-questions.html
>
>> I am not sure how to verify Bugzilla using mod_perl or not.
>
> Compare to the mod_perl installation instructions, look for mod_perl
> statements in your configuration, check if mod_perl is available as a
> module to your httpd at all...
>
> https://www.bugzilla.org/docs/4.4/en/html/configuration.html#http
>
>> I do understand that I need to fix it.  I just want the script continues
>> to test the rest of conditions.
>
> The script aborts for a good reason, because it knows that it can't
> work any further. There's really no point in trying to know better
> than the dev of this script if or how to continue in case of errors.
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>


--
Best regards,

Alex Lai  (:-)
OMP SIPS DBA ADNET Systems, Inc.

7515 Mission Drive, Suite A100
Lanham, MD 20706
301 352-4657 (phone)
301 352-0437 (fax)
[hidden email]
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade to Bugzilla 4.4.9 but it fail to read the localconfig file

Gervase Markham
In reply to this post by Alex Lai
On 11/06/15 15:02, Alex Lai wrote:
> I found the problem is Bugzilla try to load localconfig.<PROJECT>.  I

It should only be doing this if you have set the PROJECT environment
variable. Did you do that? If so, why?

Gerv
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.