我刚刚使用版本1.8.0.0从magento connect升级了我的magento安装。
我使用“Magento connect”将magento升级到1.8.0.0,然后出现以下消息
Cronjob status: Cron.php doesn’t seem to be set up properly. Cron did not execute within the last 15 minutes. Please make sure to set up the cronjob as explained here and check the cron status 15 minutes after setting up the cronjob properly again.
自升级以来,所有预定作业(库存导入/订单导出,日志清理......)已停止。
我的crontab是:
$ crontab -l
*/5 * * * * wget -O /dev/null -q http://localhost/cron.php > /dev/null
并从shell手动执行wget
wget -O /dev/null -q -S http://localhost/cron.php
HTTP/1.1 200 OK
Date: Thu, 26 Sep 2013 07:10:10 GMT
Server: Apache
X-Powered-By: PHP/5.3.21 ZendServer/5.0
Vary: Accept-Encoding
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
我已经安装了Aoe调度程序,它显示了一长串挂起的作业
任何地方都没有错误(apache日志,magento日志,......)
我该如何解决这个问题?
谢谢。
UPDATE:调用shell脚本重新激活了hearthbeat ...仍然无法理解问题出在哪里
*/5 * * * * /var/www/magento/htdocs/cron.sh > /dev/null
答案 0 :(得分:3)
以下是解决方案http://www.magentocommerce.com/boards/viewthread/609113/#t462030
我遇到同样的问题,升级到1.8.0.0后,我的cron已经死了。
在#47左右$isShellDisabled = (stripos(PHP_OS, ‘win’) === false) ? $isShellDisabled : true;
后添加此行代码
$isShellDisabled = true;
答案 1 :(得分:1)
Magento文件夹的根目录中有一个名为
的文件cron.php
这是由您的系统unix cron运行的文件,它管理Magento的cron作业。换句话说,您的系统每分钟运行一个cron.php
文件,此文件检查Magento的cron配置,并运行任何已安排的作业。
由于某种原因,此命令未在您的系统中运行。这意味着有人从系统的cron.php
中删除了crontab
,或者当命令运行时出现错误。
尝试跳过服务器并自行运行命令
$ php cron.php
我猜你是否会看到某种错误。此错误是您的cron作业未运行的原因。解决它,你会很高兴。