Re: [Koha] Koha Not calculating and charging overdue fines
Hi, You have to use the "root" account I think. I know when I try to do it with my own account, it says I have no crontab, but when I switch to the root account, they are all there. Caroline On 19-08-06 05 h 26, muirunyeri wrote:
Hello Carolyne,
Sorry I have not gotten back to you on this issue.
I think this' where my solution lies however the cron -l command replies no cron command for my user account. I have 2 accounts showing i.e. the admin account and the koha_instance account.
I hope i was supposed to run it thru the main account coz thats where I log in.
Or what might I be doing wrong? I believe the cron list should have something. Please advise.
Thanking you heartily
Sent from my Samsung Galaxy smartphone. -------- Original message -------- From: Caroline Cyr-La-Rose <caroline.cyr-la-rose@inlibro.com> Date: 01/08/2019 17:32 (GMT+03:00) To: muirunyeri <muirunyeri@gmail.com>, koha@lists.katipo.co.nz Subject: Re: [Koha] Koha Not calculating and charging overdue fines
Hello!
I'm not a system administrator, so I'm not sure what I do will work for you. Maybe someone else on the list can correct me if this is not the right way to do it.
What I do to check my crons is go on my server and type crontab -l (dash small "L" for "list"). This gives me the list of all the crons that are running on my server.
If the fines.pl script is not there, you will have to add it. So type crontab -e (dash small "E" for "edit").
On the next available line, add in your cron. This is what I use to remember the order : https://devhints.io/cron
Normally, you want your fines.pl script to run once daily. We run ours during the night. So something like
0 1 * * * misc/cronjobs/fines.pl
will make the script run everyday at 1 am
I hope this helps
Caroline
On 19-08-01 04 h 53, muirunyeri wrote:
Hi Carolyne,
I'm not sure if the fines.pl cron job is running. If you could guide me on how to check I'd be very grateful.
The system is new and has been in use for about 6 months and not an upgrade but a clean install.
The circulation system pref are set as 1. Checkin policy- calculate fines on return= Do 2. Fines policy- fines mode= calculate and charge.
Thanking you for your assistance
Warm regards
Sent from my Samsung Galaxy smartphone. -------- Original message -------- From: Caroline Cyr-La-Rose <caroline.cyr-la-rose@inlibro.com> Date: 31/07/2019 16:29 (GMT+03:00) To: koha@lists.katipo.co.nz Subject: Re: [Koha] Koha Not calculating and charging overdue fines
Hello,
I need more information about your problem.
Is the fines.pl cron job running?
Is this a new Koha installation or did it stop calculating fines after an upgrade? Which version are your running?
Which system preferences did you set and what was their value?
Thanks!
Caroline
On 19-07-31 06 h 35, muirunyeri wrote:
Dear team, My system is not charging nor calculating overdue fines. I have set the circulation preferences as they should. Kindly assist
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
-- Caroline Cyr La Rose, M.L.I.S. Librarian | Product Manager
Phone: 1-833-465-4276, ext. 221 Caroline.Cyr-La-Rose@inLibro.com <mailto:caroline.cyr-la-rose@inLibro.com>
INLiBRO | Document Technologies Specialists | www.inLibro.com <http://www.inLibro.com> _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
-- Caroline Cyr La Rose, M.L.I.S. Librarian | Product Manager
Phone: 1-833-465-4276, ext. 221 Caroline.Cyr-La-Rose@inLibro.com <mailto:caroline.cyr-la-rose@inLibro.com>
INLiBRO | Document Technologies Specialists | www.inLibro.com <http://www.inLibro.com>
-- Caroline Cyr La Rose, M.S.I. Bibliothécaire | Responsable de produit Tél. : 1-833-465-4276, poste 221 Caroline.Cyr-La-Rose@inLibro.com <mailto:caroline.cyr-la-rose@inLibro.com> INLiBRO | Spécialistes en technologies documentaires | www.inLibro.com <http://www.inLibro.com>
Hi
I think this' where my solution lies however the cron -l command replies no cron command for my user account. I have 2 accounts showing i.e. the admin account and the koha_instance account.
I hope i was supposed to run it thru the main account coz thats where I log in.
Or what might I be doing wrong? I believe the cron list should have something. Please advise.
I'm not sure if this is of any help, but in the Koha 19.05 standard the script "fines.pl" is executed in file "/etc/cron.daily/koha-common" as follows: koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/fines.pl Thus not in any user controlled crontab. Also the path is not "misc/cronjobs/fines.pl". 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 all, I think what Caroline described would work well for a dev (git) or standard (tarball) installation, while things with the packages work a little differently like Michael describes. So it might depend on your installation type on what you should do. For package installations the fines.pl should be scheduled by default to run daily. Have you checked everything else that might prevent fines from calculating? - finesmode systempreference? - Holidays in the calendar? - Circulation rules correct? For example sometimes it's easy to miss that rules for 'all libraries' might have been overwritten by branch specific ones. Hope this helps, Katrin On 06.08.19 17:07, Michael Kuhn wrote:
Hi
I think this' where my solution lies however the cron -l command replies no cron command for my user account. I have 2 accounts showing i.e. the admin account and the koha_instance account.
I hope i was supposed to run it thru the main account coz thats where I log in.
Or what might I be doing wrong? I believe the cron list should have something. Please advise.
I'm not sure if this is of any help, but in the Koha 19.05 standard the script "fines.pl" is executed in file "/etc/cron.daily/koha-common" as follows:
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/fines.pl
Thus not in any user controlled crontab. Also the path is not "misc/cronjobs/fines.pl".
Best wishes: Michael
participants (3)
-
Caroline Cyr-La-Rose -
Katrin Fischer -
Michael Kuhn