HI, I configured my Circulation and Fine rules, and also did the settings in koha administration for fines. But when I tried to run my cronjob manually, it gave following error. /bin/sh: 1: misc/cronjobs/fines.pl: not found I figured out my fines.pl file is located in "/usr/share/koha/bin/cronjob" directory. I tried running it from there, and the terminal threw the following error. Can't locate Koha/Script.pm in @INC (you may need to install the Koha::Script module) (@INC contains: /usr/share/webmin /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/koha/bin/cronjobs/fines.pl line 33. BEGIN failed--compilation aborted at /usr/share/koha/bin/cronjobs/fines.pl line 33. I tried installing "Koha::Scrip" from CPAN modules but couldn't find anything. However, I was able to install another Cpan package. By the name "Koha::Contrib::Tamil", but this was of no help too. Please suggest. How do I configure my Ubutnu 22.04 server to automatically run these fines.pl script. Am i doing something wrong? Thank you Rupinder Singh
Hi all jobs should always be run as your koha user. You can use 'sudo koha-shell instance' to switch to that user and then try to run the job again. Some other things to make sure of: system preference finesmode is set to "Calculate and charge" today is not a holiday in the calendar of the library the maxfine setting in circulation rules is > 0 Hope this helps, On Mon, 5 Jun 2023, 7:04 pm Rupinder Singh, <jessedhammu@gmail.com> wrote:
HI, I configured my Circulation and Fine rules, and also did the settings in koha administration for fines. But when I tried to run my cronjob manually, it gave following error.
/bin/sh: 1: misc/cronjobs/fines.pl: not found
I figured out my fines.pl file is located in "/usr/share/koha/bin/cronjob" directory. I tried running it from there, and the terminal threw the following error.
Can't locate Koha/Script.pm in @INC (you may need to install the Koha::Script module) (@INC contains: /usr/share/webmin /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/koha/bin/cronjobs/fines.pl line 33. BEGIN failed--compilation aborted at /usr/share/koha/bin/cronjobs/fines.pl line 33.
I tried installing "Koha::Scrip" from CPAN modules but couldn't find anything. However, I was able to install another Cpan package. By the name "Koha::Contrib::Tamil", but this was of no help too.
Please suggest. How do I configure my Ubutnu 22.04 server to automatically run these fines.pl script. Am i doing something wrong?
Thank you Rupinder Singh _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
participants (2)
-
MASTeR Library -
Rupinder Singh