Installing 3.0 on FreeBSD - Web Installer Errors
I've been struggling to get Koha 3.0 installed on FreeBSD 7.0. I know, a glutton for punishment, right? After wading through the installation process (including installing additional cpan modules and rewriting the installed sample koha-conf.xml and koha-httpd.conf files to use the right file paths, since the installer didn't seem to configure them based on what the makefile used), I've finally run into an issue that I can't find enough information to solve. My understanding is that the web installer is supposed to install the tables into the database. At least, there is nothing in the koha database at this point. When going to http://intranet.example.net:8000/cgi-bin/koha/installer/install.pl I get the following html message: production mode - trapped fatal error And the following lines in koha-error_log: [Thu Sep 25 17:28:22 2008] [error] [client 63.230.9.45] [Thu Sep 25 17:28:22 2008] install.pl: DBD::mysql::st execute failed: Table 'koha.language_subtag_registry' doesn't exist at /usr/share/koha/lib/C4/Languages.pm line 178. [Thu Sep 25 17:28:22 2008] [error] [client 63.230.9.45] [Thu Sep 25 17:28:22 2008] install.pl: DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at /usr/share/koha/lib/C4/Languages.pm line 179. [Thu Sep 25 17:28:22 2008] [error] [client 63.230.9.45] [Thu Sep 25 17:28:22 2008] install.pl: DBD::mysql::db selectrow_array failed: Table 'koha.systempreferences' doesn't exist at /usr/share/koha/lib/C4/Context.pm line 479. [Thu Sep 25 17:28:22 2008] [error] [client 63.230.9.45] [Thu Sep 25 17:28:22 2008] install.pl: Use of uninitialized value in string eq at /usr/share/koha/lib/C4/Context.pm line 45. [Thu Sep 25 17:28:22 2008] [error] [client 63.230.9.45] [Thu Sep 25 17:28:22 2008] install.pl: Use of uninitialized value in string eq at /usr/share/koha/lib/C4/Context.pm line 45. [Thu Sep 25 17:28:22 2008] [error] [client 63.230.9.45] [Thu Sep 25 17:28:22 2008] install.pl: Can't call method "id" on an undefined value at InstallAuth.pm line 278. I can connect to mysql using the information in koha-conf.xml: `mysql -u kohaadmin --port 3306 --host localhost -p koha` connects fine. I have p5-DBD-mysql-4.006 installed (among other things). On a possibly unrelated issue, when running: /usr/local/bin/zebrasrv -f /etc/koha/koha-conf.xml All I get is: 17:39:54-25/09 [fatal] Unknown element 'include' in config /etc/koha/koha-conf.xml I'm currently stuck on both of those, so any help or suggestions would be appreciated. Thanks, Thomas
Thomas Sewell a écrit :
I've been struggling to get Koha 3.0 installed on FreeBSD 7.0. I know, a glutton for punishment, right?
After wading through the installation process (including installing additional cpan modules and rewriting the installed sample koha-conf.xml and koha-httpd.conf files to use the right file paths, since the installer didn't seem to configure them based on what the makefile used), I've finally run into an issue that I can't find enough information to solve.
My understanding is that the web installer is supposed to install the tables into the database. At least, there is nothing in the koha database at this point.
When going to http://intranet.example.net:8000/cgi-bin/koha/installer/install.pl I get the following html message:
production mode - trapped fatal error
And the following lines in koha-error_log:
[Thu Sep 25 17:28:22 2008] [error] [client 63.230.9.45] [Thu Sep 25 17:28:22 2008] install.pl: DBD::mysql::st execute failed: Table 'koha.language_subtag_registry' doesn't exist at /usr/share/koha/lib/C4/Languages.pm line 178. [Thu Sep 25 17:28:22 2008] [error] [client 63.230.9.45] [Thu Sep 25 17:28:22 2008] install.pl: DBD::mysql::db selectrow_array failed: Table 'koha.systempreferences' doesn't exist at /usr/share/koha/lib/C4/Context.pm line 479.
This seems to be owed to the fact that you donot have any database structure in your database consider loading /installer/data/mysql/kohastructure.sql in your koha database. For zebra problem, feel free to mail your edited koha-conf.xml. We cannot guess where "include" is in your koha-conf.xml -- Henri-Damien LAURENT
Thomas Sewell a écrit :
I've been struggling to get Koha 3.0 installed on FreeBSD 7.0. I know, a glutton for punishment, right?
After wading through the installation process (including installing additional cpan modules and rewriting the installed sample koha-conf.xml and koha-httpd.conf files to use the right file paths, since the installer didn't seem to configure them based on what the makefile used), I've finally run into an issue that I can't find enough information to solve.
My understanding is that the web installer is supposed to install the tables into the database. At least, there is nothing in the koha database at this point.
When going to http://intranet.example.net:8000/cgi-bin/koha/installer/install.pl I get the following html message:
production mode - trapped fatal error
And the following lines in koha-error_log:
[Thu Sep 25 17:28:22 2008] [error] [client 63.230.9.45] [Thu Sep 25 17:28:22 2008] install.pl: DBD::mysql::st execute failed: Table 'koha.language_subtag_registry' doesn't exist at /usr/share/koha/lib/C4/Languages.pm line 178. [Thu Sep 25 17:28:22 2008] [error] [client 63.230.9.45] [Thu Sep 25 17:28:22 2008] install.pl: DBD::mysql::db selectrow_array failed: Table 'koha.systempreferences' doesn't exist at /usr/share/koha/lib/C4/Context.pm line 479.
This seems to be owed to the fact that you donot have any database structure in your database consider loading /installer/data/mysql/kohastructure.sql in your koha database. Those errors are actually harmless, except for the 'production mode -
On Fri, Sep 26, 2008 at 4:46 AM, Henri-Damien LAURENT <laurenthdl@alinto.com> wrote: trapped fatal error' one. Loading kohastructure.sql manually will just confuse the web installer. I've gotten that production mode error myself when I had the wrong CGI::Session libraries installed. You may need to install CGI::Session::yaml Hope that helps. Cheers, -- Joshua Ferraro SUPPORT FOR OPEN-SOURCE SOFTWARE CEO migration, training, maintenance, support LibLime Featuring Koha Open-Source ILS jmf@liblime.com |Full Demos at http://liblime.com/koha |1(888)KohaILS
Joshua Ferraro Wrote:
This seems to be owed to the fact that you donot have any database structure in your database consider loading /installer/data/mysql/kohastructure.sql in your koha database. Those errors are actually harmless, except for the 'production mode - trapped fatal error' one. Loading kohastructure.sql manually will just confuse the web installer. I've gotten that production mode error myself when I had the wrong CGI::Session libraries installed. You may need to install CGI::Session::yaml
Thanks for your help. Installing DATA-UUID and CGI-Session-YAML, then Manually downloading and installing http://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/CGI-Session-Serialize-ya ml-4.21.tgz solved the "production mode - trapped fatal error" problem for me. I've decided to avoid zebra for now and just get the basic system working. Thanks, Thomas
Thomas Sewell-2 wrote:
Those errors are actually harmless, except for the 'production mode - trapped fatal error' one. Loading kohastructure.sql manually will just confuse the web installer. I've gotten that production mode error myself when I had the wrong CGI::Session libraries installed. You may need to install CGI::Session::yaml Installing DATA-UUID and CGI-Session-YAML, then Manually downloading and installing http://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/CGI-Session-Serialize-ya ml-4.21.tgz solved the "production mode - trapped fatal error" problem for me.
I had the same problem: "production mode - trapped fatal error" when trying to initialize Koha, and this line in the error file: install.pl: DBD::mysql::st execute failed: Table 'koha.language_subtag_registry' doesn't exist at /usr/share/koha/lib/C4/Languages.pm line 178. But to get mine to work I didn't need CGI::Session::YAML. So for newer Linux users (like me) here's how I fixed mine step-by-step on Ubuntu 8.04: $ sudo su # perl -MCPAN -e 'install CGI::Session' # cd /build # wget http://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/CGI-Session-Serialize-ya... # tar -xzvf CGI-Session-Serialize-yaml-4.21.tgz # cd CGI-Session-Serialize-yaml-4.21 # perl Makefile.PL # make # make test # make install $ exit Then restart Apache. For Ubuntu that's: $ sudo /etc/init.d/apache2 restart ...Andy Giesler -- View this message in context: http://www.nabble.com/Installing-3.0-on-FreeBSD---Web-Installer-Errors-tp196... Sent from the Koha - Dev mailing list archive at Nabble.com.
participants (4)
-
Andy Giesler -
Henri-Damien LAURENT -
Joshua Ferraro -
Thomas Sewell