sugarcrm中的调度器和入站电子邮件出错



我们在Centos 6.5上使用SugarCRM CE 6.5.16。

我得到这个错误:

Wed Apr 9 15:37:10 2014 [10389][1][ERROR] Unable to load custom logic file: include/SugarSearchEngine/SugarSearchEngineQueueManager.php

真正的问题是我没有收到来自我的入站电子邮件的电子邮件。

他们都准备好了。我将cron作业添加到crontab中。事实上,我收到了一些电子邮件,比如100封中的3封或4封。在调度器中,作业状态为"正在运行",上次成功运行为"从不"。

每隔一个调度程序作业的状态都为"完成",并且最后一次成功运行。我修复了入站电子邮件、调度程序作业,但没有效果。

我唯一发现的是:

http://suitecrm.com/forum/search?query=SugarSearchEngineQueueManager&searchdate=all&childforums=1

所以我评论了这个代码,我不再收到错误,但我仍然没有收到电子邮件。

我不知道还能做什么。

如果可以的话,请帮帮我!谢谢

编辑

我发现"这个文件只包含在PRO版本中,在社区版中没有用。

代码修复:1./custom/Extension/application/Ext/LogicHooks/SuggarFTSHooks.php 中的注释代码

  1. 从管理中进行快速重建(index.php?module=管理&action=修复)。此过程将重新生成使用SugarCRM调用不存在的文件SugarSearchEngineQueueManager/custom/application/Ext/LogicHooks/logichoks.Ext.php的代码段。"

所以我注释掉了代码并进行了重建(是的,我以前做过,但现在我确信这个文件不应该在Sugarcrm CE中)错误不再显示,但我的调度程序仍处于"运行"状态,除以下情况外,什么也没发生:当我这样做的时候(正如Matthew Poer所说),我像以前一样收到了4封电子邮件。。。所以有什么东西引起了问题。

delete from job_queue where scheduler_id = 'THE_SCHEDULER_ID';

更新调度器设置last_run=subdate(now(),360),其中id='THE_SCHEDULER_id';

编辑2:这来自php error_log

[Sun Apr 13 03:34:27 2014] [notice] Digest: generating secret for digest authentication ...
[Sun Apr 13 03:34:27 2014] [notice] Digest: done
[Sun Apr 13 03:34:33 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_nss/2.2.15 NSS/3.14.0.0 Basic ECC PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Apr 13 12:22:52 2014] [error] [client 122.155.18.51] File does not exist: /usr/share/phpMyAdmin/translators.html
[Sun Apr 13 13:45:31 2014] [error] [client 122.155.18.51] File does not exist: /usr/share/phpMyAdmin/translators.html
[Sun Apr 13 15:43:39 2014] [error] [client 66.249.66.74] File does not exist:     /opt/otrs/var/httpd/htdocs/js/js-cache/ModuleJS_784dc12bf89d72db064caa6e8690168b.js
[Sun Apr 13 15:43:40 2014] [error] [client 66.249.66.74] File does not exist: /opt/otrs/var/httpd/htdocs/skins/Customer/default/css-cache/CommonCSS_b1f924c426a0e1a9f1553197a2ce25a4.css
[Sun Apr 13 15:43:41 2014] [error] [client 66.249.66.74] File does not exist: /opt/otrs/var/httpd/htdocs/js/js-cache/CommonJS_7f98ddff2f339e3b515f7901d82600bb.js
[Mon Apr 14 11:09:04 2014] [error] [client 192.168.10.1] PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /usr/share/phpMyAdmin/version_check.php on line 16, referer: http://support.expert-m.net/phpmyadmin/main.php?token=d2e60372f8b5d6d53f0c3c80a536be27
[Mon Apr 14 11:09:04 2014] [error] [client 192.168.10.1] PHP Warning:  file_get_contents(http://www.phpmyadmin.net/home_page/version.json): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /usr/share/phpMyAdmin/version_check.php on line 16, referer: http://support.expert-m.net/phpmyadmin/main.php?token=d2e60372f8b5d6d53f0c3c80a536be27
[Mon Apr 14 12:45:25 2014] [error] [client 178.235.72.68] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)

这来自SugarCRM的日志文件夹,error.log

[Mon Apr 14 08:58:59 2014] [error] [client 192.168.10.1] PHP Notice:  Undefined index: 8854a79c-6171-036c-e7df-534548e8bc81 in /var/www/sugarcrm/public_html/modules/Emails/EmailUIAjax.php on line 879, referer: http://sugarcrm.support.expert-m.net/index.php?module=Emails&action=index&parentTab=All
[Mon Apr 14 08:58:59 2014] [error] [client 192.168.10.1] PHP Notice:  Undefined index: 8854a79c-6171-036c-e7df-534548e8bc81 in /var/www/sugarcrm/public_html/modules/Emails/EmailUIAjax.php on line 880, referer: http://sugarcrm.support.expert-m.net/index.php?module=Emails&action=index&parentTab=All
[Mon Apr 14 11:22:17 2014] [error] [client 192.168.10.1] PHP Notice:  Undefined index: 8854a79c-6171-036c-e7df-534548e8bc81 in /var/www/sugarcrm/public_html/modules/Emails/EmailUIAjax.php on line 879, referer: http://sugarcrm.support.expert-m.net/index.php?module=Emails&action=index&parentTab=All
[Mon Apr 14 11:22:17 2014] [error] [client 192.168.10.1] PHP Notice:  Undefined index: 8854a79c-6171-036c-e7df-534548e8bc81 in /var/www/sugarcrm/public_html/modules/Emails/EmailUIAjax.php on line 880, referer: http://sugarcrm.support.expert-m.net/index.php?module=Emails&action=index&parentTab=All
[Mon Apr 14 11:24:47 2014] [error] [client 192.168.10.1] File does not exist: /var/www/sugarcrm/public_html/favicon.ico

我没有粘贴日志中的所有信息。还有更多,但错误还在重复。

文件include/SugarSearchEngine/SugarSearchEngineQueueManager.php不会存在于您的系统中,因为它是Pro+功能。

要重置"卡住"的调度程序条目,请从数据库中的作业队列中删除调度程序信息,并重置last_run值。从SugarCRM中的URL或通过select id,name from schedulers查找调度程序的ID。一旦您有了这个调度程序的ID,就运行以下两个查询:

delete from job_queue where scheduler_id = 'THE_SCHEDULER_ID';
update schedulers set last_run = subdate(now(),360) where id = 'THE_SCHEDULER_ID';

最新更新