<div dir="ltr"><div>I don't know.  I don't use authorities either, and my Koha is set to "allow" authorities.  I'm not sure what side-effects changing that setting will have.</div><div>Related, it seems that your search engine (elasticsearch) doesn't have a database for authorities.  I thought the default was for it to have one, but I could be wrong about that.  You can try not allowing automatic authorities, or you can add a database for authorities.  I'd recommend the latter unless this isn't a production server.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 30, 2020 at 12:54 PM Stephen Graham <<a href="mailto:s.graham4@herts.ac.uk">s.graham4@herts.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB">
<div class="gmail-m_-8166759440434797793WordSection1">
<p class="MsoNormal"><span style="font-size:12pt">Thanks for the reply Michael. We did have the
</span><span class="gmail-m_-8166759440434797793term"><span style="font-size:12pt">BiblioAddsAuthorities sys pref set to allow. I changed to don’t allow, and now my script doesn’t generate the error. Hmmmmm…. We are not using authorities so I guess it’s OK  keep this set to “don’t allow”?<u></u><u></u></span></span></p>
<p class="MsoNormal"><span class="gmail-m_-8166759440434797793term"><span style="font-size:12pt"><u></u> <u></u></span></span></p>
<p class="MsoNormal"><span class="gmail-m_-8166759440434797793term"><span style="font-size:12pt">Stephen</span></span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Michael Hafen (TECH) <<a href="mailto:michael.hafen@washk12.org" target="_blank">michael.hafen@washk12.org</a>>
<br>
<b>Sent:</b> 30 July 2020 18:56<br>
<b>To:</b> Stephen Graham <<a href="mailto:s.graham4@herts.ac.uk" target="_blank">s.graham4@herts.ac.uk</a>><br>
<b>Cc:</b> koha-devel <<a href="mailto:koha-devel@lists.koha-community.org" target="_blank">koha-devel@lists.koha-community.org</a>><br>
<b>Subject:</b> Re: [Koha-devel] ModBiblio function error<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">I did a quick look over the code.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">If your searchengine is set to Elasticsearch, then when ModZebra() is called it tries to index the record in the background at that time (at least that's the way it reads to me, I could be wrong).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Also if you have the BiblioAddsAuthorities preference set, then ModBiblio calls BiblioAutoLink() to update authorities links, which will create an authority record if the AutoCreateAuthorities preference is set, which calls AuthorityMarc::AddAuthority(),
 which calls ModZebra().<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The error to me looks like it's trying to contact the search engine to add/update an authority record, and can't find it.  But you have to have a lot of system preferences set just so to get that far.  So I'm not sure that's what's happening.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Thu, Jul 30, 2020 at 4:46 AM Stephen Graham <<a href="mailto:s.graham4@herts.ac.uk" target="_blank">s.graham4@herts.ac.uk</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Hi All – I have a script which uses the ModBiblio function (i.e.
<a href="https://perldoc.koha-community.org/19.11.x/C4/Biblio.html#ModBiblio" target="_blank">
https://perldoc.koha-community.org/19.11.x/C4/Biblio.html#ModBiblio</a>). I haven’t used the script for a while, and we’ve upgraded to 19.11 since I ran it last. Running the script today and I’m getting the following “error”:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">oAuth error: Database unavailable (109) authorities Bib-1<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I’m seeing this 4-5 times for each bibilo I’ve updated. The update does work. The record looks fine in staff/OPAC, it’s findable etc. I’ve only updated 10 records on our test server,
 and before I update any more I’m just wondering why I’m getting this message and it will have an adverse effect on our indexing/database if I just ignore and update the reamining 6000+ records?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Any advice would be most welcome!<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Cheers, Stephen<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">--------------------------------------<u></u><u></u></p>
<p class="MsoNormal">Stephen Graham<u></u><u></u></p>
<p class="MsoNormal">Library Technology Consultant<u></u><u></u></p>
<p class="MsoNormal">Content and Collections Team<u></u><u></u></p>
<p class="MsoNormal">Library and Computing Services<u></u><u></u></p>
<p class="MsoNormal">University of Hertfordshire<u></u><u></u></p>
<p class="MsoNormal">Tel: 01707 286111<u></u><u></u></p>
<p class="MsoNormal">Ext: 77751<u></u><u></u></p>
<p class="MsoNormal">Email:
<a href="mailto:s.graham4@herts.ac.uk" target="_blank"><span style="color:rgb(5,99,193)">s.graham4@herts.ac.uk</span></a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Michael Hafen<u></u><u></u></p>
</div>
<p class="MsoNormal">Washington County School District Technology Department<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt">Systems Analyst<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Michael Hafen<br></div>Washington County School District Technology Department<br></div>Systems Analyst<br><br></div></div></div></div>