koha not sending email notices for Check in, Check out, Overdue etc.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

koha not sending email notices for Check in, Check out, Overdue etc.

Javed Sahil
Hi everyone!

I have set postfix with gmail to send Email Notices for  Check In, Check
Out, and every transaction made in Circulation Module,

But in user accounts Notices tab Email status is pending.
I want koha to send email notices immediately.
 But it is not sending emails.

I have installed "mailutils" using command below:
*        #  sudo apt-get install mailutils*
Everything is ok,
I can send emails using the command below:

*# mail -s "This is the subject" [hidden email]
<[hidden email]> <<< 'This is the message'*
But notifications emails by koha are not sent,

I have tried



*# PERL5LIB="/usr/share/koha/lib"#
KOHA_CONF="/etc/koha/sites/library/koha-conf.xml"# cd
/usr/share/koha/bin/cronjobs*

above commands go fine but when i try the following command,

*# ./*process_message_queue.pl

it returns

unable to locate Koha configuration file koha-conf.xml at
/usr/share/koha/lib/C4/Context.pm line 242.

Can't call method "config" on unblessed reference at
/usr/share/koha/lib/Koha/Database.pm line 56.

*i tried rebuilding zebra*

*# koha-rebuild-zebra -v -f library*

Can't locate Authen/CAS/Client/Response/Failure.pm:
./Authen/CAS/Client/Response/Failure.pm: Permission denied at
/usr/share/perl/5.22/base.pm line 97.
    ...propagated at /usr/share/perl/5.22/base.pm line 106.
BEGIN failed--compilation aborted at
/usr/share/perl5/Authen/CAS/Client/Response.pm
line 68.
Compilation failed in require at /usr/share/perl5/Authen/CAS/Client.pm line
8.
BEGIN failed--compilation aborted at /usr/share/perl5/Authen/CAS/Client.pm
line 8.
Compilation failed in require at /usr/share/koha/lib/C4/Auth_with_cas.pm
line 26.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth_with_cas.pm
line 26.
Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 65.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 92.
Compilation failed in require at /usr/share/koha/lib/Koha/Virtualshelf.pm
line 22.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Virtualshelf.pm
line 22.
Compilation failed in require at /usr/share/koha/lib/Koha/Virtualshelves.pm
line 24.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Virtualshelves.pm
line 24.
Compilation failed in require at /usr/share/koha/lib/Koha/Patron.pm line 37.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Patron.pm
line 37.
Compilation failed in require at /usr/share/koha/lib/Koha/Patrons.pm line
28.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Patrons.pm
line 28.
Compilation failed in require at /usr/share/koha/lib/Koha/Item.pm line 29.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Item.pm line
29.
Compilation failed in require at /usr/share/koha/lib/Koha/Items.pm line 26.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Items.pm line
26.
Compilation failed in require at /usr/share/koha/lib/C4/Items.pm line 43.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Items.pm line
43.
Compilation failed in require at /usr/share/koha/lib/C4/Reserves.pm line 29.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Reserves.pm
line 29.
Compilation failed in require at /usr/share/koha/lib/C4/Circulation.pm line
28.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Circulation.pm
line 28.
Compilation failed in require at /usr/share/koha/lib/C4/Overdues.pm line 31.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Overdues.pm
line 31.
Compilation failed in require at /usr/share/koha/lib/C4/Members.pm line 30.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Members.pm line
30.
Compilation failed in require at /usr/share/koha/lib/C4/Search.pm line 29.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Search.pm line
29.
Compilation failed in require at /usr/share/koha/lib/C4/AuthoritiesMarc.pm
line 24.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/AuthoritiesMarc.pm
line 24.
Compilation failed in require at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 26.
BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 26.
Something went wrong rebuilding biblio indexes for library
Can't locate Authen/CAS/Client/Response/Failure.pm:
./Authen/CAS/Client/Response/Failure.pm: Permission denied at
/usr/share/perl/5.22/base.pm line 97.
    ...propagated at /usr/share/perl/5.22/base.pm line 106.
BEGIN failed--compilation aborted at
/usr/share/perl5/Authen/CAS/Client/Response.pm
line 68.
Compilation failed in require at /usr/share/perl5/Authen/CAS/Client.pm line
8.
BEGIN failed--compilation aborted at /usr/share/perl5/Authen/CAS/Client.pm
line 8.
Compilation failed in require at /usr/share/koha/lib/C4/Auth_with_cas.pm
line 26.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth_with_cas.pm
line 26.
Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 65.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 92.
Compilation failed in require at /usr/share/koha/lib/Koha/Virtualshelf.pm
line 22.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Virtualshelf.pm
line 22.
Compilation failed in require at /usr/share/koha/lib/Koha/Virtualshelves.pm
line 24.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Virtualshelves.pm
line 24.
Compilation failed in require at /usr/share/koha/lib/Koha/Patron.pm line 37.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Patron.pm
line 37.
Compilation failed in require at /usr/share/koha/lib/Koha/Patrons.pm line
28.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Patrons.pm
line 28.
Compilation failed in require at /usr/share/koha/lib/Koha/Item.pm line 29.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Item.pm line
29.
Compilation failed in require at /usr/share/koha/lib/Koha/Items.pm line 26.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Items.pm line
26.
Compilation failed in require at /usr/share/koha/lib/C4/Items.pm line 43.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Items.pm line
43.
Compilation failed in require at /usr/share/koha/lib/C4/Reserves.pm line 29.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Reserves.pm
line 29.
Compilation failed in require at /usr/share/koha/lib/C4/Circulation.pm line
28.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Circulation.pm
line 28.
Compilation failed in require at /usr/share/koha/lib/C4/Overdues.pm line 31.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Overdues.pm
line 31.
Compilation failed in require at /usr/share/koha/lib/C4/Members.pm line 30.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Members.pm line
30.
Compilation failed in require at /usr/share/koha/lib/C4/Search.pm line 29.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Search.pm line
29.
Compilation failed in require at /usr/share/koha/lib/C4/AuthoritiesMarc.pm
line 24.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/AuthoritiesMarc.pm
line 24.
Compilation failed in require at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 26.
BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/
rebuild_zebra.pl line 26.
Something went wrong rebuilding authority indexes for library

Help Plz

I want koha to send emails immediately.
--
Regards,

Javed Shoukat

Management Trainee Officer (MTO)
Lahore University of
Management Sciences (LUMS),
Lahore.

Contact #: +92 300 6548748 <+92%20300%206548748>
Email: [hidden email]
_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha
Reply | Threaded
Open this post in threaded view
|

Re: koha not sending email notices for Check in, Check out, Overdue etc.

Mark Alexander
Excerpts from Javed Sahil's message of 2017-12-01 12:36:37 +0500:

> *# PERL5LIB="/usr/share/koha/lib"#
> KOHA_CONF="/etc/koha/sites/library/koha-conf.xml"# cd
> /usr/share/koha/bin/cronjobs*
>
> above commands go fine but when i try the following command,
>
> *# ./*process_message_queue.pl
>
> it returns
>
> unable to locate Koha configuration file koha-conf.xml at
> /usr/share/koha/lib/C4/Context.pm line 242.

Try using this command first:

   koha-shell LIBRARY

where LIBRARY is your Koha instance name.  This should set
up the environment correctly to run the various scripts.
_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha