0

当我开始乘客时

来源./railsenv.sh;乘客开始 -p 50060 -e 生产 -d

但是,当我切换到源 ./railsenv.sh 时出现错误;乘客开始 -p 50060 -d。没关系。

有人有什么想法吗?

环境:

导轨:3.2.13

乘客:3.09

红宝石 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

# 压缩 JavaScript 和 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 中的异常类型错误(没有为类绑定定义 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' from /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 `rescue in marshal_exception' from /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:在 /nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1 的“marshal_exception”中。2-1002/support/lib/phusion_passenger/utils.rb:584:in `rescue in report_app_init_status' from /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:在来自 /nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4 的“report_app_init_status”中。 1.2-1002/support/lib/phusion_passenger/rack/application_spawner.rb:153:in `initialize_server' 来自 /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:在“开始”中来自 /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 '来自/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 :在来自/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的`lookup_or_add'中:在 /nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0 的“spawn_rack_application 中的块”中。9-x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize' from :10:in `synchronize' from /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 来自/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/。乘客/独立/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:来自/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-x86_64-ruby1.9.2-linux-gcc4.1.2-的`server_main_loop' 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 `' *** 生成管理器中的异常类型错误(需要 IO 实例)(进程 11351,线程 #):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:在/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-的“start_synchronously”中x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/helper-scripts/passenger-spawn-server:99:in `' *** 生成管理器中的异常类型错误(需要 IO 实例)(进程 11351,线程#):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:在/nokia/sa_nmp/home/cotaweb/.passenger/standalone/3.0.9-的“start_synchronously”中x86_64-ruby1.9.2-linux-gcc4.1.2-1002/support/helper-scripts/passenger-spawn-server:99:in `' *** 生成管理器中的异常类型错误(需要 IO 实例)(进程 11351,线程#):来自 /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 `' *** 生成管理器中的异常类型错误(需要 IO 实例)(进程 11351,线程 #):来自 /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 `' *** 生成管理器中的异常类型错误(需要 IO 实例)(进程 11351,线程 #):
4

1 回答 1

0

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

于 2013-07-17T18:05:49.590 回答