Project

General

Profile

[SOLVED] Problem installing Redmine 3.4.10 on CentOS 7.6

Added by anto cram almost 5 years ago

Hello, I have an issue installing Redmine and i don't get why.

Here are the specs :
ruby 2.4.6p354 (2019-04-01 revision 67394) [x86_64-linux]
CentOS Linux release 7.6.1810
MariaDb : 5.5.60
Phusion Passenger 6.0.2
bundler (default: 1.17.3)
Apache/2.4.6 (CentOS)

I used the bundle installed included with the packages, but when I connect to my site I have this error :

You have requested:
public_suffix ~> 2.0.5

The bundle currently has public_suffix locked at 3.0.3.
Try running `bundle update public_suffix`

If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update` (Bundler::GemNotFound)

/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/resolver.rb:287:in `block in verify_gemfile_dependencies_are_found!'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/resolver.rb:255:in `each'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/resolver.rb:255:in `verify_gemfile_dependencies_are_found!'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/resolver.rb:49:in `start'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/resolver.rb:22:in `resolve'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/definition.rb:258:in `resolve'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/definition.rb:170:in `specs'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/definition.rb:237:in `specs_for'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/definition.rb:226:in `requested_specs'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/runtime.rb:108:in `block in definition_method'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/runtime.rb:20:in `setup'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler.rb:107:in `setup'
/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/setup.rb:20:in `<top (required)>'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/share/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:363:in `activate_gem'
/usr/share/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:221:in `block in run_load_path_setup_code'
/usr/share/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:527:in `running_bundler'
/usr/share/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:220:in `run_load_path_setup_code'
/usr/share/passenger/helper-scripts/rack-preloader.rb:91:in `preload_app'
/usr/share/passenger/helper-scripts/rack-preloader.rb:189:in `block in <module:App>'
/usr/share/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:380:in `run_block_and_record_step_progress'
/usr/share/passenger/helper-scripts/rack-preloader.rb:188: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>'

I find that weird that the version in the bundle is not correct.
Is it normal ? Any Ideas ?

Thanks.

----------SOLUTION------------
Hello,

I found what was the issue if anyone has the problem.

The configuration of my passenger in my apache was wrong, so it was not using the right ruby version. (my passenger was installed via the yum repos)

To resolve the issue i had to type :
passenger-config about ruby-command

Which returns this :

passenger-config was invoked through the following Ruby interpreter:
Command: /usr/local/rvm/gems/ruby-2.4.6/wrappers/ruby
Version: ruby 2.4.6p354 (2019-04-01 revision 67394) [x86_64-linux]
To use in Apache: PassengerRuby /usr/local/rvm/gems/ruby-2.4.6/wrappers/ruby
To use in Nginx : passenger_ruby /usr/local/rvm/gems/ruby-2.4.6/wrappers/ruby
To use with Standalone: /usr/local/rvm/gems/ruby-2.4.6/wrappers/ruby /usr/bin/passenger start

  1. Notes for RVM users
    Do you want to know which command to use for a different Ruby interpreter? 'rvm use' that Ruby interpreter, then re-run 'passenger-config about ruby-command'.

So in my
/etc/httpd/conf.d/passenger.conf
I changed the PassengerRuby parameters with this :
PassengerRuby /usr/local/rvm/gems/ruby-2.4.6/wrappers/ruby

and now my redmine is working on my CentOS with SELinux.

Hope it can helps people.