unable to locate koha-conf.xml
Hello, I have installed Koha 3.10 and migrated to 3.14 on ubuntu.( by using packages) when I try to re-index, I am getting the following error. root@gechlibrary:/usr/share/koha/bin/migration_tools# ./rebuild_zebra.pl-run-as-root -b -r -a unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 372. Can you please help me for fixing this error ? rebuild zebra command throws following message: koha-rebuild-zebra -v -f gechlibrary Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/gechlibrary/biblios Zebra authorities directory = /var/lib/koha/gechlibrary/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ skipping authorities ==================== exporting biblio ==================== 301.................................................................................................... Records exported: 349 ==================== REINDEXING zebra ==================== ==================== CLEANING ==================== Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/gechlibrary/biblios Zebra authorities directory = /var/lib/koha/gechlibrary/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ ==================== exporting authority ==================== Records exported: 0 ==================== REINDEXING zebra ================Can you help me for fixing this error ? ==== skipping biblios ==================== CLEANING ==================== with thanks Satish MV Librarian Govt. Engineering College, Hassan Karnataka. --
hi satish, have a look at this reindexing steps: 1)switch to user "koha" (owner of koha source code/config files) 2)export KOHA_CONF=/koha-dev/etc/koha-conf.xml 3)export PERL5LIB=/koha/kohaclone(src code) 4)perl misc/migration_tools/rebuild_zerbra.pl -b -r -v -x (for full reindex) hope this helps you........ On Tue, Mar 18, 2014 at 1:00 PM, SATISH <lis4satish@gmail.com> wrote:
Hello,
I have installed Koha 3.10 and migrated to 3.14 on ubuntu.( by using packages) when I try to re-index, I am getting the following error.
root@gechlibrary:/usr/share/koha/bin/migration_tools# ./rebuild_zebra.pl-run-as-root -b -r -a unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 372.
Can you please help me for fixing this error ?
rebuild zebra command throws following message:
koha-rebuild-zebra -v -f gechlibrary Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/gechlibrary/biblios Zebra authorities directory = /var/lib/koha/gechlibrary/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ skipping authorities ==================== exporting biblio ====================
301.................................................................................................... Records exported: 349 ==================== REINDEXING zebra ==================== ==================== CLEANING ==================== Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/gechlibrary/biblios Zebra authorities directory = /var/lib/koha/gechlibrary/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ ==================== exporting authority ====================
Records exported: 0 ==================== REINDEXING zebra ================Can you help me for fixing this error ? ==== skipping biblios ==================== CLEANING ====================
with thanks Satish MV Librarian Govt. Engineering College, Hassan Karnataka.
-- _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Regards, Vishal Patil Landline number:02232080161 E-Mail: *vishal_wpatil@nucsoft.co.in <vishal_wpatil@nucsoft.co.in>* *vishal.patil@osslabs.biz <vishal.patil@osslabs.biz>.*
Hi, On Tue, Mar 18, 2014 at 1:13 PM, vishal patil <vishal.patil@osslabs.biz> wrote:
hi satish,
have a look at this reindexing steps:
1)switch to user "koha" (owner of koha source code/config files) 2)export KOHA_CONF=/koha-dev/etc/koha-conf.xml 3)export PERL5LIB=/koha/kohaclone(src code) 4)perl misc/migration_tools/rebuild_zerbra.pl -b -r -v -x (for full reindex)
@Vishal, Satish has mentioned that he has installed from 'packages', so it is highly unlikely that he will find anything at the locations your have mentioned which may have been accurate if he had installed via git. Of course, if you are aware of any specific peculiarities of Satish's installation, then your instructions might be entirely correct. :-) @Satish: if you have installed from ubuntu packages, the location of koha-conf.xml is /etc/koha/sites/<name_of_your_actual_instance> NOTE: <name_of_your_actual_instance> is whatever you had created using koha-create --create-db <instance_name> when you had started out. hope that helps, -indra
hope this helps you........
On Tue, Mar 18, 2014 at 1:00 PM, SATISH <lis4satish@gmail.com> wrote:
Hello,
I have installed Koha 3.10 and migrated to 3.14 on ubuntu.( by using packages) when I try to re-index, I am getting the following error.
root@gechlibrary:/usr/share/koha/bin/migration_tools# ./rebuild_zebra.pl-run-as-root -b -r -a unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 372.
Can you please help me for fixing this error ?
rebuild zebra command throws following message:
koha-rebuild-zebra -v -f gechlibrary Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/gechlibrary/biblios Zebra authorities directory = /var/lib/koha/gechlibrary/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ skipping authorities ==================== exporting biblio ====================
301.................................................................................................... Records exported: 349 ==================== REINDEXING zebra ==================== ==================== CLEANING ==================== Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/gechlibrary/biblios Zebra authorities directory = /var/lib/koha/gechlibrary/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ ==================== exporting authority ====================
Records exported: 0 ==================== REINDEXING zebra ================Can you help me for fixing this error ? ==== skipping biblios ==================== CLEANING ====================
with thanks Satish MV Librarian Govt. Engineering College, Hassan Karnataka.
-- _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Regards, Vishal Patil Landline number:02232080161 E-Mail: *vishal_wpatil@nucsoft.co.in <vishal_wpatil@nucsoft.co.in>* *vishal.patil@osslabs.biz <vishal.patil@osslabs.biz>.* _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Indranil Das Gupta Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
SATISH schreef op di 18-03-2014 om 13:00 [+0530]:
root@gechlibrary:/usr/share/koha/bin/migration_tools# ./rebuild_zebra.pl-run-as-root -b -r -a unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 372.
Can you please help me for fixing this error ?
The packages provide commands to set everything up for you, you are best using them instead. Also, never run things like reindexing as root as you are likely to mess up the permissions and cause everything to break. The exception being using the proper package tools, as they make sure it's OK. For example, to rebuild your zebra index, you might do: sudo koha-rebuild-zebra --full -v instancename You shouldn't be calling rebuild_zebra.pl directly. A list of all commands is here: http://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_packages -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
SATISH schreef op di 18-03-2014 om 13:00 [+0530]:
root@gechlibrary:/usr/share/koha/bin/migration_tools# ./rebuild_zebra.pl-run-as-root -b -r -a
This is an illustration of what happens when you attempt to reindex zebra with root permissions: http://kohadevreactions.tumblr.com/post/63903766549/ok-now-lets-try-to-run-r... -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
Hello Sir, @Indranil: Thank you, as you indicated, koha-conf.xml is traceable at /etc/koha/sites/<instance name>/koha-conf.xml. My actual problem is: Firstly I added one RECORD with 3 items along with Dewey Number. Later I added 10 items to the same RECORD, after adding many such records in to the koha db, Next I tried to run, sudo koha-rebuild-zebra --full -v instancename Still, I can not see, Dewey number is not reflecting for 10 items which are added later to the same record. Next I tried for ./rebuild_zebra.pl -run-as-root -b -r -a and got following error: unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 372. ( for this I got answer from Mr. Indranil) and other sources, redirected me to copy and paste the koha-conf.xml file from /etc/koha/sites/<Instance Name>/koha-conf.xml to /etc/koha/ directory. Please advice me what might be causing this? since everything is being done by packages? click here to view my problem: (click here) History: Installed koha 3.10 on Ubuntu 12.04.3 LTS (GNU/Linux 3.5.0-47-generic i686) via packages method and later upgraded to 3.14.
Hello Sir, @Indranil: Thank you, as you indicated, koha-conf.xml is traceable at /etc/koha/sites/<instance name>/koha-conf.xml. My actual problem is: Firstly I added one RECORD with 3 items along with Dewey Number. Later I added 10 items to the same RECORD, after adding many such records in to the koha db, Next I tried to run, sudo koha-rebuild-zebra --full -v instancename Still, I can not see, Dewey number is not reflecting for 10 items which are added later to the same record. Next I tried for ./rebuild_zebra.pl -run-as-root -b -r -a and got following error: unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 372. ( for this I got answer from Mr. Indranil) and other sources, redirected me to copy and paste the koha-conf.xml file from /etc/koha/sites/<Instance Name>/koha-conf.xml to /etc/koha/ directory. Please advice me what might be causing this? since everything is being done by packages? click here to view my problem: (click here<https://lh4.googleusercontent.com/0cKAceMgoyZqj84BOvME2lTM4v0Yocqz49qj8kvBEyg=w234-h207-p-no> ) History: Installed koha 3.10 on Ubuntu 12.04.3 LTS (GNU/Linux 3.5.0-47-generic i686) via packages method and later upgraded to 3.14. With Thanks Satish
participants (4)
-
Indranil Das Gupta -
Robin Sheat -
SATISH -
vishal patil