我有一个使用Nginx和Phusion Passenger运行的Rails应用程序。一切都运行良好好几个月,但在最后一次部署后,我收到了一个错误"我们很抱歉,但出了点问题。"。
Nginx日志告诉我们:
[ 2016-05-11 13:28:26.5617 17187/7ff504072700 App/Implementation.cpp:303 ]: Could not spawn process for application /home/a4aa2/rails/current: An error occured while starting up the preloader.
Error ID: 4153f320
Error details saved to: /tmp/passenger-error-VPT6E4.html
Message from application: <p>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:</p>
<pre class="commands">bundle install</pre>
<p>If that didn't work, then the problem is probably caused by your application being run under a different environment than it's supposed to. Please check the following:</p>
<ol>
<li>Is this app supposed to be run as the <code>a4aa2</code> user?</li>
<li>Is this app being run on the correct Ruby interpreter? Below you will
see which Ruby interpreter Phusion Passenger attempted to use.</li>
</ol>
<p>-------- The exception is as follows: -------</p>
Could not find mime-types-2.99.1 in any of the sources (Bundler::GemNotFound)
...etc...
我的宝石似乎全部可用:
[a4aa2@bellatrix ~]$ cd rails/current/
[a4aa2@bellatrix current]$ bundle
Using rake 10.5.0
Using i18n 0.7.0
Using json 1.8.3
...etc...
Bundle complete! 91 Gemfile dependencies, 113 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
我不知道如何调试它。我唯一能想到的是重新安装错误乘客并再试一次。
我在托管服务上。是否有可能还有其他Nginx进程/安装运行之前没有运行,现在这两个之间的事情搞砸了?
答案 0 :(得分:-4)
尝试捆绑更新:
bundle update