I am not a Koha expert -- far from it! -- but I'm guessing that you neglected to export the environment variable KOHA_CONF when running process_message_queue.pl -- if you didn't export it, then the Perl script you're trying to run can't "see" it. Try this:
cd /usr/share/koha/bin/cronjobs export KOHA_CONF=/etc/koha/sites/library/koha-conf.xml perl -c ./process_message_queue.pl With any luck, that will run OK without spitting out a gazillion error messages. Paul. On Thu, Nov 30, 2017 at 02:46:49PM -0400, Luis Moises Rojas wrote: > About this issue, we got the following error when we ran: > sudo apt-get install mailutils > > > E: Sub-process /usr/bin/dpkg returned an error code (1) > > P.D: we are using sudo > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > Libre > de virus. www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > On Thu, Nov 30, 2017 at 10:37 AM, Javed Sahil <sahil.ke.p...@gmail.com> > wrote: > > > 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" javedshoukat...@gmail.com > > <javedshoukat...@gmail.com> <<< '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# ./process_message_queue.pl > > <http://process_message_queue.pl>* > > > > it returns > > > > root@iolhost:/usr/share/koha/bin/cronjobs# ./process_message_queue.pl > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > Use of uninitialized value in concatenation (.) or string at > > /usr/share/koha/lib/C4/Templates.pm line 153. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > Use of uninitialized value in concatenation (.) or string at > > /usr/share/koha/lib/C4/Auth_with_cas.pm line 42. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > unable to locate Koha configuration file koha-conf.xml at > > /usr/share/koha/lib/C4/Context.pm line 242. > > 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: javedshoukat...@gmail.com > > _______________________________________________ > > Koha mailing list http://koha-community.org > > Koha@lists.katipo.co.nz > > https://lists.katipo.co.nz/mailman/listinfo/koha > > > > > > -- > *Luis Moisés Rojas P.* > _______________________________________________ > Koha mailing list http://koha-community.org > Koha@lists.katipo.co.nz > https://lists.katipo.co.nz/mailman/listinfo/koha -- Paul Hoffman <p...@flo.org> Software Manager Fenway Library Organization 550 Huntington Ave. Boston, MA 02115 (617) 442-2384 (FLO main number) _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha