Hie,

There is one problem with multi instances that you maybe didn't notice :

The environment variables KOHA_CONF and PERL5LIB are the same for each instance
(they are redefined in cronjobs and apache conf).
They are mandatory for lauching perl scripts manually.

I think that's why rebuild_zebra doesn't work, it uses the original instance.

My solution is to use symbolic links to the currently used instance :
for example, I have 2 instance :
/usr/share/kohaA/ and /etc/kohaA
/usr/share/kohaB/ and /etc/kohaB

Create symbolic links :
ln -s /usr/share/kohaA /usr/share/koha_current
ln -s /etc/kohaA /etc/koha_current


And (re)define env vars :
PERL5LIB="/usr/share/koha_current/lib"
KOHA_CONF="/etc/koha_current"


Now, when you whan to work manually on a instance, be sure that symbolic links uses the correct instance.
(You may create a bash to manager that)

Regards,

PS : there might be a solution in creating a user per instance that has env vars in his bashrc.

On Mon, Apr 11, 2011 at 8:22 PM, Linda Culberson <lculber@mdah.state.ms.us> wrote:
All,
We created a second instance of Koha using the instructions at http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha
We dumped the data from our original instance and then reloaded it into the koha_test instance.  We have tried to reindex several time by using  rebuild_zebra.pl in koha_test
/var/log/koha_test/koha-zebradaemon-output.log and  koha-zebradaemon.err are both empty

The error in koha-opac-error_log is
HTML::Template::Pro:in TMPL_LOOP at pos 416:
 PARAM:LOOP:next_loop(0): callback returned null scope


I think it was our install that had a problem because in koha-error_log
I see for the date of the install:
Thu Apr 07 15:04:37 2011] [error] [client X.X.X.X] [Thu Apr  7 15:04:37 2011] install.pl: C4::Installer::load_sql returned the following errors while attempting to load /usr/share/koha_test/intranet/cgi-bin/installer/data/mysql/en/mandatory/sysprefs.sql:, referer: http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl
[Thu Apr 07 15:04:37 2011] [error] [client X.X.X.X] [Thu Apr  7 15:04:37 2011] install.pl: Warning: something's wrong at /usr/share/koha_test/lib/C4/Installer.pm line 530., referer: http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl
[Thu Apr 07 15:04:38 2011] [error] [client X.X.X.X] [Thu Apr  7 15:04:38 2011] install.pl: C4::Installer::load_sql returned the following errors while attempting to load /usr/share/koha_test/intranet/cgi-bin/installer/data/mysql/en/mandatory/userflags.sql:, referer: http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl
[Thu Apr 07 15:04:38 2011] [error] [client X.X.X.X] [Thu Apr  7 15:04:38 2011] install.pl: Warning: something's wrong at /usr/share/koha_test/lib/C4/Installer.pm line 530., referer: http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl
[Thu Apr 07 15:04:38 2011] [error] [client X.X.X.X] [Thu Apr  7 15:04:38 2011] install.pl: C4::Installer::load_sql returned the following errors while attempting to load /usr/share/koha_test/intranet/cgi-bin/installer/data/mysql/en/mandatory/userpermissions.sql:, referer: http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl

Any insight/help would be appreciated.

--
Linda Culberson                 lculber@mdah.state.ms.us
Archives and Records Services Division
Ms. Dept. of Archives & History
P. O. Box 571
Jackson, MS 39205-0571
Telephone:  601/576-6873
Facsimile:  601/576-6824

_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/



--
Fridolyn SOMERS
ICT engineer
PROGILONE - Lyon - France
fridolyn.somers@gmail.com