Koha Indexing Problem 18.05.01

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Koha Indexing Problem 18.05.01

Hirak 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

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: [hidden email] <[hidden email]>*
*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
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha
Reply | Threaded
Open this post in threaded view
|

Re: Koha Indexing Problem 18.05.01

Michael Kuhn
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
T 0041 (0)61 261 55 61 · E [hidden email] · W www.adminkuhn.ch




Am 22.07.2018 um 17:37 schrieb 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
>
> 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: [hidden email] <[hidden email]>*
> *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
> [hidden email]
> https://lists.katipo.co.nz/mailman/listinfo/koha
>


_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha
Reply | Threaded
Open this post in threaded view
|

Re: Koha Indexing Problem 18.05.01

Magnus Enger
On Sun, 22 Jul 2018 at 18:21, Michael Kuhn <[hidden email]> wrote:
...

> 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.

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
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha
Reply | Threaded
Open this post in threaded view
|

Re: Koha Indexing Problem 18.05.01

Michael Kuhn
Hi Magnus

 >> 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.
 >
 > 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?

 > 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 [hidden email] · W www.adminkuhn.ch
_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha
Reply | Threaded
Open this post in threaded view
|

Re: Koha Indexing Problem 18.05.01

Magnus Enger
On Sun, 22 Jul 2018 at 19:24, Michael Kuhn <[hidden email]> wrote:
>  > 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.

> However, do I understand right that
>
> * "-f" and "-f -a -b" are doing the same thing (i. e. full indexing of
> everything)

Yes.

> * 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
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha