Fix Error : Can't locate Koha/Exceptions/DuplicateObject.pm while rebuilding the zebra database


Got following error while rebuilding the zebra database:

root@mahesh-server:~# sudo koha-rebuild-zebra -v -f library
Can't locate Koha/Exceptions/DuplicateObject.pm:   ./Koha/Exceptions/DuplicateObject.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 26) line 3.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Exceptions.pm line 70.
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 104.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Context.pm line 104.
Compilation failed in require at /usr/share/koha/lib/Koha/Script.pm line 38.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Script.pm line 38.
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/DuplicateObject.pm:   ./Koha/Exceptions/DuplicateObject.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 25) line 3.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Exceptions.pm line 70.
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 104.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Context.pm line 104.
Compilation failed in require at /usr/share/koha/lib/Koha/Script.pm line 38.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Script.pm line 38.
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


Try this solution by running the command below:

cd /tmp && /usr/sbin/koha-rebuild-zebra -f -v library  (where library is the koha instance).

0 Komentar