Koha 3.0 beta on Kubuntu gutsy - "production mode - trapped fatal error"
I have close to a successful install of Koha 3.0 beta on Kubuntu gutsy. For example, the interface at port 80 comes up in Apache2 fine. However, i am having problems getting the OPAC interface on port 8080 to work. It tries to start, but then freezes with the message "production mode - trapped fatal error". Apache2's logs show no error, but Koha's log shows errors such as -- [Mon May 05 14:25:42 2008] [error] [client 127.0.1.1] [Mon May 5 14:25:42 2008] Reserves.pm: DBD::mysql::db selectrow_array failed: Table 'koha.systempreferences' doesn't exist at /usr/share/koha/lib/C4/Context.pm line 455. AND [Mon May 05 16:38:20 2008] [error] [client 127.0.1.1] [Mon May 5 16:38:20 2008] install.pl: Can't locate object method "generate_id" via package "CGI::Session::ID::" (perhaps you forgot to load "CGI::Session::ID::"?) at /usr/local/share/perl/5.8.8/CGI/Session.pm line 74. The messages seem to imply that a PERL module is missing, but I have checked and am unable to tell what might be missing. I have researched the 3.0 install procedure from the Koha file, and from an online guide. I have tried it on two separate machines - but the problem in both cases was the same. Any suggestions? Robert Maynord -- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
I just installed Koha 3.0 beta on a FC 8 server and have encountered the same error when trying to configure via port 8080. Alan Bates. rmaynord wrote:
I have close to a successful install of Koha 3.0 beta on Kubuntu gutsy. For example, the interface at port 80 comes up in Apache2 fine. However, i am having problems getting the OPAC interface on port 8080 to work. It tries to start, but then freezes with the message "production mode - trapped fatal error". Apache2's logs show no error, but Koha's log shows errors such as --
[Mon May 05 14:25:42 2008] [error] [client 127.0.1.1] [Mon May 5 14:25:42 2008] Reserves.pm: DBD::mysql::db selectrow_array failed: Table 'koha.systempreferences' doesn't exist at /usr/share/koha/lib/C4/Context.pm line 455.
AND
[Mon May 05 16:38:20 2008] [error] [client 127.0.1.1] [Mon May 5 16:38:20 2008] install.pl: Can't locate object method "generate_id" via package "CGI::Session::ID::" (perhaps you forgot to load "CGI::Session::ID::"?) at /usr/local/share/perl/5.8.8/CGI/Session.pm line 74.
The messages seem to imply that a PERL module is missing, but I have checked and am unable to tell what might be missing.
I have researched the 3.0 install procedure from the Koha file, and from an online guide. I have tried it on two separate machines - but the problem in both cases was the same.
Any suggestions?
Robert Maynord
-- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Hi Robert, On Mon, May 5, 2008 rmaynord <robert@maynord.net> wrote:
I have close to a successful install of Koha 3.0 beta on Kubuntu gutsy. For example, the interface at port 80 comes up in Apache2 fine. However, i am having problems getting the OPAC interface on port 8080 to work. It tries to start, but then freezes with the message "production mode - trapped fatal error". Apache2's logs show no error, but Koha's log shows errors such as
[snp]
[Mon May 05 16:38:20 2008] [error] [client 127.0.1.1] [Mon May 5 16:38:20 2008] install.pl: Can't locate object method "generate_id" via package "CGI::Session::ID::" (perhaps you forgot to load "CGI::Session::ID::"?) at /usr/local/share/perl/5.8.8/CGI/Session.pm line 74.
I had this same problem during a test installation of Koha 3 Beta 2 in a virtual machine running Linux (openSUSE 10.3). I think I have found out the source of this problem. You probably had (or will have) these errors while installing the CGI::Session module from CPAN (these problems were also reported by other user in a post regarding Koha installation in Mac OS X / Darwin - http://www.nabble.com/koha-3.0-on-macos-darwin-td15392282.html ): __________________ t/g4_dbfile_json..................# JSON::Syck t/g4_dbfile_json..................51/101 (in cleanup) Dumping circular structures is not supported with JSON::Syck at /Users/custard/.cpan/build/CGI-Session-4.20/blib/lib/CGI/Session/Serialize/json.pm line 18. __________________ The author of the CGI::Session has complained about the JSON driver being broken (in September 2007): Fwd: JSON driver for CGI::Session still broken.: msg#00000 http://osdir.com/ml/lang.perl.modules.cgi-session.user/2007-09/msg00000.html So, what are the (possible) solutions? 1 - I think the better solution would be to install the CGI::Session module first, to make sure it gets installed before the module JSON::Syck module gets installed. 2 - But, because you're already having this problem, the first solution will NOT work for you. So the alternative is to do a "force install" of the CGI::Session module (in a CPAN prompt). Please, tell if doing the "force install" of the CGI::Session module works for you. Best wishes, Ricardo Dias Marques lists AT ricmarques DOT net
I am having the same problem, and the unfortunately the 'force install' did not help. When installing the perl modules, I did install CGI::Session before YAML::Syck, but still recieved this error. Any ideas? Kyle On Tue, May 6, 2008 at 5:39 AM, Ricardo Dias Marques <lists@ricmarques.net> wrote:
Hi Robert,
On Mon, May 5, 2008 rmaynord <robert@maynord.net> wrote:
I have close to a successful install of Koha 3.0 beta on Kubuntu gutsy. For example, the interface at port 80 comes up in Apache2 fine. However, i am having problems getting the OPAC interface on port 8080 to work. It tries to start, but then freezes with the message "production mode - trapped fatal error". Apache2's logs show no error, but Koha's log shows errors such as
[snp]
[Mon May 05 16:38:20 2008] [error] [client 127.0.1.1] [Mon May 5 16:38:20 2008] install.pl: Can't locate object method "generate_id" via package "CGI::Session::ID::" (perhaps you forgot to load "CGI::Session::ID::"?) at /usr/local/share/perl/5.8.8/CGI/Session.pm line 74.
I had this same problem during a test installation of Koha 3 Beta 2 in a virtual machine running Linux (openSUSE 10.3).
I think I have found out the source of this problem. You probably had (or will have) these errors while installing the CGI::Session module from CPAN (these problems were also reported by other user in a post regarding Koha installation in Mac OS X / Darwin - http://www.nabble.com/koha-3.0-on-macos-darwin-td15392282.html ):
__________________
t/g4_dbfile_json..................# JSON::Syck t/g4_dbfile_json..................51/101 (in cleanup) Dumping circular structures is not supported with JSON::Syck at /Users/custard/.cpan/build/CGI-Session-4.20/blib/lib/CGI/Session/Serialize/json.pm line 18. __________________
The author of the CGI::Session has complained about the JSON driver being broken (in September 2007):
Fwd: JSON driver for CGI::Session still broken.: msg#00000 http://osdir.com/ml/lang.perl.modules.cgi-session.user/2007-09/msg00000.html
So, what are the (possible) solutions?
1 - I think the better solution would be to install the CGI::Session module first, to make sure it gets installed before the module JSON::Syck module gets installed.
2 - But, because you're already having this problem, the first solution will NOT work for you. So the alternative is to do a "force install" of the CGI::Session module (in a CPAN prompt).
Please, tell if doing the "force install" of the CGI::Session module works for you.
Best wishes, Ricardo Dias Marques lists AT ricmarques DOT net
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- http://www.kylehall.info Information Technology Crawford County Federated Library System ( http://www.ccfls.org )
I have tried the force install of CGI::Session --------------> seems OK. I get the message "CGI::Session is up to date." I then tried to force install DBD::mysql but received the message ---> Can't exec "mysql_config": No such file or directory at Makefile.PL line 76. Cannot find the file 'mysql_config'! Your execution PATH doesn't seem not contain the path to mysql_config. Resorting to guessed values! Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Failed to determine directory of mysql.h. Use perl Makefile.PL --cflags=-I<dir> For JSON::Syck I receive the message ----> JSON::Syck is up to date. I will continue to explore - it looks like I need to play with the PERL Makefile??? Robert Maynord -- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Try installing the package libdbd-mysql-perl . -- Jesse
Jesse: I tried this - but indeed the package was already installed. Thanks anyway! Jesse-34 wrote:
Try installing the package libdbd-mysql-perl .
-- Jesse
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Hi Not certain, but looking at your messages, I am wondering if you have mysql-devel files installed? Regards Ken
I have tried the force install of CGI::Session --------------> seems OK. I get the message "CGI::Session is up to date."
I then tried to force install DBD::mysql but received the message ---> Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
Cannot find the file 'mysql_config'! Your execution PATH doesn't seem not contain the path to mysql_config. Resorting to guessed values! Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Failed to determine directory of mysql.h. Use
perl Makefile.PL --cflags=-I<dir>
For JSON::Syck I receive the message ----> JSON::Syck is up to date.
I will continue to explore - it looks like I need to play with the PERL Makefile???
Robert Maynord
-- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Ken: I installed the development files, but no change. Should I uninstall/install mysql or perl or koha after installing the development files? Ken Lomax wrote:
Hi
Not certain, but looking at your messages, I am wondering if you have mysql-devel files installed?
Regards Ken
I have tried the force install of CGI::Session --------------> seems OK. I get the message "CGI::Session is up to date."
I then tried to force install DBD::mysql but received the message ---> Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
Cannot find the file 'mysql_config'! Your execution PATH doesn't seem not contain the path to mysql_config. Resorting to guessed values! Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Failed to determine directory of mysql.h. Use
perl Makefile.PL --cflags=-I<dir>
For JSON::Syck I receive the message ----> JSON::Syck is up to date.
I will continue to explore - it looks like I need to play with the PERL Makefile???
Robert Maynord
-- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Dear Colleagues: We had this precise error at port 8080 and even tried a new install. No luck. We HAD installed CGI::Session 4.10, first thing when doing the original install...obviously, it had made no difference. However, I downloaded the file from CPAN and re-installed it the traditional way: #perl Makefile.PL, make, make test, make install - and, lo and behold many hours of misery vanished. Now, let me note that this was on Fedora 8, not Ubuntu but it might well work on Ubuntu as well as it is a PERL module thing. I also note, in passing that both with 2.2.9 and 3.00.00-beta that many CPAN packages never install correctly - or at all - with the standard installer. Where possible, we have found that either a 'yum' or a standard, download and install, as above, works best. In 3.00, we had 7 different CPAN packages that needed manual install and one, POE, that needed a reversion from 1.001 to 0.9999 to get it to work. In a number of cases, not only was the manual install the only way to get something to work but also, brought with it new modules that it needed, in turn... Hope the above helps Best of luck... Petrus rmaynord wrote:
Ken:
I installed the development files, but no change. Should I uninstall/install mysql or perl or koha after installing the development files?
Ken Lomax wrote:
Hi
Not certain, but looking at your messages, I am wondering if you have mysql-devel files installed?
Regards Ken
I have tried the force install of CGI::Session --------------> seems OK. I get the message "CGI::Session is up to date."
I then tried to force install DBD::mysql but received the message ---> Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
Cannot find the file 'mysql_config'! Your execution PATH doesn't seem not contain the path to mysql_config. Resorting to guessed values! Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Failed to determine directory of mysql.h. Use
perl Makefile.PL --cflags=-I<dir>
For JSON::Syck I receive the message ----> JSON::Syck is up to date.
I will continue to explore - it looks like I need to play with the PERL Makefile???
Robert Maynord
-- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Petrus: Shocking! This solved the problem. I simply downloaded CGI::Session and installed it directly - and it works!!! Thanks. Robert PBVB wrote:
Dear Colleagues:
We had this precise error at port 8080 and even tried a new install. No luck. We HAD installed CGI::Session 4.10, first thing when doing the original install...obviously, it had made no difference. However, I downloaded the file from CPAN and re-installed it the traditional way: #perl Makefile.PL, make, make test, make install - and, lo and behold many hours of misery vanished. Now, let me note that this was on Fedora 8, not Ubuntu but it might well work on Ubuntu as well as it is a PERL module thing. I also note, in passing that both with 2.2.9 and 3.00.00-beta that many CPAN packages never install correctly - or at all - with the standard installer. Where possible, we have found that either a 'yum' or a standard, download and install, as above, works best. In 3.00, we had 7 different CPAN packages that needed manual install and one, POE, that needed a reversion from 1.001 to 0.9999 to get it to work. In a number of cases, not only was the manual install the only way to get something to work but also, brought with it new modules that it needed, in turn...
Hope the above helps
Best of luck...
Petrus
rmaynord wrote:
Ken:
I installed the development files, but no change. Should I uninstall/install mysql or perl or koha after installing the development files?
Ken Lomax wrote:
Hi
Not certain, but looking at your messages, I am wondering if you have mysql-devel files installed?
Regards Ken
I have tried the force install of CGI::Session --------------> seems OK. I get the message "CGI::Session is up to date."
I then tried to force install DBD::mysql but received the message ---> Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
Cannot find the file 'mysql_config'! Your execution PATH doesn't seem not contain the path to mysql_config. Resorting to guessed values! Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Failed to determine directory of mysql.h. Use
perl Makefile.PL --cflags=-I<dir>
For JSON::Syck I receive the message ----> JSON::Syck is up to date.
I will continue to explore - it looks like I need to play with the PERL Makefile???
Robert Maynord
-- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
2008/5/7 PBVB <pvanbork@outerline.com>
Dear Colleagues:
We had this precise error at port 8080 and even tried a new install. No luck. We HAD installed CGI::Session 4.10, first thing when doing the original install...obviously, it had made no difference. However, I downloaded the file from CPAN and re-installed it the traditional way: #perl Makefile.PL, make, make test, make install - and, lo and behold many hours of misery vanished. Now, let me note that this was on Fedora 8, not Ubuntu but it might well work on Ubuntu as well as it is a PERL module thing. I also note, in passing that both with 2.2.9 and 3.00.00-beta that many CPAN packages never install correctly - or at all - with the standard installer. Where possible, we have found that either a 'yum' or a standard, download and install, as above, works best. In 3.00, we had 7 different CPAN packages that needed manual install and one, POE, that needed a reversion from 1.001 to 0.9999 to get it to work. In a number of cases, not only was the manual install the only way to get something to work but also, brought with it new modules that it needed, in turn...
I am having trouble installing POE. 0.9999 on Ubuntu Hardy. How do I try a manual install? or should I use apt-get and force the version?
Hi I see no reason why you should need to uninstall these unless you have different versions of the relevant files. You may need to restart the mysql server "service mysqld restart" on my fedora systems. Check that all relevant files have the same version numbers. The files I have installed are mysql-5.0.45 mysql-devel-5.0.45 mysql-server-5.0.45 mysql-libs-5.0.45 for perl try: cpan install Bundle::CPAN that appears to install the latest version Regards Ken On Tue, 2008-05-06 at 15:33 -0700, rmaynord wrote:
Ken:
I installed the development files, but no change. Should I uninstall/install mysql or perl or koha after installing the development files?
Ken Lomax wrote:
Hi
Not certain, but looking at your messages, I am wondering if you have mysql-devel files installed?
Regards Ken
I have tried the force install of CGI::Session --------------> seems OK. I get the message "CGI::Session is up to date."
I then tried to force install DBD::mysql but received the message ---> Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
Cannot find the file 'mysql_config'! Your execution PATH doesn't seem not contain the path to mysql_config. Resorting to guessed values! Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Can't exec "mysql_config": No such file or directory at Makefile.PL line 466. Failed to determine directory of mysql.h. Use
perl Makefile.PL --cflags=-I<dir>
For JSON::Syck I receive the message ----> JSON::Syck is up to date.
I will continue to explore - it looks like I need to play with the PERL Makefile???
Robert Maynord
-- View this message in context: http://www.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy---%22production-mode---... Sent from the Koha - Discuss mailing list archive at Nabble.com.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
On 2008/05/8, at 6:34 PM, Ken Lomax wrote:
Hi
I see no reason why you should need to uninstall these unless you have different versions of the relevant files. You may need to restart the mysql server "service mysqld restart" on my fedora systems.
Check that all relevant files have the same version numbers. The files I have installed are mysql-5.0.45 mysql-devel-5.0.45 mysql-server-5.0.45 mysql-libs-5.0.45
On Tue, 2008-05-06 at 15:33 -0700, rmaynord wrote:
Ken:
I installed the development files, but no change. Should I uninstall/install mysql or perl or koha after installing the development files?
I then tried to force install DBD::mysql but received the message ---> Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
Hi Robert, On a debian box, try installing the package 'libmysqlclient15-dev' to resolve your missing 'mysql_config' file issue. $ which mysql_config /usr/bin/mysql_config $ dpkg -S /usr/bin/mysql_config libmysqlclient15-dev: /usr/bin/mysql_config Cheers, Mason.
participants (9)
-
Alan Bates -
Jesse -
Ken Lomax -
Krsnendu dasa -
Kyle Hall -
Mason James -
PBVB -
Ricardo Dias Marques -
rmaynord