fecmall-2 安装应用扩展报错:502 Bad Gateway

bug问题 · Fecmall · 于 11天前 发布 · 53 次阅读

fecmall-2 安装应用扩展报错:502 Bad Gateway

报错信息:

<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.8.1</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

php超时导致的问题,打印php error log

[09-Sep-2019 14:10:40] WARNING: [pool www] child 11186, script '/www/web/xxx/fecshop/appadmin/web/index.php' (request: "GET /index.php?namespace=fectmelani&packageName=fecmall&folderName=melani_theme&addonName=melani_theme%20%E9%80%82%E5%90%88%E5%81%9A%E5%8C%96%E5%A6%86%E5%93%81%E6%9C%8D%E8%A3%85%E7%AD%89%E5%A5%B3%E6%80%A7%E6%9C%8D%E9%A5%B0%E7%9A%84%E6%A8%A1%E6%9D%BF") execution timed out (61.834350 sec), terminating
[09-Sep-2019 14:10:40] WARNING: [pool www] child 11186 exited on signal 15 (SIGTERM) after 1020.071302 seconds from start
[09-Sep-2019 14:10:40] NOTICE: [pool www] child 11434 started

设置了 max_execution_time 无效

最终解决解决:

php-fpm.conf 设置 request_terminate_timeout

request_terminate_timeout = 0

共收到 2 条回复
Fecmall#111天前 0 个赞

php超时导致的问题,打印php error log

[09-Sep-2019 14:10:40] WARNING: [pool www] child 11186, script '/www/web/xxx/fecshop/appadmin/web/index.php' (request: "GET /index.php?namespace=fectmelani&packageName=fecmall&folderName=melani_theme&addonName=melani_theme%20%E9%80%82%E5%90%88%E5%81%9A%E5%8C%96%E5%A6%86%E5%93%81%E6%9C%8D%E8%A3%85%E7%AD%89%E5%A5%B3%E6%80%A7%E6%9C%8D%E9%A5%B0%E7%9A%84%E6%A8%A1%E6%9D%BF") execution timed out (61.834350 sec), terminating
[09-Sep-2019 14:10:40] WARNING: [pool www] child 11186 exited on signal 15 (SIGTERM) after 1020.071302 seconds from start
[09-Sep-2019 14:10:40] NOTICE: [pool www] child 11434 started

Fecmall#211天前 0 个赞

设置了 max_execution_time 无效

最终解决解决:

php-fpm.conf 设置 request_terminate_timeout

request_terminate_timeout = 0

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics