我实现了一个新的php类,它将PDF文档连接成一个文件。在我的开发本地服务器上,一切正常。将它推送到生产服务器后,我遇到了“Bad Gateway”错误。
/var/log/php5-fpm.log:
4-Mär-2014 11:20:54] WARNING: [pool www] child 17386 exited on signal 11 (SIGSEGV - core dumped) after 10.380074 seconds from start
/var/log/nginx/example.com.error.log:
2014/03/24 11:58:25 [debug] 18761#0: *613 recv: fd:7 -1 of 4096
2014/03/24 11:58:25 [error] 18761#0: *613 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 79.200.179.25, server: example.com, request: "GET /documents/pdf_generator/140183/en HTTP/1.1", upstream: "fastcgi://unix:/tmp/php5-fpm.sock:", host: "example.com", referrer: "http://booker.visioncode.de/documents/overview"
2014/03/24 11:58:25 [debug] 18761#0: *613 http next upstream, 2
2014/03/24 11:58:25 [debug] 18761#0: *613 free rr peer 1 4
2014/03/24 11:58:25 [debug] 18761#0: *613 finalize http upstream request: 502
2014/03/24 11:58:25 [debug] 18761#0: *613 finalize http fastcgi request
2014/03/24 11:58:25 [debug] 18761#0: *613 close http upstream connection: 7
2014/03/24 11:58:25 [debug] 18761#0: *613 free: 00000000017204E0, unused: 48
2014/03/24 11:58:25 [debug] 18761#0: *613 event timer del: 7: 1395659005493
2014/03/24 11:58:25 [debug] 18761#0: *613 reusable connection: 0
2014/03/24 11:58:25 [debug] 18761#0: *613 http finalize request: 502, "/index.php?/documents/pdf_generator/140183/en" a:1, c:1
2014/03/24 11:58:25 [debug] 18761#0: *613 http special response: 502, "/index.php?/documents/pdf_generator/140183/en"
2014/03/24 11:58:25 [debug] 18761#0: *613 HTTP/1.1 502 Bad Gateway
我谷歌约3个小时并修改了大量的内存和超时设置,但仍然是同样的错误。我将所有版本更新为在我的开发本地计算机上运行的版本 - 没有更改。
但是当我“/etc/init.d/php5-fpm reload”时,我可以在完成后一次访问脚本(生成PDF并且没有错误输出)。如果我再次尝试调用pdf生成器,它将返回“Bad gateway”。
可能有什么问题???