When i run this perl ./process_message_queue.pl to test if the patron arrival emails or not it gives me this error or message unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 372. How solve it that's i need very important in my library. Ahmad Nasser koha system administrator mobil: +201110136090 -- View this message in context: http://koha.1045719.n5.nabble.com/Problem-in-sending-email-tp5814648.html Sent from the Koha-general mailing list archive at Nabble.com.
Hi Probably you have not defined the $KOHA_CONF , if you try echo $KOHA_CONF.xml you should get something like /etc/koha/koha-conf.xml (tarball) or /etc/koha/sites/koha/koha-conf.xml (debian package) If $KOHA_CONF is empty you should export and add to the bashrc of the koha user (with debian package is already done, then I guess you have installed via tarball, right) 2014-10-16 11:49 GMT+02:00 ahmnas <ahmad.nasser19@gmail.com>:
When i run this perl ./process_message_queue.pl to test if the patron arrival emails or not it gives me this error or message unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 372.
How solve it that's i need very important in my library.
Ahmad Nasser koha system administrator mobil: +201110136090
-- View this message in context: http://koha.1045719.n5.nabble.com/Problem-in-sending-email-tp5814648.html Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- *Hugo Agud - Orex Digital * *www.orex.es <http://www.orex.es>* Director Passatge de la Llançadera, 3 · 08338 Premià de Dalt - Tel: 93 539 40 70 hagud@orex.es · http://www.orex.es/ No imprima este mensaje a no ser que sea necesario. Una tonelada de papel implica la tala de 15 árboles y el consumo de 250.000 litros de agua. Aviso de confidencialidad Este mensaje contiene información que puede ser CONFIDENCIAL y/o de USO RESTRINGIDO. Si usted no es el receptor deseado del mensaje (ni está autorizado a recibirlo por el remitente), no está autorizado a copiar, reenviar o divulgar el mensaje o su contenido. Si ha recibido este mensaje por error, por favor, notifíquenoslo inmediatamente y bórrelo de su sistema.
Hi Hugo Agud i install koha on ubuntu (debian) and the extension file koha-conf.xml is /etc/koha/sites/library/koha-conf.xml and when i open this file in gedit it content this data <yazgfs> <listen id="biblioserver" >unix:/var/run/koha/library/bibliosocket</listen> <listen id="authorityserver"
unix:/var/run/koha/library/authoritysocket</listen>
<server id="biblioserver" listenref="biblioserver"> <directory>/var/lib/koha/library/biblios</directory> <config>/etc/koha/sites/library/zebra-biblios-dom.cfg</config> <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn> <xi:include href="/etc/koha/marc21-retrieval-info-bib-dom.xml" xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:fallback> <retrievalinfo> <retrieval syntax="marc21" name="F"/> <retrieval syntax="marc21" name="B"/> <retrieval syntax="xml" name="F"/> <retrieval syntax="xml" name="B"/> <retrieval syntax="xml" name="marcxml" identifier="info:srw/schema/1/marcxml-v1.1"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> </backend> </retrieval> <retrieval syntax="xml" name="dc"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="mods"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="rdfdc"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="rss2"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RSS2.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="utils"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/> </backend> </retrieval> </retrievalinfo> </xi:fallback> </xi:include> </server> <serverinfo id="biblioserver"> <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn> <user>kohauser</user> <password>CDZQwFAHJt931mtx</password> </serverinfo> <server id="authorityserver" listenref="authorityserver" > <directory>/var/lib/koha/library/authorities</directory> <config>/etc/koha/sites/library/zebra-authorities-dom.cfg</config> <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn> <xi:include href="/etc/koha/marc21-retrieval-info-auth-dom.xml" xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:fallback> <retrievalinfo> <retrieval syntax="marc21" name="F"/> <retrieval syntax="marc21" name="B"/> <retrieval syntax="xml" name="marcxml" identifier="info:srw/schema/1/marcxml-v1.1"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> </backend> </retrieval> <retrieval syntax="xml" name="dc"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="mods"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="rdfdc"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="utils"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/> </backend> </retrieval> </retrievalinfo> </xi:fallback> </xi:include> </server> <serverinfo id="authorityserver"> <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn> <user>kohauser</user> <password>CDZQwFAHJt931mtx</password> </serverinfo> <config> <db_scheme>mysql</db_scheme> <database>koha_library</database> <hostname>localhost</hostname> <port>3306</port> <user>koha_library</user> <pass>koha123</pass> <biblioserver>biblios</biblioserver> <biblioservershadow>1</biblioservershadow> <authorityserver>authorities</authorityserver> <authorityservershadow>1</authorityservershadow> <pluginsdir>/var/lib/koha/library/plugins</pluginsdir> <enable_plugins>0</enable_plugins> <intranetdir>/usr/share/koha/intranet/cgi-bin</intranetdir> <opacdir>/usr/share/koha/opac/cgi-bin/opac</opacdir> <opachtdocs>/usr/share/koha/opac/htdocs/opac-tmpl</opachtdocs> <intrahtdocs>/usr/share/koha/intranet/htdocs/intranet-tmpl</intrahtdocs> <includes>/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/</includes> <logdir>/var/log/koha/library</logdir> <docdir>/usr/share/doc/koha-common</docdir> <backupdir>/var/spool/koha/library</backupdir> <backup_db_via_tools>0</backup_db_via_tools> <backup_conf_via_tools>0</backup_conf_via_tools> <install_log>/usr/share/koha/misc/koha-install-log</install_log> <useldapserver>0</useldapserver> <memcached_servers></memcached_servers> <memcached_namespace></memcached_namespace> <zebra_bib_index_mode>dom</zebra_bib_index_mode> <zebra_auth_index_mode>dom</zebra_auth_index_mode> <zebra_lockdir>/var/lock/koha/library</zebra_lockdir> <queryparser_config>/etc/koha/searchengine/queryparser.yaml</queryparser_config> </config> </yazgfs> can you tell me where is error and correct to send email i mean which line or phrase to correct. Ahmad Nasser koha system administrator -- View this message in context: http://koha.1045719.n5.nabble.com/Problem-in-sending-email-tp5814648p5814652... Sent from the Koha-general mailing list archive at Nabble.com.
ok, then is a debian install you need a shell with with the right user and environment try sudo koha-shell library and try again, now it should works 2014-10-16 12:24 GMT+02:00 ahmnas <ahmad.nasser19@gmail.com>:
Hi Hugo Agud
i install koha on ubuntu (debian) and the extension file koha-conf.xml is /etc/koha/sites/library/koha-conf.xml and when i open this file in gedit it content this data
<yazgfs>
<listen id="biblioserver" >unix:/var/run/koha/library/bibliosocket</listen> <listen id="authorityserver"
unix:/var/run/koha/library/authoritysocket</listen>
<server id="biblioserver" listenref="biblioserver"> <directory>/var/lib/koha/library/biblios</directory> <config>/etc/koha/sites/library/zebra-biblios-dom.cfg</config> <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
<xi:include href="/etc/koha/marc21-retrieval-info-bib-dom.xml" xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:fallback> <retrievalinfo> <retrieval syntax="marc21" name="F"/> <retrieval syntax="marc21" name="B"/> <retrieval syntax="xml" name="F"/> <retrieval syntax="xml" name="B"/> <retrieval syntax="xml" name="marcxml" identifier="info:srw/schema/1/marcxml-v1.1"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> </backend> </retrieval> <retrieval syntax="xml" name="dc"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt
stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="mods"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt
stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="rdfdc"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt
stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="rss2"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt
stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RSS2.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="utils"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt
stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/> </backend> </retrieval> </retrievalinfo> </xi:fallback> </xi:include>
</server> <serverinfo id="biblioserver"> <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn> <user>kohauser</user> <password>CDZQwFAHJt931mtx</password> </serverinfo>
<server id="authorityserver" listenref="authorityserver" > <directory>/var/lib/koha/library/authorities</directory> <config>/etc/koha/sites/library/zebra-authorities-dom.cfg</config> <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
<xi:include href="/etc/koha/marc21-retrieval-info-auth-dom.xml" xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:fallback> <retrievalinfo> <retrieval syntax="marc21" name="F"/> <retrieval syntax="marc21" name="B"/> <retrieval syntax="xml" name="marcxml" identifier="info:srw/schema/1/marcxml-v1.1"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> </backend> </retrieval> <retrieval syntax="xml" name="dc"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt
stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="mods"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt
stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="rdfdc"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt
stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/> </backend> </retrieval> <retrieval syntax="xml" name="utils"> <backend syntax="marc21" name="F"> <marc inputformat="marc" outputformat="marcxml" inputcharset="utf-8"/> <xslt
stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/> </backend> </retrieval> </retrievalinfo> </xi:fallback> </xi:include>
</server> <serverinfo id="authorityserver"> <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn> <user>kohauser</user> <password>CDZQwFAHJt931mtx</password> </serverinfo>
<config> <db_scheme>mysql</db_scheme> <database>koha_library</database> <hostname>localhost</hostname> <port>3306</port> <user>koha_library</user> <pass>koha123</pass> <biblioserver>biblios</biblioserver> <biblioservershadow>1</biblioservershadow> <authorityserver>authorities</authorityserver> <authorityservershadow>1</authorityservershadow> <pluginsdir>/var/lib/koha/library/plugins</pluginsdir> <enable_plugins>0</enable_plugins> <intranetdir>/usr/share/koha/intranet/cgi-bin</intranetdir> <opacdir>/usr/share/koha/opac/cgi-bin/opac</opacdir> <opachtdocs>/usr/share/koha/opac/htdocs/opac-tmpl</opachtdocs> <intrahtdocs>/usr/share/koha/intranet/htdocs/intranet-tmpl</intrahtdocs>
<includes>/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/</includes> <logdir>/var/log/koha/library</logdir> <docdir>/usr/share/doc/koha-common</docdir> <backupdir>/var/spool/koha/library</backupdir>
<backup_db_via_tools>0</backup_db_via_tools> <backup_conf_via_tools>0</backup_conf_via_tools>
<install_log>/usr/share/koha/misc/koha-install-log</install_log> <useldapserver>0</useldapserver> <memcached_servers></memcached_servers> <memcached_namespace></memcached_namespace> <zebra_bib_index_mode>dom</zebra_bib_index_mode> <zebra_auth_index_mode>dom</zebra_auth_index_mode> <zebra_lockdir>/var/lock/koha/library</zebra_lockdir>
<queryparser_config>/etc/koha/searchengine/queryparser.yaml</queryparser_config> </config>
</yazgfs>
can you tell me where is error and correct to send email i mean which line or phrase to correct.
Ahmad Nasser koha system administrator
-- View this message in context: http://koha.1045719.n5.nabble.com/Problem-in-sending-email-tp5814648p5814652... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- *Hugo Agud - Orex Digital * *www.orex.es <http://www.orex.es>* Director Passatge de la Llançadera, 3 · 08338 Premià de Dalt - Tel: 93 539 40 70 hagud@orex.es · http://www.orex.es/ No imprima este mensaje a no ser que sea necesario. Una tonelada de papel implica la tala de 15 árboles y el consumo de 250.000 litros de agua. Aviso de confidencialidad Este mensaje contiene información que puede ser CONFIDENCIAL y/o de USO RESTRINGIDO. Si usted no es el receptor deseado del mensaje (ni está autorizado a recibirlo por el remitente), no está autorizado a copiar, reenviar o divulgar el mensaje o su contenido. Si ha recibido este mensaje por error, por favor, notifíquenoslo inmediatamente y bórrelo de su sistema.
Thanks Hugo Agud for your replay i do this command and don't give me the error but i want to sure the patron receive overdue message or check out already send to him when he open his or here mail and i doing this command every day or only one time. Ahmad Nasser koha system administrator -- View this message in context: http://koha.1045719.n5.nabble.com/Problem-in-sending-email-tp5814648p5814658... Sent from the Koha-general mailing list archive at Nabble.com.
Greetings, The process_message_queue.pl script runs from a cronjob which has the KOHA_CONF environment variable properly set. This is the table that will help you determine where your problem is: http://schema.koha-community.org/tables/message_queue.html It should be noted that if you installed from packages and have access to the debian command scripts, you may wish to make sure that the email is enabled. http://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_packages... Assuming you have email configured correctly: if you look at the message queue table and check the status field of all the records, they should all/most read sent. If they all say pending and you have confirmed the email is enabled for that instance, then you have a cronjob problem. If they all/most say sent, but you haven't gotten any emails, then you have an email configuration problem. Sorry, I can't help beyond this. GPML, Mark Tompsett -----Original Message----- From: ahmnas Sent: Thursday, October 16, 2014 5:49 AM To: koha@lists.katipo.co.nz Subject: [Koha] Problem in sending email When i run this perl ./process_message_queue.pl to test if the patron arrival emails or not it gives me this error or message unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 372. How solve it that's i need very important in my library. Ahmad Nasser koha system administrator mobil: +201110136090 -- View this message in context: http://koha.1045719.n5.nabble.com/Problem-in-sending-email-tp5814648.html Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
ahmnas -
Hugo Agud -
Mark Tompsett