gpt4 book ai didi

nginx - 是什么导致乘客抛出这个错误 "Cannot disable sole enabled process in group because spawning is not allowed ..."?

转载 作者:行者123 更新时间:2023-12-04 04:36:10 27 4
gpt4 key购买 nike

一下子,我的nginx错误日志全是这个错误信息

[ 2013-10-31 22:56:41.2124 19959/7ff254aae700 Pool2/Group.h:964 ]: Cannot disable sole enabled process in group /app/current#default because spawning is not allowed according to the current configuration options



这里 /app/current是我的 rails 应用程序所在的文件夹(它是 Rails.root )

此错误消息很可能来自 this Phusion Passenger source file 的第 962 行

我的生产应用程序实例之一卡住了。我怀疑这个错误是原因。

我不确定是哪个 configuration option在这里被引用。我该如何解决这个错误?

这个应用程序在相同的设置下运行了几个月。我上周刚刚将乘客升级到 4.0.20。

更新:

我正在使用OOB。这是我的乘客配置
 passenger_root /usr/local/rubies/1.9.3-p448/lib/ruby/gems/1.9.1/gems/passenger-4.0.20;
passenger_ruby /usr/bin/ruby_tuned;
passenger_max_pool_size 6;
passenger_spawn_method smart-lv2;
passenger_buffer_response on;
passenger_min_instances 5;
passenger_max_instances_per_app 0;
passenger_pool_idle_time 180;
passenger_max_requests 20;

最佳答案

您可能正在使用 out-of-band work但配置错误。从手册:

"Ensure that passenger_max_pool_size and passenger_min_instances are both larger than 1. Out-of-band work only works if there are at least 2 application processes."

关于nginx - 是什么导致乘客抛出这个错误 "Cannot disable sole enabled process in group because spawning is not allowed ..."?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19712933/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com