【问题标题】:Could not find i18n-0.7.0 in any of the sources (Bundler::GemNotFound)在任何源中都找不到 i18n-0.7.0 (Bundler::GemNotFound)
【发布时间】:2017-05-18 22:36:11
【问题描述】:

在 Ubuntu 16.04 LTS 上将插件安装到 Redmine 后出现以下错误。

网站显示:

“很抱歉,出了点问题。我们已收到有关此问题的通知,我们会尽快查看。”

错误是:

“在任何源中都找不到 i18n-0.7.0 (Bundler::GemNotFound)”

日志是:

App 7302 stdout: 
App 7302 stdout: 
[ 2017-05-18 17:18:04.7070 6519/7fc7b81af700 App/Implementation.cpp:287 ]: Could not spawn process for application /opt/redmine-3.3.3-0/apps/redmine/htdocs/: An error occured  w hile starting up the preloader.
 Error ID: 5031bd31
  Error details saved to: /tmp/passenger-error.l3kNMa
  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>daemon</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 i18n-0.7.0 in any of the sources (Bundler::GemNotFound)
<pre>  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/spec_set.rb:87:in `block in materialize&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/spec_set.rb:80:in `map!&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/spec_set.rb:80:in `materialize&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/definition.rb:176:in `specs&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/definition.rb:235:in `specs_for&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/definition.rb:224:in `requested_specs&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/runtime.rb:118:in `block in definition_method&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/runtime.rb:19:in `setup&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler.rb:100:in `setup&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/setup.rb:20:in `&lt;top (required)&gt;&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.6/lib/phusion_passenger/loader_shared_helpers.rb:278:in `block in run_load_path_setup_code&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.6/lib/phusion_passenger/loader_shared_helpers.rb:381:in `running_bundler&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.6/lib/phusion_passenger/loader_shared_helpers.rb:276:in `run_load_path_setup_code&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.6/helper-scripts/rack-preloader.rb:99:in `preload_app&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.6/helper-scripts/rack-preloader.rb:157:in `&lt;module:App&gt;&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.6/helper-scripts/rack-preloader.rb:29:in `&lt;module:PhusionPassenger&gt;&#39;
  /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.6/helper-scripts/rack-preloader.rb:28:in `&lt;main&gt;&#39;</pre>


[ 2017-05-18 17:18:04.7174 6519/7fc7b99f3700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 4-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 5031bd31. Please see earlier logs for details about the error.

可能是什么问题?

【问题讨论】:

  • 您可以通过 SSH 连接到您的服务器吗?如果是这样,请尝试运行:` $ bundle install $ bundle show i18n ` 告诉我们你得到了什么
  • 在 cmd 行中试试这个 bundle exec rake rails:update:bin 帮助我。
  • $ bundle install 仍然可以正常工作。当我运行 $ bundle show i18n 时,我得到 /var/lib/gems/2.3.0/gems/i18n-0.7.0bundle exec rake rails:update:bin 给我一个错误,Mysql2::Error: Access denied for user 'root'@'localhost' (using password: NO)

标签: ruby-on-rails ruby passenger redmine redmine-plugins


【解决方案1】:

我认为我尝试安装的插件与我运行的 Redmine 版本不兼容。

我将 Redmine 实例从 AWS 完全迁移到本地服务器,一切正常。我在 AWS 版本上安装了插件,在迁移到本地服务器后,Redmine 和插件一样工作。

在尝试将插件直接安装到本地服务器而不进行迁移后,我遇到了上述问题,但如果我只是将所有内容从 AWS 迁移到本地服务器,它就可以正常工作。

this topic

【讨论】:

    猜你喜欢
    • 2012-06-08
    • 1970-01-01
    • 2019-04-08
    • 2014-06-18
    • 2018-04-08
    • 2012-04-19
    • 2015-03-04
    • 2014-07-11
    • 2019-11-16
    相关资源
    最近更新 更多