断流与流星+乘客+ Nginx

时间:2019-06-18 10:35:58

标签: node.js nginx meteor passenger

我在遵循这个指南的情况下,使用Passenger + Nginx制作了一个Meteor应用程序: https://www.phusionpassenger.com/library/walkthroughs/deploy/meteor/

我已将乘客配置为使用此配置运行多个节点线程:

   passenger_max_pool_size 8;
   passenger_min_instances 8;

流星应用程序为移动应用程序提供了API REST,我的问题是该API在系统日志中随机引起了以下段错误:

Passenger NodeA[24873]: segfault at 100000007 ip 000022bb101f46ef sp 00007f83f2037218 error 4
Passenger NodeA[18964]: segfault at 100000007 ip 000020339c6746ef sp 00007f79aa78b2f8 error 4

该错误随机发生在differents服务上,例如,我有一个POST服务,用于存储图片,nginx日志中约4倍的aprox记录如下:

[ W 2019-06-18 08:00:56.6081 9877/T9 age/Cor/Con/InternalUtils.cpp:96 ]: [Client 1-122] Sending 502 response: application did not send a complete response
[ N 2019-06-18 08:00:57.0585 9877/Tc age/Cor/CoreMain.cpp:1146 ]: Checking whether to disconnect long-running connections for process 10466, application /var/www/meteor/bundle (production)

另一个例子:

[ W 2019-06-18 08:11:12.2328 9877/Ti age/Cor/Con/InternalUtils.cpp:96 ]: [Client 6-161] Sending 502 response: application did not send a complete response
[ W 2019-06-18 08:11:15.1779 9877/T3 age/Cor/App/Poo/AnalyticsCollection.cpp:102 ]: Process (pid=13735, group=/var/www/meteor/bundle (production)) no longer exists! Detaching it from the pool.
[ N 2019-06-18 08:11:15.1779 9877/T3 age/Cor/CoreMain.cpp:1146 ]: Checking whether to disconnect long-running connections for process 13735, application /var/www/meteor/bundle (production)

我不知道如何调试此错误,

  

发送502响应:应用未发送完整的响应

当nginx没有返回响应但nginx日志未显示任何异常或有关此错误的任何内容且segfault日志也未显示该行时,消息应该来自乘客。

0 个答案:

没有答案