Unwanted e-mail about UseTransportCostMatrix
Hi Since two days I am receiving the following unwanted e-mail from my demo installation (running Koha 19.05.00) every hour: ################################## Subject: Cron <root@vmi47659> cd / && run-parts --report /etc/cron.hourly /etc/cron.hourly/koha-common: UseTransportCostMatrix set to yes, but matrix not populated at /usr/share/koha/lib/C4/HoldsQueue.pm line 193. ################################## But in fact system preference "UseTransportCostMatrix" is NOT set to yes: mysql> select value from systempreferences where variable="UseTransportCostMatrix"; +-------+ | value | +-------+ | 0 | +-------+ 1 row in set (0.00 sec) What does it mean and how can I prevent getting this unwanted e-mail? Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
Hi Michael, Restart memcached and plack to make sure the pref's value is not fetched from the cache. The code raising this warning is pretty trivial: 189 my $use_transport_cost_matrix = C4::Context->preference("UseTransportCostMatrix"); 190 if ($use_transport_cost_matrix) { 191 $transport_cost_matrix = TransportCostMatrix(); 192 unless (keys %$transport_cost_matrix) { 193 warn "UseTransportCostMatrix set to yes, but matrix not populated"; Le mar. 25 juin 2019 à 03:30, Michael Kuhn <mik@adminkuhn.ch> a écrit :
Hi
Since two days I am receiving the following unwanted e-mail from my demo installation (running Koha 19.05.00) every hour:
##################################
Subject: Cron <root@vmi47659> cd / && run-parts --report /etc/cron.hourly
/etc/cron.hourly/koha-common: UseTransportCostMatrix set to yes, but matrix not populated at /usr/share/koha/lib/C4/HoldsQueue.pm line 193.
##################################
But in fact system preference "UseTransportCostMatrix" is NOT set to yes:
mysql> select value from systempreferences where variable="UseTransportCostMatrix"; +-------+ | value | +-------+ | 0 | +-------+ 1 row in set (0.00 sec)
What does it mean and how can I prevent getting this unwanted e-mail?
Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Hi Jonathan
Restart memcached and plack to make sure the pref's value is not fetched from the cache.
Thank you very much, that helped! For my demo installation I have now configured an automatic restart of Koha and Memcache after the daily restore of the database to empty all caches. Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
participants (2)
-
Jonathan Druart -
Michael Kuhn