【问题标题】:Passenger could not spawn process for application乘客无法生成申请流程
【发布时间】:2016-05-11 20:34:45
【问题描述】:

我已经使用 bundle --standalone 在 CentOS 7 上部署了我的 webapp,并使用 .bundle/config 将应用程序配置为使用正确的 gem。当我使用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。此错误消息是什么意思,我该如何解决。谢谢。

【问题讨论】:

    标签: ruby-on-rails apache passenger bundler centos7


    【解决方案1】:

    这似乎是乘客在/home/&lt;username&gt;/.gem/ruby 中寻找作为其生成过程的一部分。如果/home/&lt;username&gt; 不存在(例如没有主目录的系统用户),您会收到此错误。

    这里是bug report

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-19
      • 1970-01-01
      • 2021-02-03
      相关资源
      最近更新 更多