Bug 19101

Summary: Zebra rebuild error
Product: Koha Reporter: Claudio Costales <costalc>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: critical    
Priority: P3 CC: josef.moravec, m.de.rooy, mtj
Version: 17.05   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18927
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Claudio Costales 2017-08-14 18:21:58 UTC
I updated Koha from 16.11.06 to 17.05.02. All run smoothly, as always, but Zebra seems not to work well. New items added are missing in the Intranet search results. Also any change in items (i.e. itemlost, notforloan) is missing too. But they can be loan or viewed in the detail view of each one. OPAC seems OK.

Other impact: to change authorities in biblios (i.e. personal name) does not update authority table.

I tried to rebuild the catalog: koha-rebuild-zebra -f -v INSTANCENAME but echoed this msg:

.error retrieving biblio 1 at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line 751.
Comment 1 Josef Moravec 2017-08-16 17:09:52 UTC
(In reply to Claudio from comment #0)
> I updated Koha from 16.11.06 to 17.05.02. All run smoothly, as always, but
> Zebra seems not to work well. New items added are missing in the Intranet
> search results. Also any change in items (i.e. itemlost, notforloan) is
> missing too. But they can be loan or viewed in the detail view of each one.
> OPAC seems OK.
> 
> Other impact: to change authorities in biblios (i.e. personal name) does not
> update authority table.
> 
> I tried to rebuild the catalog: koha-rebuild-zebra -f -v INSTANCENAME but
> echoed this msg:
> 
> .error retrieving biblio 1 at
> /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line
> 751.

Have you seen any error message during up upgrade? Especially in database update process?

Could it be related to changes made in bug 17196? Could you check your db for this changes?
Comment 2 Claudio Costales 2017-08-16 17:23:59 UTC
(In reply to Josef Moravec from comment #1)
> (In reply to Claudio from comment #0)
> > I updated Koha from 16.11.06 to 17.05.02. All run smoothly, as always, but
> > Zebra seems not to work well. New items added are missing in the Intranet
> > search results. Also any change in items (i.e. itemlost, notforloan) is
> > missing too. But they can be loan or viewed in the detail view of each one.
> > OPAC seems OK.
> > 
> > Other impact: to change authorities in biblios (i.e. personal name) does not
> > update authority table.
> > 
> > I tried to rebuild the catalog: koha-rebuild-zebra -f -v INSTANCENAME but
> > echoed this msg:
> > 
> > .error retrieving biblio 1 at
> > /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 683, <DATA> line
> > 751.
> 
> Have you seen any error message during up upgrade? Especially in database
> update process?
> 
> Could it be related to changes made in bug 17196? Could you check your db
> for this changes?

Hi Josef!

I didn't notice any problem during update process and the new table biblio_metadata seems to work fine: reports run OK, MARC tags are shown OK in search results, etc.

Appart from this, I made a full database backup and import it into a local Koha  installation (17.5.2). Then I run zebra indexer and works fine. All data that were missing or not visible now appear normally.
Comment 3 Claudio Costales 2017-08-16 17:31:35 UTC
Josef,

I have made another test.

When I log into de instance shell (koha-shell INSTANCE) zebra-rebuild runs OK if I select authority only (-a) and fails if I select biblio parameter only (-b)
Comment 4 Claudio Costales 2017-08-17 12:34:25 UTC
Josef,

Please look at #18927
Comment 5 Claudio Costales 2017-08-18 14:34:04 UTC
The solution described in bug #18927 fixed de problem.
Comment 6 Katrin Fischer 2017-08-18 15:25:52 UTC

*** This bug has been marked as a duplicate of bug 18927 ***