Hie,<br><br>There is one problem with multi instances that you maybe didn&#39;t notice :<br><br>The environment variables <b>KOHA_CONF</b> and <b>PERL5LIB</b> are the same for each instance<br>(they are redefined in cronjobs and apache conf).<br>

They are mandatory for lauching perl scripts manually.<br><br>I think that&#39;s why rebuild_zebra doesn&#39;t work, it uses the original instance.<br><br>My solution is to use symbolic links to the currently used instance : <br>

for example, I have 2 instance : <br><i>/usr/share/kohaA/ and /etc/kohaA<br>/usr/share/kohaB/ and /etc/kohaB<br></i><br>Create symbolic links :<br><i>ln -s /usr/share/kohaA /usr/share/koha_current<br>ln -s /etc/kohaA /etc/koha_current</i><br>

<br>And (re)define env vars :<br><i>PERL5LIB=&quot;/usr/share/koha_current/lib&quot;<br>
KOHA_CONF=&quot;/etc/koha_current&quot;</i><br><br>Now, when you whan to work manually on a instance, be sure that symbolic links uses the correct instance.<br>(You may create a bash to manager that)<br><br>Regards,<br><br>

<font size="2">PS : there might be a solution in creating a user per instance that has env vars in his bashrc.</font><br><br><div class="gmail_quote">On Mon, Apr 11, 2011 at 8:22 PM, Linda Culberson <span dir="ltr">&lt;<a href="mailto:lculber@mdah.state.ms.us">lculber@mdah.state.ms.us</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">All,<br>
We created a second instance of Koha using the instructions at <a href="http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha" target="_blank">http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha</a><br>


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  <a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> in koha_test<br>


/var/log/koha_test/koha-zebradaemon-output.log and  koha-zebradaemon.err are both empty<br>
<br>
The error in koha-opac-error_log is<br>
HTML::Template::Pro:in TMPL_LOOP at pos 416:<br>
 PARAM:LOOP:next_loop(0): callback returned null scope<br>
<br>
<br>
I think it was our install that had a problem because in koha-error_log<br>
I see for the date of the install:<br>
Thu Apr 07 15:04:37 2011] [error] [client X.X.X.X] [Thu Apr  7 15:04:37 2011] <a href="http://install.pl" target="_blank">install.pl</a>: 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: <a href="http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl" target="_blank">http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl</a><br>


[Thu Apr 07 15:04:37 2011] [error] [client X.X.X.X] [Thu Apr  7 15:04:37 2011] <a href="http://install.pl" target="_blank">install.pl</a>: Warning: something&#39;s wrong at /usr/share/koha_test/lib/C4/Installer.pm line 530., referer: <a href="http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl" target="_blank">http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl</a><br>


[Thu Apr 07 15:04:38 2011] [error] [client X.X.X.X] [Thu Apr  7 15:04:38 2011] <a href="http://install.pl" target="_blank">install.pl</a>: 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: <a href="http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl" target="_blank">http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl</a><br>


[Thu Apr 07 15:04:38 2011] [error] [client X.X.X.X] [Thu Apr  7 15:04:38 2011] <a href="http://install.pl" target="_blank">install.pl</a>: Warning: something&#39;s wrong at /usr/share/koha_test/lib/C4/Installer.pm line 530., referer: <a href="http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl" target="_blank">http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl</a><br>


[Thu Apr 07 15:04:38 2011] [error] [client X.X.X.X] [Thu Apr  7 15:04:38 2011] <a href="http://install.pl" target="_blank">install.pl</a>: 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: <a href="http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl" target="_blank">http://koha_test.mdah.state.ms.us:8080/cgi-bin/koha/installer/install.pl</a><br>


<br>
Any insight/help would be appreciated.<br>
<br>
-- <br>
Linda Culberson                 <a href="mailto:lculber@mdah.state.ms.us" target="_blank">lculber@mdah.state.ms.us</a><br>
Archives and Records Services Division<br>
Ms. Dept. of Archives &amp; History<br>
P. O. Box 571<br>
Jackson, MS 39205-0571<br>
Telephone:  <a href="tel:601%2F576-6873" value="+16015766873" target="_blank">601/576-6873</a><br>
Facsimile:  <a href="tel:601%2F576-6824" value="+16015766824" target="_blank">601/576-6824</a><br>
<br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Fridolyn SOMERS<br>ICT engineer<br>PROGILONE - Lyon - France<br><a href="mailto:fridolyn.somers@gmail.com" target="_blank">fridolyn.somers@gmail.com</a><br>