[DRE-maint] Bug#912806: redmine: Could not find public_suffix error with current testing packages

Soren Stoutner soren at smallbusinesstech.net
Sat Nov 3 21:51:07 GMT 2018

Package: redmine
Version: 3.4.6-1
Severity: grave
Justification: renders package unusable

After upgrading to the current packages in Debian testing, Redmine produces the following error in /var/log/apache2/error.log
every time a page is loaded:

[ 2018-11-03 01:08:23.2570 28268/7f74e1b3f700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-48] Cannot checkout session because a spawning error occurred.
The identifier of the error is 44685d16. Please see earlier logs for details about the error.
App 16470 stdout:
App 16470 stdout:
[ 2018-11-03 01:08:33.6710 28268/7f74d9779700 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: 1303ae00
  Error details saved to: /tmp/passenger-error-19WGeg.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>

  <li>Is this app supposed to be run as the <code>www-data</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>

<p>-------- The exception is as follows: -------</p>
Could not find public_suffix-2.0.5 in any of the sources (Bundler::GemNotFound)
<pre>  /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:88:in `block in materialize'
  /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:82:in `map!'
  /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:82:in `materialize'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:170:in `specs'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:237:in `specs_for'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:226:in `requested_specs'
  /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:108:in `block in definition_method'
  /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:20:in `setup'
  /usr/lib/ruby/vendor_ruby/bundler.rb:107:in `setup'
  /usr/lib/ruby/vendor_ruby/bundler/setup.rb:20:in `<top (required)>'
  /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
  /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `<module:App>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'</pre>

Debian testing has ruby-public-suffix version 3.0.3+ds-1.  Redmine is looking for version 2.0.5.

2.0.5 can be manually installed by going to the /usr/share/redmine directory and running `sudo bundle install`.
But that isn't a good Debian solution because it directly downloads the gem file which will not be managed by apt-get for automatic update or removal.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages redmine depends on:
ii  dbconfig-common                 2.0.10
ii  debconf [debconf-2.0]           1.5.69
ii  libjs-raphael                   2.1.0-1
ii  redmine-mysql                   3.4.6-1
ii  ruby                            1:2.5.1
ii  ruby-actionpack-action-caching  1.2.0-2
ii  ruby-actionpack-xml-parser      1.0.2-3
ii  ruby-bundler                    1.16.1-3
ii  ruby-coderay                    1.1.2-2
ii  ruby-i18n                       0.7.0-2
ii  ruby-jquery-rails               4.3.3-1
ii  ruby-mime-types                 3.2.2-1
ii  ruby-mimemagic                  0.3.2+dfsg-1
ii  ruby-net-ldap                   0.16.1-1
ii  ruby-openid                     2.7.0debian-1
ii  ruby-protected-attributes       1.1.3-2
ii  ruby-rack                       1.6.4-5
ii  ruby-rack-openid                1.4.2-1
ii  ruby-rails                      2:4.2.10-1
ii  ruby-rails-observers            0.1.5-1
ii  ruby-rbpdf                      1.19.5+ds.1-1
ii  ruby-redcarpet                  3.4.0-4+b1
ii  ruby-request-store              1.3.0-1
ii  ruby-rmagick                    2.16.0-4+b1
ii  ruby-roadie-rails               1.3.0-1

Versions of packages redmine recommends:
ii  passenger  5.0.30-1+b4

Versions of packages redmine suggests:
pn  bzr         <none>
ii  cvs         2:1.12.13+real-26
pn  darcs       <none>
ii  git         1:2.19.1-1
pn  mercurial   <none>
pn  ruby-fcgi   <none>
ii  subversion  1.10.3-1+b1

-- debconf information excluded

More information about the Pkg-ruby-extras-maintainers mailing list