【问题标题】:Error with Schedulers and Inbound Emails in sugarcrmSugarcrm 中的调度程序和入站电子邮件错误
【发布时间】:2014-04-10 11:40:22
【问题描述】:

我们在 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

所以我注释掉了这段代码,我不再收到错误但我仍然没有收到电子邮件。

我不知道还能做什么。

如果可以,请帮助我!谢谢!

编辑

我发现 "此文件只包含在专业版中,在社区版中无用。

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

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

所以我注释掉了代码并进行了重建(是的,我以前做过,但现在我确定这个文件不应该在 Sugarcrm CE 中) 该错误不再显示,但我的调度程序仍然保持“运行”并且没有任何反应,除了: 当我这样做时(Matthew Poer 所说的),我收到了 4 封电子邮件,就像以前一样......所以有些事情导致了问题。

delete from job_queue where scheduler_id = 'THE_SCHEDULER_ID';

更新调度器设置 last_run = subdate(now(),360) where 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

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

【问题讨论】:

    标签: email scheduler sugarcrm inbound


    【解决方案1】:

    文件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';
    

    【讨论】:

    • 感谢您的回答!刚才我意识到我没有包含这样的目录。也没有 SugarSearchEngige,也没有 SugarSearchEngineQueueManager.php。我有点困惑。这应该在 Sugarcrm 的 CE 版本中可用吧?
    • 啊,你是对的。 SugarSearchEngine 仅限专业版。奇怪的是它会在 CE 中被引用,然后......编辑我的答案
    • 我做了好几次。它获取 4 封电子邮件,然后什么也没有,卡住了。我为数据库删除了它,然后添加它,它获取 4 封电子邮件和..卡住了,所有这一切都再次发生。是什么原因造成的,它是全新安装的 Sugarcrm,没有额外的东西。
    • 每次都挂在同一封电子邮件上吗? PHP 日志中的任何内容(是否从 CLI 启用了 PHP 日志记录?)或 SugarCRM 日志?
    • 它没有挂在同一封电子邮件上。其实我不知道选择哪一个的标准。它既不选择最旧的也不选择最新的……它从 1 到 4 封邮件中进行选择。在我的第一篇文章中,我将输入日志中的数据。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-09-30
    • 2012-09-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多