There was recently a change to apply deletes after updates in rebuild_zebra. It sounds like this may be the inverse of the corruption that running deletes before updates caused. I think probably what needs to happen is that rebuild_zebra should extract the MARC in some sort of try{} block (the Perl equivalent, I mean). I'm not entirely sure how to do that, but that's what I think needs to be done.<div>
<br></div><div>Regards,</div><div>Jared<br><br><div class="gmail_quote">On Sat, May 21, 2011 at 3:22 PM, Bob Ewart <span dir="ltr"><<a href="mailto:bob-ewart@bobsown.com">bob-ewart@bobsown.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 05/20/2011 08:59 AM, Bob Ewart wrote:<br>
> On 05/20/2011 06:04 AM, MJ Ray wrote:<br>
>> Bob Ewart wrote:<br>
>>> I'm getting:<br>
>>>> Subject: Cron<koha@windingcircle> /usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> -b -a -z>/dev/null<br>
>>>><br>
>>>> Can't call method "field" on an undefined value at /usr/share/koha/lib/C4/Biblio.pm line 359.<br>
>>><br>
>>> every 10 minutes when the cron job is run.<br>
>>><br>
>>> The index is not being updated.<br>
>>><br>
>>> Any ideas as to how to fix this?<br>
>><br>
>> Run it from the command line with -v too (I think that's the option -<br>
>> check on the output from "<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> -h" ). It sounds like a<br>
>> broken MARC record that has slipped in somewhere :-(<br>
>><br>
>> If it works from the command-line, it may be environment or<br>
>> permissions for cron need changing somehow, which would need you to<br>
>> post your current crontab.<br>
>><br>
>> Good luck!<br>
><br>
> Thanks.<br>
><br>
> The -v option gave me:<br>
>> Zebra configuration information<br>
>> ================================<br>
>> Zebra biblio directory = /var/lib/koha/zebradb/biblios<br>
>> Zebra authorities directory = /var/lib/koha/zebradb/authorities<br>
>> Koha directory = /usr/share/koha/intranet/cgi-bin<br>
>> BIBLIONUMBER in : 999$c<br>
>> BIBLIOITEMNUMBER in : 999$d<br>
>> ================================<br>
>> ====================<br>
>> exporting authority<br>
>> ====================<br>
>><br>
>> Records exported: 0<br>
>><br>
>> Records exported: 0<br>
>> ====================<br>
>> REINDEXING zebra<br>
>> ====================<br>
>> ====================<br>
>> exporting biblio<br>
>> ====================<br>
>><br>
>> Records exported: 0<br>
>> 1.......Can't call method "field" on an undefined value at /usr/share/koha/lib/C4/Biblio.pm line 359.<br>
><br>
> I did a '<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> -a -b -r' from the command line (as the koha<br>
> user) and it cleared the problem.<br>
><br>
> I'm wondering if deleting an item and biblio could have caused the<br>
> problem. I was cataloging a bunch of books and one slipped in that<br>
> shouldn't have been. I deleted it just before the problem started. I'm<br>
> not sure whether rebuild_zebra ran between the time I added the book and<br>
> when I deleted it.<br>
><br>
> I will have to try some experiments later today.<br>
><br>
</div></div>On second thought, I couldn't delete the book until rebuild_zebra had<br>
run once.<br>
<br>
When I added another book and deleted it after it showed up, the error<br>
occurred again.<br>
<br>
Bug 6384 has been added.<br>
<div><div></div><div class="h5"><br>
--<br>
Bob<br>
<br>
_______________________________________________<br>
Koha mailing list <a href="http://koha-community.org" target="_blank">http://koha-community.org</a><br>
<a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jared Camins-Esakov<div>Freelance bibliographer, C & P Bibliography Services, LLC</div><div>(phone) +1 (917) 727-3445</div><div>(e-mail) <a href="mailto:jcamins@cpbibliography.com" target="_blank">jcamins@cpbibliography.com</a></div>
<div>(web) <a href="http://www.cpbibliography.com/" target="_blank">http://www.cpbibliography.com/</a></div><br>
</div>