2016-02-02 42 views
3

我已經使用bundle --standalone在CentOS 7上部署了我的web應用程序,並已配置應用程序使用.bundle/config來使用正確的寶石。它的偉大工程,當我用rails server,但是當我set it up to use passenger我得到以下錯誤:乘客無法爲應用程序產生進程

[ 2016-02-02 13:27:50.7037 5134/7fb8225b8700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /var/www/rails-web: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. 
    Error ID: 7b0eafb9 
    Error details saved to: /tmp/passenger-error-YR2EzW.html 
    Message from application: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read <a href="https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems">this article</a> for more information about this problem.<br> 
<h2>Raw process output:</h2> 
<pre> 
/usr/share/rubygems/rubygems/path_support.rb:68:in `path=&apos;: undefined method `+&apos; for nil:NilClass (NoMethodError) 
    from /usr/share/rubygems/rubygems/path_support.rb:30:in `initialize&apos; 
    from /usr/share/rubygems/rubygems.rb:357:in `new&apos; 
    from /usr/share/rubygems/rubygems.rb:357:in `paths&apos; 
    from /usr/share/rubygems/rubygems.rb:379:in `path&apos; 
    from /usr/share/rubygems/rubygems/specification.rb:794:in `dirs&apos; 
    from /usr/share/rubygems/rubygems/specification.rb:658:in `each_normal&apos; 
    from /usr/share/rubygems/rubygems/specification.rb:669:in `_all&apos; 
    from /usr/share/rubygems/rubygems/specification.rb:822:in `each&apos; 
    from /usr/share/rubygems/rubygems/specification.rb:864:in `find&apos; 
    from /usr/share/rubygems/rubygems/specification.rb:864:in `find_inactive_by_path&apos; 
    from /usr/share/rubygems/rubygems.rb:175:in `try_activate&apos; 
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:132:in `rescue in require&apos; 
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:144:in `require&apos; 
    from &lt;internal:abrt_prelude&gt;:2:in `&lt;compiled&gt;&apos; 
</pre> 

代碼周圍path_support.rb:68包括設置GEM_PATH。這個錯誤信息意味着什麼,我該如何解決它。謝謝。

回答

0

這似乎是乘客在/home/<username>/.gem/ruby作爲其產卵過程的一部分。如果/home/<username>不存在(就像沒有主目錄的系統用戶一樣),你會得到這個錯誤。

這裏是bug report

相關問題