Redmine no longer working after upgrade vom Debian 10 to 11

Added by Joanne Reimers 28 days ago

Hi all,

For months my installation was doing fine - until I ran apt upgrade on my Debian 10. Since then, the only thing I see when accessing my Redmine is

We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.

My Apache error log says:

App 17423 stdout: 
App 17423 stdout: 
[ 2021-09-25 15:18:50.4349 14905/7f7a01575700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /usr/share/redmine: An error occurred while starting up the preloader.
  Error ID: 6640eacf
  Error details saved to: /tmp/passenger-error-7OjHUg.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 www-data 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 'rails (~> 5.2.2)' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)

  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/resolver.rb:314:in `block in verify_gemfile_dependencies_are_found!&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/resolver.rb:282:in `each&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/resolver.rb:282:in `verify_gemfile_dependencies_are_found!&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/resolver.rb:49:in `start&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/resolver.rb:22:in `resolve&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/definition.rb:273:in `resolve&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/definition.rb:175:in `specs&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/definition.rb:245:in `specs_for&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/definition.rb:227:in `requested_specs&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:91:in `block in definition_method&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:20:in `setup&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler.rb:148:in `setup&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/setup.rb:20:in `block in &lt;top (required)&gt;&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/ui/shell.rb:136:in `with_level&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/ui/shell.rb:88:in `silence&#39;
  /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/setup.rb:20:in `&lt;top (required)&gt;&#39;
  /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require&#39;
  /usr/lib/ruby/vendor_ruby/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;

[ 2021-09-25 15:18:50.4441 14905/7f7a03f7e700 age/Cor/Con/CheckoutSession.cpp:283 ]: [Client 2-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 6640eacf. Please see earlier logs for details about the error.

lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:    bullseye
ruby -v
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux-gnu]
rails --version
Rails 6.1.4.1
mysql --version
mysql  Ver 15.1 Distrib 10.3.29-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
dpkg -l|grep ruby
ii  libruby2.7:amd64                2.7.4-1                           amd64        Libraries necessary to run Ruby 2.7
ii  rake                            13.0.3-1                          all          ruby make-like utility
ii  ruby                            1:2.7+2                           amd64        Interpreter of object-oriented scripting language Ruby (default version)
ii  ruby-actioncable                2:6.0.3.7+dfsg-2                  all          WebSocket framework for Rails (part of Rails)
ii  ruby-actionmailbox              2:6.0.3.7+dfsg-2                  all          receive and process incoming emails (part of Rails)
ii  ruby-actionmailer               2:6.0.3.7+dfsg-2                  all          email composition, delivery framework (part of Rails)
ii  ruby-actionpack                 2:6.0.3.7+dfsg-2                  all          web-flow and rendering framework putting the VC in MVC (part of Rails)
ii  ruby-actionpack-action-caching  1.2.1-1                           all          action caching for Action Pack
ii  ruby-actionpack-xml-parser      2.0.1-4                           all          XML parameters parser for Action Pack
ii  ruby-actiontext                 2:6.0.3.7+dfsg-2                  all          edit and display rich text (part of Rails)
ii  ruby-actionview                 2:6.0.3.7+dfsg-2                  all          framework for handling view template lookup and rendering (part of Rails)
ii  ruby-activejob                  2:6.0.3.7+dfsg-2                  all          job framework with pluggable queues (part of Rails)
ii  ruby-activemodel                2:6.0.3.7+dfsg-2                  all          toolkit for building modeling frameworks (part of Rails)
ii  ruby-activerecord               2:6.0.3.7+dfsg-2                  all          object-relational mapper framework (part of Rails)
ii  ruby-activestorage              2:6.0.3.7+dfsg-2                  all          local and cloud file storage framework (part of Rails)
ii  ruby-activesupport              2:6.0.3.7+dfsg-2                  all          collection of utility classes used by the Rails framework
ii  ruby-addressable                2.7.0-2                           all          alternative URI implementation for Ruby
ii  ruby-atomic                     1.1.16-3+b1                       amd64        atomic reference implementation for JRuby, Rubinius, and MRI
ii  ruby-builder                    3.2.4-1                           all          Builders for XML MarkUps
ii  ruby-bundler                    2.2.5-2                           all          Manage Ruby application dependencies (runtime)
ii  ruby-coderay                    1.1.3-4                           all          Ruby library for syntax highlighting
ii  ruby-concurrent                 1.1.6+dfsg-3                      all          modern concurrency tools for Ruby
ii  ruby-crass                      1.0.2-2.1                         all          CSS parser based on the CSS Syntax Level 3 draft
ii  ruby-css-parser                 1.6.0-1                           all          Ruby CSS parser library
ii  ruby-csv                        3.1.9-1                           all          CSV reader and writer
ii  ruby-dev:amd64                  1:2.7+2                           amd64        Header files for compiling extension modules for Ruby (default version)
ii  ruby-erubi                      1.9.0-1                           all          Small ERB Implementation
ii  ruby-globalid                   0.4.2+REALLY.0.3.6-1              all          reference models by URI for Ruby on Rails
ii  ruby-hike                       1.2.1-3.1                         all          Ruby library to find files in a set of paths
ii  ruby-htmlentities               4.3.3-1                           all          Ruby library for handling HTML entities
ii  ruby-i18n                       1.8.8-1                           all          I18n and localization solution for Ruby
ii  ruby-jquery-rails               4.3.5-2                           all          jQuery for Rails 3+
ii  ruby-loofah                     2.7.0+dfsg-1                      all          manipulation and transformation of HTML/XML documents and fragments
ii  ruby-mail                       2.7.1+dfsg1-1.1                   all          Ruby library to handle email generation, parsing and sending
ii  ruby-marcel                     0.3.2-4                           all          Simple mime type detection
ii  ruby-method-source              1.0.0-2                           all          Retrieve the sourcecode for a method as a Ruby string
ii  ruby-mime-types                 3.3.1-1                           all          guess MIME type of files
ii  ruby-mime-types-data            3.2015.1120-1.1                   all          registry for information about MIME media type definitions
ii  ruby-mimemagic                  0.3.5+dfsg-1                      all          fast MIME detection by extension or content
ii  ruby-mini-mime                  1.0.2-1                           all          Lightweight mime type implementation
ii  ruby-minitest                   5.13.0-1                          all          Ruby test tools supporting TDD, BDD, mocking, and benchmarking
ii  ruby-multi-json                 1.14.1-1                          all          Ruby library to provide easy switching between different JSON backends
ii  ruby-net-ldap                   0.16.1-1                          all          LDAP client library for Ruby
ii  ruby-net-telnet                 0.1.1-2                           all          telnet client library
ii  ruby-nio4r                      2.3.1-2+b1                        amd64        Ruby library providing a selector API for monitoring IO objects
ii  ruby-nokogiri                   1.11.1+dfsg-2                     amd64        HTML, XML, SAX, and Reader parser for Ruby
ii  ruby-oj:amd64                   3.11.0-1                          amd64        fast JSON parser and serializer for Ruby
ii  ruby-pg                         1.2.3-1+b1                        amd64        PostgreSQL interface for Ruby
ii  ruby-pkg-config                 1.4.4-1                           all          pkg-config implementation for Ruby
ii  ruby-power-assert               1.1.7-2                           all          library showing values of variables and method calls in an expression
ii  ruby-public-suffix              3.0.3+ds-1                        all          Domain name parser based on the Public Suffix List
ii  ruby-rack                       2.1.4-3                           all          modular Ruby webserver interface
ii  ruby-rack-test                  0.7.0-1.1                         all          Simple testing API built on Rack
ii  ruby-rails                      2:6.0.3.7+dfsg-2                  all          MVC ruby based framework geared for web application development
ii  ruby-rails-deprecated-sanitizer 1.0.3-3.1                         all          HTML sanitizer API extracted from Action View
ii  ruby-rails-dom-testing          2.0.3-3                           all          SOM and Selector assertions for Rails applications
ii  ruby-rails-html-sanitizer       1.3.0-1                           all          HTML sanitization for Rails applications
ii  ruby-rails-observers            0.1.5-1.1                         all          toolkit to build Rails observers (part of Rails)
ii  ruby-railties                   2:6.0.3.7+dfsg-2                  all          tools for creating, working with, and running Rails applications
ii  ruby-rbpdf                      1.20.1-1                          all          Ruby library for PDF generation
ii  ruby-rbpdf-font                 1.20.1-1                          all          Ruby library for PDF generation (font definitions)
ii  ruby-redcarpet:amd64            3.5.1-1                           amd64        Fast, safe and extensible Markdown to (X)HTML parser for Ruby
ii  ruby-request-store              1.5.0-2                           all          per-request global variable storage for Rack-based web servers
ii  ruby-rmagick                    2.16.0-7                          amd64        ImageMagick API for Ruby
ii  ruby-roadie                     4.0.0-1                           all          library for composing HTML email
ii  ruby-roadie-rails               2.1.1-2                           all          library for composing HTML email in Rails applications
ii  ruby-rouge                      3.21.0-1                          all          pure-Ruby syntax highlighter compatible with pygments
ii  ruby-rubygems                   3.2.5-2                           all          Package management framework for Ruby
ii  ruby-sprockets                  3.7.2-1                           all          Rack-based asset packaging system
ii  ruby-sprockets-rails            3.2.1-1                           all          Sprockets Rails integration (part of Rails)
ii  ruby-test-unit                  3.3.9-1                           all          unit testing framework for Ruby
ii  ruby-thor                       1.0.1-1                           all          Ruby scripting framework
ii  ruby-thread-safe                0.3.6-1                           all          thread-safe collections and utilities for Ruby
ii  ruby-tilt                       2.0.10-1                          all          Generic interface to multiple Ruby template engines
ii  ruby-tzinfo                     1.2.6-1                           all          Daylight-savings aware timezone library
ii  ruby-websocket-driver           0.6.3-3+b1                        amd64        WebSocket protocol handler with pluggable I/O
ii  ruby-websocket-extensions       0.1.5-1                           all          Generic extension manager for WebSocket connections
ii  ruby-xmlrpc                     0.3.0-2                           all          XMLRPC library for Ruby
ii  ruby-zeitwerk                   2.4.2-1                           all          Efficient and thread-safe constant autoloader
ii  ruby2.7                         2.7.4-1                           amd64        Interpreter of object-oriented scripting language Ruby
ii  ruby2.7-dev:amd64               2.7.4-1                           amd64        Header files for compiling extension modules for the Ruby 2.7
ii  ruby2.7-doc                     2.7.4-1                           all          Documentation for Ruby 2.7
ii  rubygems-integration            1.18                              all          integration of Debian Ruby packages with Rubygems
dpkg -l|grep rails
ii  ruby-jquery-rails               4.3.5-2                           all          jQuery for Rails 3+
ii  ruby-rails                      2:6.0.3.7+dfsg-2                  all          MVC ruby based framework geared for web application development
ii  ruby-rails-deprecated-sanitizer 1.0.3-3.1                         all          HTML sanitizer API extracted from Action View
ii  ruby-rails-dom-testing          2.0.3-3                           all          SOM and Selector assertions for Rails applications
ii  ruby-rails-html-sanitizer       1.3.0-1                           all          HTML sanitization for Rails applications
ii  ruby-rails-observers            0.1.5-1.1                         all          toolkit to build Rails observers (part of Rails)
ii  ruby-roadie-rails               2.1.1-2                           all          library for composing HTML email in Rails applications
ii  ruby-sprockets-rails            3.2.1-1                           all          Sprockets Rails integration (part of Rails)
dpkg -l|grep redmine
ii  redmine                         4.0.7-1~bpo10+1                   all          flexible project management web application
ii  redmine-pgsql                   4.0.7-1~bpo10+1                   all          metapackage providing PostgreSQL dependencies for Redmine

I guess the key is this:

/usr/share/redmine/bin/about
Could not find gem 'rails (~> 5.2.2)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.

If i run bundle install as root, I get the message that this will break my installation. If I run it as non-root, I get a "missing gemfile" message.

In advance, my apologies for knowing nothing at all about Ruby and Rails. Regrettably I can't even tell where my gemfile is and what it should read. I hope the information above sheds some light on what is going wrong.

Kind regards,

Joanne

Replies (1)

RE: Redmine no longer working after upgrade vom Debian 10 to 11 - Added by Joanne Reimers 28 days ago

My "solution". Mind the quotes, because I think it's dirty:

apt install rails

(don't know whether this one was neccessary)

gem install rails

(not sure about this one as well)

cd /usr/share/redmine/
bundle install

and ignore the warnings that I should not run this command as root. On the other hand bundle install tries to write into directories that are only writeable for root, so I'm afraid I have no choice. Nevertheless I feel dirty.

(1-1/1)