我使用 Passenger 时遇到以下错误。这似乎只有在使用 2.3.11 时才会出现问题。我怎样才能解决这个问题?
*** Passenger ERROR (ext/common/ApplicationPool/../SpawnManager.h:220):
Could not start the spawn server: /Users/oprogfrogo/.rvm/bin/ruby-1.8.7-p334@2311: Permission denied (13)
[ pid=565 thr=0x7fff70bedcc0 file=ext/apache2/Hooks.cpp:864 time=2011-06-24 08:19:03.845 ]: Unexpected error in mod_passenger: Cannot spawn application '/Users/oprogfrogo/Documents/eclipse_workspace/contracts': Could not write 'spawn_application' command to the spawn server: Broken pipe (32)
Backtrace:
in 'virtual Passenger::SessionPtr Passenger::ApplicationPool::Client::get(const Passenger::PoolOptions&)' (Client.h:750)
in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:297)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:566)
没有权限。我会调查两个地方
- 检查应用程序目录的权限。
- 检查 apache 配置文件中的路径,例如应该是应用程序的公共目录。
再试一次
看来问题出在rvm上。您是否为此 2.3.11 应用程序使用不同的 ruby 库?
参考
3 好的建议:http://www.modrails.com/documentation/Users%20guide%20Apache.html#_the_apache_error_log_says_that_the_spawn_manager_script_does_not_exist_or_that_it_does_not_have_permission_to_execute_it http://www.modrails.com/documentation/Users%20guide%20Apache.html#_the_apache_error_log_says_that_the_spawn_manager_script_does_not_exist_or_that_it_does_not_have_permission_to_execute_it
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)