[Koha] RV: production mode - trapped fatal error [SOLVED]

Iago Lorenzo Salgueiro ilorenzo at cetmar.org
Thu Dec 4 01:04:59 NZDT 2008


SOLVED
 
Ok, I install   HTML::Template::Pro from CPAN, and try again,

	[root at aula lib]# perl -wc C4/Auth.pm
	Can't locate Date/Calc.pm in @INC (@INC contains:
/usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl
/usr/lib/perl5/site_perl .) at C4/Dates.pm line 24.
	BEGIN failed--compilation aborted at C4/Dates.pm line 24.
	Compilation failed in require at C4/Members.pm line 23.
	BEGIN failed--compilation aborted at C4/Members.pm line 23.
	Compilation failed in require at C4/Auth.pm line 31.
	BEGIN failed--compilation aborted at C4/Auth.pm line 31.

Another error, another dependency? Now, I install   Date::Calc  from
CPAN, and try again,

	[root at aula lib]# perl -wc C4/Auth.pm
	Can't locate MARC/File/XML.pm in @INC (@INC contains:
/usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl
/usr/lib/perl5/site_perl .) at C4/Biblio.pm line 24.
	BEGIN failed--compilation aborted at C4/Biblio.pm line 24.
	Compilation failed in require at C4/Reserves.pm line 28.
	BEGIN failed--compilation aborted at C4/Reserves.pm line 28.
	Compilation failed in require at C4/Circulation.pm line 25.
	BEGIN failed--compilation aborted at C4/Circulation.pm line 25.
	Compilation failed in require at C4/Overdues.pm line 24.
	BEGIN failed--compilation aborted at C4/Overdues.pm line 24.
	Compilation failed in require at C4/Members.pm line 27.
	BEGIN failed--compilation aborted at C4/Members.pm line 27.
	Compilation failed in require at C4/Auth.pm line 31.
	BEGIN failed--compilation aborted at C4/Auth.pm line 31.

Force install  MARC::File::XML from CPAN (the first simple 'install'
fall), and again,

	[root at aula lib]# perl -wc C4/Auth.pm
	could not find ParserDetails.ini in
/usr/local/lib/perl5/site_perl/5.10.0/XML/SAX
	Unable to provide required features
	Compilation failed in require at C4/Biblio.pm line 24.
	BEGIN failed--compilation aborted at C4/Biblio.pm line 24.
	Compilation failed in require at C4/Reserves.pm line 28.
	BEGIN failed--compilation aborted at C4/Reserves.pm line 28.
	Compilation failed in require at C4/Circulation.pm line 25.
	BEGIN failed--compilation aborted at C4/Circulation.pm line 25.
	Compilation failed in require at C4/Overdues.pm line 24.
	BEGIN failed--compilation aborted at C4/Overdues.pm line 24.
	Compilation failed in require at C4/Members.pm line 27.
	BEGIN failed--compilation aborted at C4/Members.pm line 27.
	Compilation failed in require at C4/Auth.pm line 31.
	BEGIN failed--compilation aborted at C4/Auth.pm line 31.
	[root at aula lib]# 

Now, the error is 'not enough descriptive' for me, I try execute
directly,

	[root at aula lib]# perl -wc C4/Biblio.pm
	could not find ParserDetails.ini in
/usr/local/lib/perl5/site_perl/5.10.0/XML/SAX
	Unable to provide required features
	Compilation failed in require at C4/Biblio.pm line 24.
	BEGIN failed--compilation aborted at C4/Biblio.pm line 24.

and the same with each perl-file In the result above, but the message is
ever the same. 
 
Which are the 'required features' now?
Is required the file  'ParserDetails.ini' (and How Can I installed it? /
What is the content of the file?)?
...........
I ask this to google, and say me: "go to
http://perl-xml.sourceforge.net/faq/#parserdetails.ini"; I download
XML::SAX 0.96 (the last) and install it:

	# perl Makefile.PL && make && make install
	.......
	could not find ParserDetails.ini in
/usr/local/lib/perl5/site_perl/5.10.0/XML/SAX
	

Another time the advice of 'ParserDetails.ini' file, but i do another
time the 'make install' and the advice disappear, and file already
exists (i believe that 'make install' don't find the file, advice, and
create it -without advice of this last step-).
Ah!, ParserDetails.ini contains:

	[XML::SAX::PurePerl]
	http://xml.org/sax/features/namespaces
<http://xml.org/sax/features/namespaces>  = 1

NOTE: ParserDetails.ini can be created also executing: # perl -MXML::SAX
-e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" , if
you use an installation from a package (such as RPM)

 
I try again the First step,

	[root at aula lib]# perl -wc C4/Auth.pm
	Can't locate Class/Factory/Util.pm in @INC (@INC contains:
/usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl
/usr/lib/perl5/site_perl .) at C4/ClassSortRoutine.pm line 22.
	BEGIN failed--compilation aborted at C4/ClassSortRoutine.pm line
22.
	Compilation failed in require at C4/ClassSource.pm line 24.
	BEGIN failed--compilation aborted at C4/ClassSource.pm line 24.
	Compilation failed in require at C4/Biblio.pm line 32.
	BEGIN failed--compilation aborted at C4/Biblio.pm line 32.
	Compilation failed in require at C4/Reserves.pm line 28.
	BEGIN failed--compilation aborted at C4/Reserves.pm line 28.
	Compilation failed in require at C4/Circulation.pm line 25.
	BEGIN failed--compilation aborted at C4/Circulation.pm line 25.
	Compilation failed in require at C4/Overdues.pm line 24.
	BEGIN failed--compilation aborted at C4/Overdues.pm line 24.
	Compilation failed in require at C4/Members.pm line 27.
	BEGIN failed--compilation aborted at C4/Members.pm line 27.
	Compilation failed in require at C4/Auth.pm line 31.
	BEGIN failed--compilation aborted at C4/Auth.pm line 31.
	

I install   Class::Factory::Util  from CPAN, and again,

	[root at aula lib]# perl -wc C4/Auth.pm
	Can't locate Text/Iconv.pm in @INC (@INC contains:
/usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl
/usr/lib/perl5/site_perl .) at C4/Charset.pm line 22.
	BEGIN failed--compilation aborted at C4/Charset.pm line 22.
	Compilation failed in require at C4/Biblio.pm line 33.
	BEGIN failed--compilation aborted at C4/Biblio.pm line 33.
	Compilation failed in require at C4/Reserves.pm line 28.
	BEGIN failed--compilation aborted at C4/Reserves.pm line 28.
	Compilation failed in require at C4/Circulation.pm line 25.
	BEGIN failed--compilation aborted at C4/Circulation.pm line 25.
	Compilation failed in require at C4/Overdues.pm line 24.
	BEGIN failed--compilation aborted at C4/Overdues.pm line 24.
	Compilation failed in require at C4/Members.pm line 27.
	BEGIN failed--compilation aborted at C4/Members.pm line 27.
	Compilation failed in require at C4/Auth.pm line 31.
	BEGIN failed--compilation aborted at C4/Auth.pm line 31.

I install    Text::Iconv  from CPAN, and again, 

	[root at aula lib]# perl -wc C4/Auth.pmCan't locate Lingua/Stem.pm
in @INC (@INC contains: /usr/lib/perl5/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl
/usr/lib/perl5/site_perl .) at C4/Search.pm line 23.
	BEGIN failed--compilation aborted at C4/Search.pm line 23.
	Compilation failed in require at C4/Heading.pm line 25.
	BEGIN failed--compilation aborted at C4/Heading.pm line 25.
	Compilation failed in require at C4/Biblio.pm line 114.
	BEGIN failed--compilation aborted at C4/Biblio.pm line 114.
	Compilation failed in require at C4/Reserves.pm line 28.
	BEGIN failed--compilation aborted at C4/Reserves.pm line 28.
	Compilation failed in require at C4/Circulation.pm line 25.
	BEGIN failed--compilation aborted at C4/Circulation.pm line 25.
	Compilation failed in require at C4/Overdues.pm line 24.
	BEGIN failed--compilation aborted at C4/Overdues.pm line 24.
	Compilation failed in require at C4/Members.pm line 27.
	BEGIN failed--compilation aborted at C4/Members.pm line 27.
	Compilation failed in require at C4/Auth.pm line 31.
	BEGIN failed--compilation aborted at C4/Auth.pm line 31.

I install    Lingua::Stem from CPAN, and again,

	[root at aula lib]# perl -wc C4/Auth.pm
	Can't locate XML/LibXML.pm in @INC (@INC contains:
/usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl
/usr/lib/perl5/site_perl .) at C4/XSLT.pm line 26.
	BEGIN failed--compilation aborted at C4/XSLT.pm line 26.
	Compilation failed in require at C4/Search.pm line 27.
	BEGIN failed--compilation aborted at C4/Search.pm line 27.
	Compilation failed in require at C4/Heading.pm line 25.
	BEGIN failed--compilation aborted at C4/Heading.pm line 25.
	Compilation failed in require at C4/Biblio.pm line 114.
	BEGIN failed--compilation aborted at C4/Biblio.pm line 114.
	Compilation failed in require at C4/Reserves.pm line 28.
	BEGIN failed--compilation aborted at C4/Reserves.pm line 28.
	Compilation failed in require at C4/Circulation.pm line 25.
	BEGIN failed--compilation aborted at C4/Circulation.pm line 25.
	Compilation failed in require at C4/Overdues.pm line 24.
	BEGIN failed--compilation aborted at C4/Overdues.pm line 24.
	Compilation failed in require at C4/Members.pm line 27.
	BEGIN failed--compilation aborted at C4/Members.pm line 27.
	Compilation failed in require at C4/Auth.pm line 31.
	BEGIN failed--compilation aborted at C4/Auth.pm line 31.

I install   XML::LibXML from CPAN, and again,

	[root at aula lib]# perl -wc C4/Auth.pm
	Can't locate XML/LibXSLT.pm in @INC (@INC contains:
/usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl
/usr/lib/perl5/site_perl .) at C4/XSLT.pm line 27.
	BEGIN failed--compilation aborted at C4/XSLT.pm line 27.
	Compilation failed in require at C4/Search.pm line 27.
	BEGIN failed--compilation aborted at C4/Search.pm line 27.
	Compilation failed in require at C4/Heading.pm line 25.
	BEGIN failed--compilation aborted at C4/Heading.pm line 25.
	Compilation failed in require at C4/Biblio.pm line 114.
	BEGIN failed--compilation aborted at C4/Biblio.pm line 114.
	Compilation failed in require at C4/Reserves.pm line 28.
	BEGIN failed--compilation aborted at C4/Reserves.pm line 28.
	Compilation failed in require at C4/Circulation.pm line 25.
	BEGIN failed--compilation aborted at C4/Circulation.pm line 25.
	Compilation failed in require at C4/Overdues.pm line 24.
	BEGIN failed--compilation aborted at C4/Overdues.pm line 24.
	Compilation failed in require at C4/Members.pm line 27.
	BEGIN failed--compilation aborted at C4/Members.pm line 27.
	Compilation failed in require at C4/Auth.pm line 31.
	BEGIN failed--compilation aborted at C4/Auth.pm line 31.

I install   XML::LibXSLT from CPAN, and again,

	[root at aula lib]# perl -wc C4/Auth.pm
	DBD::mysql::db selectrow_array failed: Table
'koha.systempreferences' doesn't exist at C4/Context.pm line 479.
	Subroutine get_template_and_user redefined at C4/Auth.pm line
118.
	Subroutine _version_check redefined at C4/Auth.pm line 430.
	Subroutine _session_log redefined at C4/Auth.pm line 474.
	Subroutine checkauth redefined at C4/Auth.pm line 481.
	Subroutine check_api_auth redefined at C4/Auth.pm line 876.
	Subroutine check_cookie_auth redefined at C4/Auth.pm line 1096.
	Subroutine get_session redefined at C4/Auth.pm line 1193.
	Subroutine checkpw redefined at C4/Auth.pm line 1211.
	Subroutine getuserflags redefined at C4/Auth.pm line 1283.
	Subroutine get_user_subpermissions redefined at C4/Auth.pm line
1340.
	Subroutine get_all_subpermissions redefined at C4/Auth.pm line
1375.
	Subroutine haspermission redefined at C4/Auth.pm line 1400.
	Subroutine getborrowernumber redefined at C4/Auth.pm line 1443.
	C4/Auth.pm syntax OK

GOOD!! OK!!, I can start the 'web installer' going to the 'intranet url'
(http://127.0.0.1:8080 by default, http://127.0.0.1:8071 in my case).
 
'production mode - trapped fatal error'  SOLVED
 
 
LAST NOTES, My installation:
 
- Linux Fedora 9
- Koha 3.00.00
- Perl 5.10    (I will test the posible problem defined in bug
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2309
<http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2309>  for
conflict with version 5.10 of perl)
- Required perl modules:
    - HTML::Template::Pro 
    - Date::Calc  
    - MARC::File::XML
    - XML::SAX 0.96, manual installation, or
    - automatic installation  (from CPAN or RPM/DEB package), and then
execute
         # perl -MXML::SAX -e
"XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" for create
ParserDetails.ini
    - Class::Factory::Util  
    - Text::Iconv  
    - Lingua::Stem 
    - XML::LibXML 
    - XML::LibXSLT  
    - Mail::Sendmail (when you access to INTRANET web, this module is
not required, but OPAC web fall with a 'KOHA ERROR' page).
    - When Koha web install finish, revise the list of missing perl
modules in page:
http://your.intranet.koha:8080/cgi-bin/koha/about.pl#perl
<http://your.intranet.koha:8080/cgi-bin/koha/about.pl#perl> 
 
- Steps described in koha-install/INSTALL.fedora7 file. But I use libicu
version 3.8, in this file recommends use version 3.6 for problems
installing ZEBRA YAZ, but I haven't problems installing it -I need check
if works good, but the installation was without problems-.
- Steps described in koha-install/INSTALL, in section 'Default
installation instructions:' I change the following steps for work with
Fedora 9
    5. ln -s /etc/koha/koha-httpd.conf /etc/httpd/conf.d/koha.conf
        File koha-httpd.conf need manually edit, for put the apache
lines 'Listen port-number' and 'NameVirtualHost name-ip:port-number' for
each OPAC and INTRANET VirtualHost, if you need it.
    6. 'a2enmod' and 'a2ensite' command don't exists and you don't need
(the changes in the previous step are enough). Then,  /etc/init.d/httpd
reload
 
 
THANK YOU VERY MUCH FOR EVERYTHING

	 
	 -----Mensaje original-----
	De: Joe Atzberger [mailto:ohiocore at gmail.com] 
	Enviado el: martes, 02 de diciembre de 2008 20:52
	Para: Iago Lorenzo Salgueiro
	CC: koha at lists.katipo.co.nz
	Asunto: Re: [Koha] production mode - trapped fatal error
	
	
	This means you haven't installed HTML::Template::Pro (or haven't
done it in a location where Koha can find it).  
	--Joe
	
	
	On Tue, Dec 2, 2008 at 12:53 PM, Iago Lorenzo Salgueiro
<ilorenzo at cetmar.org> wrote:
	

		Permissions checked, all good (in koha files and
configs)

		I set PERL5LIB and KOHA_CONF, inside
"/var/www/html-virtuals/koha/lib" folder I run:

		

		# perl -wc C4/Auth.pm
		
		Can't locate HTML/Template/Pro.pm in @INC (@INC
contains: /usr/lib/perl5/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl
/usr/lib/perl5/site_perl .) at C4/Output.pm line 33.
		BEGIN failed--compilation aborted at C4/Output.pm line
33.
		Compilation failed in require at C4/Auth.pm line 30.
		BEGIN failed--compilation aborted at C4/Auth.pm line 30.
		

		What means this error?

			-----Mensaje original-----
			De: Joe Atzberger [mailto:ohiocore at gmail.com] 
			Enviado el: martes, 02 de diciembre de 2008
17:03
			Para: Iago Lorenzo Salgueiro
			CC: koha at lists.katipo.co.nz
			Asunto: Re: [Koha] production mode - trapped
fatal error
			
			
			Iago --
			
			Get on the command line, then set/export
PERL5LIB and KOHA_CONF.  Since the problem seems to be with Auth, then
try perl -wc C4/Auth.pm
			
			Make sure the permissions on your KOHA_CONF file
allow it to be read by Apache.
			
			--Joe
			
			
			On Tue, Dec 2, 2008 at 3:28 AM, Iago Lorenzo
Salgueiro <ilorenzo at cetmar.org> wrote:
			

				Hi:
				  In Fedora 9, with KOHA 3.00.00 and
after all the setup, when i go to my koha opac page for first time, i
get the error:
				 
				"production mode - trapped fatal error"
				 
				 I look at and find about this error,
and tried other solutions (like the perl-dependencies losed, or
reinstallation of someones -CGI::Session and anothers-). I can see, in
the koha log file this:

				[Mon Dec 01 18:33:45 2008] [error]
[client 127.0.0.1 <http://127.0.0.1/> ] [Mon Dec  1 18:33:45 2008]
opac-main.pl: BEGIN failed--compilation aborted             at
/var/www/html-virtuals/koha/opac/cgi-bin/opac/opac-main.pl line 22.

				the line 22 of opac-main.pl contains:

				use C4::Auth;    # get_template_and_user

				and the same error when i entered in
koha-intranet, and the line of the error is similar (when reference to
C4::***)
				 
				I check the variable PERL5LIB in apache
configuration, and it's ok:

				SetEnv KOHA_CONF
"/etc/koha/koha-conf.xml"
				SetEnv PERL5LIB
"/var/www/html-virtuals/koha/lib"

				inside each VirtualHost (OPAC and
intranet) 
				 
				When I test all the possible (failed)
solutions, I have SELinux and firewall disabled (to avoid problems)
				 
				Someone know what is the problem (or can
be)??
				 
				thanks!! 
				


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20081203/d8c8263c/attachment-0001.htm 


More information about the Koha mailing list