[Koha-devel] 3.18 search speed

Paul A paul.a at navalmarinearchive.com
Tue Jan 6 23:49:00 CET 2015


At 11:33 AM 1/6/2015 +1300, Robin Sheat wrote:
>Paul A schreef op ma 05-01-2015 om 13:13 [-0500]:
> > However, I still want 3.18 if I can.
[snip some very helpful pointers -- thank you very much]
>Additionally, I've added a little bit to my in-development package docs
>that explain at a high level what a koha-create does:
>http://wiki.koha-community.org/wiki/Talk:Koha_on_Debian#How_koha-create_configures_your_system

Robin,

Many thanks for all your input.  I started all over again using your advice 
and the Wiki.  The only possible exception was from README.Debian (see 
/usr/sbin/koha-create for which variables to set) $ /usr/sbin/koha-create 
--help

So I tried to "populate" the instance with the correct db (mysql koha18 
belongs to 'koha' with all grants) and ran:

$ sudo /usr/sbin/koha-create --use-db --database dbname koha18 --adminuser koha

which ran and restarted apache2. It appears to have created a user 
koha18-koha (system, but not mysql where it's added a 'debian-sys-maint' 
user), and chowned to that user in multiple places (as far as I can see 
mostly root:koha18-koha.)

However, apache is returning for the OPAC:
Can't call method "config" on unblessed reference at 
/usr/share/koha/lib/C4/Context.pm line 779.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 84.
Compilation failed in require at 
/usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 23.
BEGIN failed--compilation aborted at 
/usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 23.

and for the staff site:
Can't call method "config" on unblessed reference at 
/usr/share/koha/lib/C4/Context.pm line 779.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 84.
Compilation failed in require at 
/usr/share/koha/intranet/cgi-bin/mainpage.pl line 25.
BEGIN failed--compilation aborted at 
/usr/share/koha/intranet/cgi-bin/mainpage.pl line 25.

perl -d -w is perhaps a bit more explicit:
unable to locate Koha configuration file koha-conf.xml at 
/usr/share/koha/lib/C4/Context.pm line 373.
  at /usr/share/koha/lib/C4/Context.pm line 373.
  C4::Context::new('C4::Context', undef) called at 
/usr/share/koha/lib/C4/Context.pm line 322
  C4::Context::import('C4::Context') called at 
/usr/share/koha/lib/C4/Auth.pm line 28
  C4::Auth::BEGIN() called at /usr/share/koha/lib/C4/Auth.pm line 28
  eval {...} called at /usr/share/koha/lib/C4/Auth.pm line 28
  require C4/Auth.pm called at ./opac-main.pl line 23
  main::BEGIN() called at /usr/share/koha/lib/C4/Auth.pm line 28
  eval {...} called at /usr/share/koha/lib/C4/Auth.pm line 28
unable to locate Koha configuration file koha-conf.xml at 
/usr/share/koha/lib/C4/Context.pm line 373.

There is only one copy of koha-conf.xml:
:/$ sudo find -iname koha-conf.xml
./etc/koha/sites/koha18/koha-conf.xml
:/$

Is that where it's supposed to be?

Thanks and best regards -- Paul 



More information about the Koha-devel mailing list