Discussion:
[Koha] Koha Indexing Problem 18.05.01
Hirak Jyoti Hazarika
2018-07-22 15:37:28 UTC
Permalink
I have install Koha on Ubuntu 16.04 Version with Koha Ubuntu Package.

When I try to put *sudo su*
*koha-rebuild-zebra -f -a -b -v library*

The result is showing blow error . kindly help me for the same

Can't locate Koha/Exceptions/Exception.pm:
./Koha/Exceptions/Exception.pm: Permission denied at /usr/share/perl/5.22/
base.pm line 97.
...propagated at /usr/share/perl/5.22/base.pm line 106.
BEGIN failed--compilation aborted at (eval 14) line 3.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Exceptions.pm
line 56.
Compilation failed in require at /usr/share/koha/lib/Koha/DateUtils.pm line
22.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/DateUtils.pm
line 22.
Compilation failed in require at /usr/share/koha/lib/C4/Log.pm line 30.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Log.pm line 30.
Compilation failed in require at /usr/share/koha/lib/Koha/Config/SysPref.pm
line 26.
BEGIN failed--compilation aborted at
/usr/share/koha/lib/Koha/Config/SysPref.pm line 26.
Compilation failed in require at /usr/share/koha/lib/C4/Context.pm line 105.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Context.pm line
105.
Compilation failed in require at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 20.
Something went wrong rebuilding biblio indexes for library
Can't locate Koha/Exceptions/Exception.pm:
./Koha/Exceptions/Exception.pm: Permission denied at /usr/share/perl/5.22/
base.pm line 97.
...propagated at /usr/share/perl/5.22/base.pm line 106.
BEGIN failed--compilation aborted at (eval 14) line 3.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Exceptions.pm
line 56.
Compilation failed in require at /usr/share/koha/lib/Koha/DateUtils.pm line
22.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/DateUtils.pm
line 22.
Compilation failed in require at /usr/share/koha/lib/C4/Log.pm line 30.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Log.pm line 30.
Compilation failed in require at /usr/share/koha/lib/Koha/Config/SysPref.pm
line 26.
BEGIN failed--compilation aborted at
/usr/share/koha/lib/Koha/Config/SysPref.pm line 26.
Compilation failed in require at /usr/share/koha/lib/C4/Context.pm line 105.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Context.pm line
105.
Compilation failed in require at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 20.
Something went wrong rebuilding authority indexes for library


* <http://b2h2.co.in/>With Regards *

*Hirak Jyoti Hazarika *
*Research Scholar*
*North Eastern Hill University*
*Shillong- 22*
*Phone No: 09706244757/ 9531064586*
*E-mail: ***@gmail.com <***@gmail.com>*
*Webpage: *
My ORCID iD is 0000-0002-0023-7097 <http://orcid.org/0000-0002-0023-7097>
*You don't need violence to shake the world - Use Open Source Software !*
Michael Kuhn
2018-07-22 16:19:45 UTC
Permalink
Hi Hirak

Since you seem to experience some permissions problem try it with the
following command as recommended in the documentation. As your
unprivileged Linux user you execute:

$ sudo koha-rebuild-zebra -f -v library

Note this is not the same as:

$ sudo su
# koha-rebuild-zebra -f -a -b -v library

In fact I don't know anyway what happens if you use "-f -a -b" since
"-f" means the same as "-a -b". From "man koha-rebuild-zebra":

-f, --full
Does a reindex of the whole collection.

-a, --authorities
Only run the indexing process for authority records.

-b, --biblios
Only run the indexing process for biblio records.

-v, --verbose
Be verbose. Useful for debugging indexing problems.

Hope this helps.

Best wishes: Michael
--
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
Post by Hirak Jyoti Hazarika
I have install Koha on Ubuntu 16.04 Version with Koha Ubuntu Package.
When I try to put *sudo su*
*koha-rebuild-zebra -f -a -b -v library*
The result is showing blow error . kindly help me for the same
./Koha/Exceptions/Exception.pm: Permission denied at /usr/share/perl/5.22/
base.pm line 97.
...propagated at /usr/share/perl/5.22/base.pm line 106.
BEGIN failed--compilation aborted at (eval 14) line 3.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Exceptions.pm
line 56.
Compilation failed in require at /usr/share/koha/lib/Koha/DateUtils.pm line
22.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/DateUtils.pm
line 22.
Compilation failed in require at /usr/share/koha/lib/C4/Log.pm line 30.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Log.pm line 30.
Compilation failed in require at /usr/share/koha/lib/Koha/Config/SysPref.pm
line 26.
BEGIN failed--compilation aborted at
/usr/share/koha/lib/Koha/Config/SysPref.pm line 26.
Compilation failed in require at /usr/share/koha/lib/C4/Context.pm line 105.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Context.pm line
105.
Compilation failed in require at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 20.
Something went wrong rebuilding biblio indexes for library
./Koha/Exceptions/Exception.pm: Permission denied at /usr/share/perl/5.22/
base.pm line 97.
...propagated at /usr/share/perl/5.22/base.pm line 106.
BEGIN failed--compilation aborted at (eval 14) line 3.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Exceptions.pm
line 56.
Compilation failed in require at /usr/share/koha/lib/Koha/DateUtils.pm line
22.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/DateUtils.pm
line 22.
Compilation failed in require at /usr/share/koha/lib/C4/Log.pm line 30.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Log.pm line 30.
Compilation failed in require at /usr/share/koha/lib/Koha/Config/SysPref.pm
line 26.
BEGIN failed--compilation aborted at
/usr/share/koha/lib/Koha/Config/SysPref.pm line 26.
Compilation failed in require at /usr/share/koha/lib/C4/Context.pm line 105.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Context.pm line
105.
Compilation failed in require at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 20.
Something went wrong rebuilding authority indexes for library
* <http://b2h2.co.in/>With Regards *
*Hirak Jyoti Hazarika *
*Research Scholar*
*North Eastern Hill University*
*Shillong- 22*
*Phone No: 09706244757/ 9531064586*
*Webpage: *
My ORCID iD is 0000-0002-0023-7097 <http://orcid.org/0000-0002-0023-7097>
*You don't need violence to shake the world - Use Open Source Software !*
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://li
Magnus Enger
2018-07-22 17:06:32 UTC
Permalink
On Sun, 22 Jul 2018 at 18:21, Michael Kuhn <***@adminkuhn.ch> wrote:
...
Post by Michael Kuhn
In fact I don't know anyway what happens if you use "-f -a -b" since
-f, --full
Does a reindex of the whole collection.
-a, --authorities
Only run the indexing process for authority records.
-b, --biblios
Only run the indexing process for biblio records.
Not quite. The default behaviour of koha-rebuild-zebra is to only
index the records in the zebraqueue db table that have been marked as
"not done". These are typically records that have been added ot
updated since the last time koha-rebuild-zebra was run. When you add
--full or -f you do a complete reindexing of everything in the
database, regardless of the status in zebraqueue. -a and -b will
determine if this applies to bibliographic records, authority records
or both.

Best regards,
Magnus
Libriotech
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz/m
Michael Kuhn
2018-07-22 17:23:09 UTC
Permalink
Hi Magnus
Post by Magnus Enger
Post by Michael Kuhn
In fact I don't know anyway what happens if you use "-f -a -b" since
-f, --full
Does a reindex of the whole collection.
-a, --authorities
Only run the indexing process for authority records.
-b, --biblios
Only run the indexing process for biblio records.
Not quite. The default behaviour of koha-rebuild-zebra is to only
index the records in the zebraqueue db table that have been marked as
"not done". These are typically records that have been added ot
updated since the last time koha-rebuild-zebra was run.
Shouldn't this be noted in the manpage?
Post by Magnus Enger
When you add
--full or -f you do a complete reindexing of everything in the
database, regardless of the status in zebraqueue. -a and -b will
determine if this applies to bibliographic records, authority records
or both.
However, do I understand right that

* "-f" and "-f -a -b" are doing the same thing (i. e. full indexing of
everything)

* but "-a -b" is not (i. e. because it is only indexing what is marked
as as "not done")?

Best wishes: Michael
--
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E ***@adminkuhn.ch · W www.adminkuhn.ch
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/
Magnus Enger
2018-07-25 07:32:24 UTC
Permalink
Post by Michael Kuhn
Post by Magnus Enger
Not quite. The default behaviour of koha-rebuild-zebra is to only
index the records in the zebraqueue db table that have been marked as
"not done". These are typically records that have been added ot
updated since the last time koha-rebuild-zebra was run.
Shouldn't this be noted in the manpage?
It could be made more explicit, yes.
Post by Michael Kuhn
However, do I understand right that
* "-f" and "-f -a -b" are doing the same thing (i. e. full indexing of
everything)
Yes.
Post by Michael Kuhn
* but "-a -b" is not (i. e. because it is only indexing what is marked
as as "not done")?
If you do not use -f, that is the case, yes.

Best regards,
Magnus
Libriotech
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
htt

Loading...