<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>A new request with request id 7253 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is : <br><br>Title : Koha-devel Digest, Vol 202, Issue 20<br>Category : <br>Description : <div>Send Koha-devel mailing list submissions to<br>    koha-devel@lists.koha-community.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>or, via email, send a message with subject or body 'help' to<br>    koha-devel-request@lists.koha-community.org<br><br>You can reach the person managing the list at<br>    koha-devel-owner@lists.koha-community.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Koha-devel digest..."<br><br><br>Today's Topics:<br><br>   1. Re: Elasticsearch not auto-updating after cataloguing<br>      (Philippe Blouin)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Fri, 16 Sep 2022 16:01:02 -0400<br>From: Philippe Blouin <philippe.blouin@inlibro.com><br>To: koha-devel@lists.koha-community.org<br>Subject: Re: [Koha-devel] Elasticsearch not auto-updating after<br>    cataloguing<br>Message-ID: <d4356a29-e744-a85e-effc-7c43e3e8d9ae@inlibro.com><br>Content-Type: text/plain; charset="utf-8"; Format="flowed"<br><br>Hello Thomas,<br><br>I followed your tip the last few days.  At this point I've spotted which <br>commit between 21 and 22 moved the reindexing to BackgroundJobs, and <br>when set up correctly (the worker), it does reindex indeed.<br><br>But if rabbitmq runs, then it fails.   The background_jobs service gets <br>the clue to look for job X: if connecte to MQ, it goes to the database <br>with a ->find()... and gets nothing.  If MQ is not running, it goes to <br>the database with a ->search() and process the jobs there with success.<br><br>*sigh*<br><br>So it is not a matter of Ubuntu version or remote vs local, but of a <br>combination of Koha version, worker and rabbitmq.<br><br>NOW, if I put a "sleep 2" in background_jobs_worker.pl, just before the <br>->find(), then it works.<br><br>Like if the Queue is faster than the Database ??!?!  Seems to me nothing <br>is put onto the queue, especially not an ID, without the database entry <br>being completed.<br><br><br>I have a feeling I'm deep into a rabbit (mq) hole, and I'm not seeing <br>straight.<br><br><br>Thanks a lot,<br><br><br>Philippe Blouin,<br>Directeur de la technologie<br><br>Tél.  : (833) 465-4276, poste 230<br>philippe.blouin@inLibro.com<br><br>inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com><br>On 2022-09-13 16:33, Thomas Klausner wrote:<br>> Hi!<br>><br>> On Tue, Sep 13, 2022 at 02:58:49PM -0400, Philippe Blouin wrote:<br>>   <br>>> Depends on the installation, but where background_jobs_worker.pl runs or not<br>>> makes not difference in where the cataloguing->indexing path works.<br>>><br>>> It seems to always work when Koha runs on the same machine as ES, and not<br>>> otherwise.<br>> Is the remote ES exposed via https? Maybe you have slightly different<br>> Perls orMozilla::CA  installation? Any errors in the logs?<br>><br>> Which Koha Verion are you running? Are you sure both latpop and server<br>> run the same version?<br>><br>> In the source code there is a param 'skip_record_index', which will<br>> prevent the immediate indexing after an edit (if I've skimmed the code<br>> correctly). Maybe that is set? Though I don't know when it would be set<br>> (by whom..)<br>><br>> Greetings,<br>> domm<br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20220916/b9c705eb/attachment-0001.htm><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Koha-devel mailing list<br>Koha-devel@lists.koha-community.org<br>https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>website : https://www.koha-community.org/<br>git : https://git.koha-community.org/<br>bugs : https://bugs.koha-community.org/<br><br><br>------------------------------<br><br>End of Koha-devel Digest, Vol 202, Issue 20<br>*******************************************<br></div><br><br>NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.<br></body></html>