Issue with bugzilla 4.4.13

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

Issue with bugzilla 4.4.13

EXT-Ionescu-Niscov, Stefano
Hello,

I need some help with Bugzilla 4.4.13. I am trying to create a new bugzilla instance.
The computer I am working with is a Red Hat 6.10.
Perl version is 5.10.1, mysql version is 5.1.73.
I should mention that I have more instances at 4.4.x which were successfully built.

I went through the motions to build the bugzilla instance, installed necessary modules, etc
The script checksetup.pl runs with no errors. However when trying to start the instance on the web browser I am getting the following  message :
Can't locate Template/Filters.pm in @INC ( @INC contains ..../usr/local/share/perl5 ...lib ...)
Interestingly enough /usr/local/share/perl5 contains Template/Filters.pm so the requested module is contained within @INC.

What could be the problem ?


Stefano Ionescu-Niscov
Professional System Administrator, AMER Client Services - Boeing
DXC Technology
Desk : 425-237-2644
Mobile : 425-919-3470


_______________________________________________
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: Issue with bugzilla 4.4.13

EXT-Ionescu-Niscov, Stefano
Dear Thorsten,

First off - I love your German. I use to learn some in school - but it was a long time ago.
Looks like you just pointed correctly to the problem. The module has syntax errors :

"Bareword "TEMPLATE_OUTPUT" not allowed while "strict subs" in use at /usr/local/share/perl5/Template/Filters.pm line 173.
Bareword "TEMPLATE_OUTPUT" not allowed while "strict subs" in use at /usr/local/share/perl5/Template/Filters.pm line 175.
/usr/local/share/perl5/Template/Filters.pm had compilation errors."
Module version is 2.87.

How do I fix this - I'm afraid I am not that good with Perl.
As to how I built bugzilla-4.4.13, I downloaded it straight, created the data base with MySQL and populate lib with checksetup.pl - no migration from another source.

Mit freundlichen Grüßen,

Stefano Ionescu-Niscov
Professional System Administrator, AMER Client Services - Boeing
DXC Technology
Desk : 425-237-2644
Mobile : 425-919-3470



-----Original Message-----
From: support-bugzilla [mailto:[hidden email]] On Behalf Of Thorsten Schöning
Sent: Sunday, July 21, 2019 4:13 AM
To: [hidden email]
Subject: Re: Issue with bugzilla 4.4.13

Guten Tag EXT-Ionescu-Niscov, Stefano,
am Sonntag, 21. Juli 2019 um 04:43 schrieben Sie:

> Can't locate Template/Filters.pm in @INC ( @INC contains
> ..../usr/local/share/perl5 ...lib ...) Interestingly enough
> /usr/local/share/perl5 contains Template/Filters.pm so the requested
> module is contained within @INC.

> What could be the problem ?

Missing or incompatible dependencies. checksetup.pl doesn't check all of those, only the packages it knows about, but additional dependencies or incompatibilities might be introduced on runtime as well when actually using packages. The fact that the file is present in your mentioned path doesn't necessarily mean it can be loaded how it is needed at runtime for Bugzilla.

Did you use install-module.pl or copy Bugzilla dirsd over from some other system? If so, don't do that, clear the "lib"-folder in the installation directory form any Perl-libs and install dependencies using your package manager. install-module.pl is the last choice in case your package manager doesn't provide things really required only, it should not be used by default.

Additionally try something like the following to check syntax of the file and if it can be loaded successfully outside Bugzilla:

> perl -c /usr/local/share/perl5/Template/Filters.pm
> perl -MTemplate::Filters -e "print Template::Filters->VERSION"

Don't take warnings in cas eof "-c" too seriously, if the result is "syntax OK", everything is fine.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning       E-Mail: [hidden email]
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
_______________________________________________
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: Issue with bugzilla 4.4.13

EXT-Ionescu-Niscov, Stefano
OK - you are right that checksetup.pl does not populate lib by itself. However when running the script it points you to required modules which then you can install - and they go under lib -my bad I did not express this clearly.
I ran this procedure many times and it worked just fine.
About reinstalling new version of Perl - I hesitate to do this - on this machine I have several Bugzilla instances running in production and the users will not like any interruptions. I also checked the requirements on Perl for Bugzilla 5.0.6 for example and is still version 5.10.1.
Not sure how this broken module got there - this image is quite old.
Thanks for the rpm link - it should contain the correct Template::Filters module. I am wondering if I can just extract the module from the Template-Toolkit and reinstall it ..

Many regards,

Stefano Ionescu-Niscov
Professional System Administrator, AMER Client Services - Boeing
DXC Technology
Desk : 425-237-2644
Mobile : 425-919-3470



-----Original Message-----
From: support-bugzilla [mailto:[hidden email]] On Behalf Of Thorsten Schöning
Sent: Sunday, July 21, 2019 9:30 AM
To: [hidden email]
Subject: Re: Issue with bugzilla 4.4.13

Guten Tag EXT-Ionescu-Niscov, Stefano,
am Sonntag, 21. Juli 2019 um 17:26 schrieben Sie:

> "Bareword "TEMPLATE_OUTPUT" not allowed while "strict subs" in use at
> /usr/local/share/perl5/Template/Filters.pm line 173.
> Bareword "TEMPLATE_OUTPUT" not allowed while "strict subs" in use at
> /usr/local/share/perl5/Template/Filters.pm line 175.
> /usr/local/share/perl5/Template/Filters.pm had compilation errors."
> Module version is 2.87.

> How do I fix this - I'm afraid I am not that good with Perl.

You shouldn't need to, it's pretty unlikely that distributions publish syntactically broken Perl packages, so that alone should make you wonder. Start with looking at the lines of your file mentioned in the error messages, I have version 2.87 as well on UB 16.04 and Windows 10 with some 5.22 Perl and in both files those lines are empty or comments. In theory we should both have the same file.

It might be that Template::Filters is too new for your pretty old Perl and nobody recognized yet. The install path make me wonder as well, as it's not what I find in some RPMs:

http://rpm.pbone.net/index.php3/stat/4/idpl/15161467/dir/redhat_el_6/com/perl-Template-Toolkit-2.19-11.el6.x86_64.rpm.html

Do you know how Perl and Template::Toolkit have been installed? It might be an option to remove Perl entirely and reinstall it using your package manager, including Template::Toolkit. It might be that someone installed things using CPAN which might be incompatible with your Perl.

> As to how I built bugzilla-4.4.13, I downloaded it straight, created
> the data base with MySQL and populate lib with checksetup.pl
> - no migration from another source.

checksetup.pl doesn't populate "lib", so either that dir only contains the file "README" or do as I said in the last mail and clean that dir up. If you really only ran checksetup.pl, "lib" should only contain "README".

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning       E-Mail: [hidden email]
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

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