Project

General

Profile

Update 4.2.1 -> 4.2.10, Could not find gem globalid

Added by Adi Meier about 1 year ago

After Update from 4.2.1 to 4.2.10 I get Error in appache error.log.

I changed ruby to 2.7.2
As user redmine I tried
  • bundle update rails
  • bundle install
  • bundle config set --local without 'development test'

globalid is instaalled as version 1.1.0

App 1327 stdout: 
App 1327 stdout: 
[ 2023-09-25 11:22:13.9852 214/7fc7107d8700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine: An error occurred while starting up the preloader.
  Error ID: adec0697
  Error details saved to: /tmp/passenger-error-niz6Tp.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 redmine 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 gem 'globalid (> 0.4.2)' in locally installed gems.
(Bundler::GemNotFound)

  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/resolver.rb:304:in `raise_not_found!&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/resolver.rb:357:in `block in prepare_dependencies&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/resolver.rb:342:in `each&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/resolver.rb:342:in `map&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/resolver.rb:342:in `prepare_dependencies&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/resolver.rb:53:in `setup_solver&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/resolver.rb:28:in `start&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/definition.rb:570:in `start_resolution&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/definition.rb:301:in `resolve&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/definition.rb:523:in `materialize&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/definition.rb:200:in `specs&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/definition.rb:266:in `specs_for&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/runtime.rb:18:in `setup&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler.rb:162:in `setup&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/setup.rb:23:in `block in &lt;top (required)&gt;&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/ui/shell.rb:159:in `with_level&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/ui/shell.rb:111:in `silence&#39;
  /usr/local/rvm/gems/ruby-2.7.2/gems/bundler-2.4.19/lib/bundler/setup.rb:23:in `&lt;top (required)&gt;&#39;
  /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require&#39;
  /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require&#39;
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem&#39;
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code&#39;
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler&#39;
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code&#39;
  /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app&#39;
  /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `&lt;module:App&gt;&#39;
  /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `&lt;module:PhusionPassenger&gt;&#39;
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `&lt;main&gt;&#39;

[ 2023-09-25 11:22:13.9973 214/7fc71295f700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-4] Cannot checkout session because a spawning error occurred. The identifier of the error is adec0697. Please see earlier logs for details about the error.


Replies (3)

RE: Update 4.2.1 -> 4.2.10, Could not find gem globalid - Added by C S about 1 year ago

Please note: Redmine 4.2 does not support Ruby version 2.7.0 -> please use Ruby 2.7.2 or higher. See also RedmineInstall

RE: Update 4.2.1 -> 4.2.10, Could not find gem globalid - Added by Adi Meier about 1 year ago

Sure. Its ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]

RE: Update 4.2.1 -> 4.2.10, Could not find gem globalid - Added by Williams Hill about 1 year ago

Thanks, I will check it and if I face any issue, I will update you.

    (1-3/3)