打印

LNMP1.4 执行magento的计划任务就502错误

LNMP1.4 执行magento的计划任务就502错误

刚装了LNMP1.4 执行magento(版本1.9.3.4)的计划任务(./cron.sh)就502错误,不管是手动执行还是写在计划任务里,都得到502错误,其他服务器lnmp1.2  lnmp1.3都没问题,,请教军哥,在哪儿去排查错误呀。
按置顶帖里,排查了也没用呢,看了下php-fpm日志文件显示:
引用:
[06-Sep-2017 11:29:58] WARNING: [pool www] child 21803 exited on signal 7 (SIGBUS - core dumped) after 269.050733 seconds from start
[06-Sep-2017 11:29:58] NOTICE: [pool www] child 22183 started
[06-Sep-2017 11:30:00] WARNING: [pool www] child 21805 exited on signal 7 (SIGBUS - core dumped) after 269.019621 seconds from start
[06-Sep-2017 11:30:00] NOTICE: [pool www] child 22185 started
[06-Sep-2017 11:30:01] WARNING: [pool www] child 21807 exited on signal 7 (SIGBUS - core dumped) after 268.010069 seconds from start
[06-Sep-2017 11:30:01] NOTICE: [pool www] child 22187 started
[06-Sep-2017 11:30:03] WARNING: [pool www] child 21809 exited on signal 7 (SIGBUS - core dumped) after 268.061475 seconds from start
[06-Sep-2017 11:30:03] NOTICE: [pool www] child 22189 started
[06-Sep-2017 11:30:06] NOTICE: Finishing ...
[06-Sep-2017 11:30:06] NOTICE: exiting, bye-bye!
[06-Sep-2017 11:30:09] NOTICE: fpm is running, pid 22473
[06-Sep-2017 11:30:09] NOTICE: ready to handle connections
[06-Sep-2017 11:30:24] WARNING: [pool www] child 22485 exited on signal 7 (SIGBUS - core dumped) after 15.570270 seconds from start
[06-Sep-2017 11:30:24] NOTICE: [pool www] child 22651 started
[06-Sep-2017 11:30:25] WARNING: [pool www] child 22486 exited on signal 7 (SIGBUS - core dumped) after 15.947059 seconds from start
[06-Sep-2017 11:30:25] NOTICE: [pool www] child 22655 started
[06-Sep-2017 11:30:25] WARNING: [pool www] child 22487 exited on signal 11 (SIGSEGV - core dumped) after 15.965344 seconds from start
[06-Sep-2017 11:30:25] NOTICE: [pool www] child 22656 started
[06-Sep-2017 11:30:26] WARNING: [pool www] child 22488 exited on signal 11 (SIGSEGV - core dumped) after 17.285823 seconds from start
[06-Sep-2017 11:30:26] NOTICE: [pool www] child 22658 started
[06-Sep-2017 11:30:27] WARNING: [pool www] child 22489 exited on signal 7 (SIGBUS - core dumped) after 17.945599 seconds from start
[06-Sep-2017 11:30:27] NOTICE: [pool www] child 22660 started
[06-Sep-2017 11:30:29] WARNING: [pool www] child 22491 exited on signal 7 (SIGBUS - core dumped) after 19.904885 seconds from start
[06-Sep-2017 11:30:29] NOTICE: [pool www] child 22662 started
[06-Sep-2017 11:30:31] WARNING: [pool www] child 22493 exited on signal 7 (SIGBUS - core dumped) after 21.964978 seconds from start
[06-Sep-2017 11:30:31] NOTICE: [pool www] child 22664 started
[06-Sep-2017 11:30:33] WARNING: [pool www] child 22494 exited on signal 7 (SIGBUS - core dumped) after 23.903895 seconds from start
[06-Sep-2017 11:30:33] NOTICE: [pool www] child 22666 started
[06-Sep-2017 11:30:35] WARNING: [pool www] child 22496 exited on signal 7 (SIGBUS - core dumped) after 25.952591 seconds from start
[06-Sep-2017 11:30:35] NOTICE: [pool www] child 22668 started
[06-Sep-2017 11:30:37] WARNING: [pool www] child 22497 exited on signal 7 (SIGBUS - core dumped) after 27.943815 seconds from start
[06-Sep-2017 11:30:37] NOTICE: [pool www] child 22670 started
[ 本帖最后由 stanley178 于 2017-9-6 11:32 编辑 ]

TOP

PHP版本号:5.6.31,数据库是:MariaDB  10.0( 安装选项倒数第二个)
好像找到原因了,是我装了缓存xcache,然后我把这个卸载了就没出现这个了。

[ 本帖最后由 stanley178 于 2017-9-6 11:47 编辑 ]

TOP

1.2、1.3和1.4编译参数、配置上基本上都没动,1.4上多了一层防跨目录的设置(常见问题有移除方法),其他都一样
看cron.php 里有lnmp这几个版本一直就默认禁用的shell_exec函数
可以尝试移除防跨目录设置、和上面的禁用函数后试试不行的话开php-fpm慢日志和错误日志看看

TOP