After recent world update, which brought the update dev-ruby/rails-5.2.4.2 -> 5.2.4.3, redmine (4.1.1) no longer works. To investigate, I have enabled "PassengerLogLevel 1" in /etc/apache2/modules.d/30_mod_passenger.conf looking into /var/log/apache2/error_log after apache2 restart and attempt to access redmine reveals: [ E 2020-05-21 18:04:50.2349 4328/To age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/lib/redmine: The application encountered the following error: Could not find gem 'rails (= 5.2.4.2)' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) So redmine requires rails of the exact version 5.2.4.2. But is should not - on https://www.redmine.org/projects/redmine/wiki/RedmineInstall, there is just generic version 5.2 mentioned. I've tried to delete /var/lib/redmine/Gemfile.lock, to no avail. I then edited /var/lib/redmine/Gemfile, changed gem 'rails', '5.2.4.2' to gem 'rails', '5.2.4.3' and redmine immediately began to work. But editing Gemfile is not what is one expected to do, or yes? Reproducible: Always
Created attachment 640744 [details] emerge-info.txt
this change in /var/lib/redmine/Gemfile is probably better: 6c6 < gem 'rails', '5.2.4.2' --- > gem 'rails', '>= 5.2.4.2' After that change, removing Gemfile.lock and restarting apache2 (which recreates the Gemfile.lock), redmine works fine with dev-ruby/rails-5.2.4.3 (all of the other gems in Gemfile (except rails) are specified using ">=" operator, not by fixed version...)
(In reply to Adam Purkrt from comment #2) > this change in /var/lib/redmine/Gemfile is probably better: > > 6c6 > < gem 'rails', '5.2.4.2' > --- > > gem 'rails', '>= 5.2.4.2' > > After that change, removing Gemfile.lock and restarting apache2 (which > recreates the Gemfile.lock), redmine works fine with dev-ruby/rails-5.2.4.3 > > (all of the other gems in Gemfile (except rails) are specified using ">=" > operator, not by fixed version...) This would be better (since rails 6.0 is not fully backward compatible). gem 'rails', '~> 5.2.4'
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f41bc627b6b7c6a5618fd62d1f4e6075965d23e0 commit f41bc627b6b7c6a5618fd62d1f4e6075965d23e0 Author: Azamat H. Hackimov <azamat.hackimov@gmail.com> AuthorDate: 2020-06-15 10:54:43 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-06-15 10:57:15 +0000 www-apps/redmine: fixing bugs Fixed bugs based on reports from Bugzilla: * #724384 - changed file permissions for config.ru to redmine:redmine * #724388 - updated Apache2's 10_redmine_vhost.conf to comply 2.4 syntax * #724464 - relaxing rails version to ~>5.2.4 Closes: https://bugs.gentoo.org/724384 Closes: https://bugs.gentoo.org/724388 Closes: https://bugs.gentoo.org/724464 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org> www-apps/redmine/files/10_redmine_vhost.conf | 3 +- www-apps/redmine/redmine-4.1.1-r1.ebuild | 231 +++++++++++++++++++++++++++ 2 files changed, 232 insertions(+), 2 deletions(-)