使用-e生产的乘客启动错误

时间:2013-07-17 14:54:40

标签: ruby-on-rails-3.2 passenger

当我用

开始乘客时

source ./railsenv.sh;乘客启动-p 50060 -e production -d

然而,当我切换到源./railsenv.sh时,有错误;乘客开始-p 50060 -d。这是好的。

有人有想法吗?

ENV:

rails:3.2.13

乘客:3.09

ruby​​ 1.9.2


环境中的

production.rb:

#代码不会在请求之间重新加载   config.cache_classes = true

#禁用完整错误报告并启用缓存   config.consider_all_requests_local = false   config.action_controller.perform_caching = true

#禁用Rails的静态资产服务器(Apache或nginx已经这样做了)   config.serve_static_assets = false

#压缩JavaScripts和CSS   config.assets.compress = true

如果错过预编译资产,请不要回退到资产管道   config.assets.compile = false

#为资产URL生成摘要   config.assets.digest = true

config.i18n.fallbacks = true

#向已注册的听众发送弃用通知   config.active_support.deprecation =:notify


错误:

*** [pid = 11397 thr = 13479140 file = utils.rb:176 time = 2013-07-17 16:36:49.230]:PhusionPassenger :: Rack :: ApplicationSpawner中的异常TypeError(没有为类绑定定义marshal_dump) (流程11397,线程#):***         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/utils.rb:141:in"dump&#39 ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/utils.rb:141:in在marshal_exception中的救援& #39;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/utils.rb:136:in`marshal_exception' ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/utils.rb:584:in救援报告_app_init_status& #39;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/utils.rb:561:in`report_app_init_status' ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/rack/application_spawner.rb:153:in`initialize_server& #39;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/abstract_server.rb:204:in`start_synchronously' ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/abstract_server.rb:180:in'start' ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/rack/application_spawner.rb:128:in'start& #39;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/spawn_manager.rb:253:in`block(2在spawn_rack_application'中         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/abstract_server_collection.rb:132:in`lookup_or_add' ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/spawn_manager.rb:246:in在spawn_rack_application&中的块#39;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/abstract_server_collection.rb:82:in`lock in synchronize& #39;         来自:10:在'同步'         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/abstract_server_collection.rb:79:in同步&#39 ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/spawn_manager.rb:244:in`spawn_rack_application' ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/spawn_manager.rb:137:in`spawn_application' ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/spawn_manager.rb:275:in` handle_spawn_application' ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/abstract_server.rb:357:in`server_main_loop' ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/abstract_server.rb:206:in`start_synchronously' ;         来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/helper-scripts/passenger-spawn-server:99:in`& #39; *** spawn管理器中的异常TypeError(需要IO的实例)(进程11351,线程#):

1 个答案:

答案 0 :(得分:0)

你正在运行一个非常旧版本的Phusion Passenger。试试Phusion Passenger 4.0.10(最新版本),它具有更多功能,更稳定。