Redmine Stopped Working - Ubuntu 18.04
Added by John Hilario about 5 years ago
Hi Redmine suddenly stopped working.
Here's the error.log from apache
root@redmine:/home/redmine# cat /var/log/apache2/error.log
[ 2019-11-07 03:12:51.5202 9855/7f63f9f57f00 age/Wat/WatchdogMain.cpp:1291 ]: Starting Passenger watchdog...
[ 2019-11-07 03:12:51.5381 9858/7eff1f965f00 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
[ 2019-11-07 03:12:51.5382 9858/7eff1f965f00 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
[ 2019-11-07 03:12:51.5397 9858/7eff1f965f00 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 9858
[ 2019-11-07 03:12:51.5518 9871/7f956ec2cf00 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2019-11-07 03:12:51.5525 9871/7f956ec2cf00 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 9871
[Thu Nov 07 03:12:51.553008 2019] [mpm_event:notice] [pid 1759:tid 140105911249856] AH00489: Apache/2.4.29 (Ubuntu) Phusion_Passenger/5.0.30 configured -- resuming normal operations
[Thu Nov 07 03:12:51.553027 2019] [core:notice] [pid 1759:tid 140105911249856] AH00094: Command line: '/usr/sbin/apache2'
App 10039 stdout:
App 10039 stdout:
[ 2019-11-07 03:13:30.0800 9858/7eff18068700 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: 2b9a8855
Error details saved to: /tmp/passenger-error-LwyrPF.html
Message from application: Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (~> 4.2.8) was resolved to 4.2.10, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.0.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails (~> 4.2.8)', in any of the sources. (Bundler::VersionConflict)
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:56:in `rescue in start'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:45:in `start'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:22:in `resolve'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:258:in `resolve'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:170:in `specs'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:237:in `specs_for'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:226:in `requested_specs'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:108:in `block in definition_method'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:20:in `setup'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler.rb:107:in `setup'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/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>'
[ 2019-11-07 03:13:30.0873 9858/7eff13fff700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 2b9a8855. Please see earlier logs for details about the error.
App 10054 stdout:
App 10054 stdout:
[ 2019-11-07 03:13:33.1611 9858/7eff18068700 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: cffd03e1
Error details saved to: /tmp/passenger-error-qcrhgM.html
Message from application: Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (~> 4.2.8) was resolved to 4.2.10, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.0.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails (~> 4.2.8)', in any of the sources. (Bundler::VersionConflict)
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:56:in `rescue in start'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:45:in `start'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:22:in `resolve'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:258:in `resolve'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:170:in `specs'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:237:in `specs_for'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:226:in `requested_specs'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:108:in `block in definition_method'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:20:in `setup'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler.rb:107:in `setup'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/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>'
[ 2019-11-07 03:13:33.1694 9858/7eff137fe700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 2-1] Cannot checkout session because a spawning error occurred. The identifier of the error is cffd03e1. Please see earlier logs for details about the error.
App 10122 stdout:
App 10122 stdout:
[ 2019-11-07 03:17:44.8255 9858/7eff18068700 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: a6fc7058
Error details saved to: /tmp/passenger-error-iw8zwU.html
Message from application: Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (~> 4.2.8) was resolved to 4.2.10, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.0.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails (~> 4.2.8)', in any of the sources. (Bundler::VersionConflict)
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:56:in `rescue in start'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:45:in `start'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:22:in `resolve'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:258:in `resolve'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:170:in `specs'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:237:in `specs_for'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:226:in `requested_specs'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:108:in `block in definition_method'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:20:in `setup'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler.rb:107:in `setup'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/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>'
[ 2019-11-07 03:17:44.8314 9858/7eff12f7c700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 3-1] Cannot checkout session because a spawning error occurred. The identifier of the error is a6fc7058. Please see earlier logs for details about the error.
App 10141 stdout:
App 10141 stdout:
[ 2019-11-07 03:18:00.0124 9858/7eff18068700 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: 0d65c75f
Error details saved to: /tmp/passenger-error-vDFyOu.html
Message from application: Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (~> 4.2.8) was resolved to 4.2.10, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.0.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails (~> 4.2.8)', in any of the sources. (Bundler::VersionConflict)
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:56:in `rescue in start'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:45:in `start'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/resolver.rb:22:in `resolve'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:258:in `resolve'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:170:in `specs'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:237:in `specs_for'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/definition.rb:226:in `requested_specs'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:108:in `block in definition_method'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:20:in `setup'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/bundler.rb:107:in `setup'
/var/lib/gems/2.5.0/gems/bundler-2.0.2/lib/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>'
[ 2019-11-07 03:18:00.0184 9858/7eff126fa700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 4-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 0d65c75f. Please see earlier logs for details about the error.
Replies (1)
RE: Redmine Stopped Working - Ubuntu 18.04 - Added by Stewart Ferguson about 5 years ago
Try
apt install ruby-bundler
That is still a little strange because `ruby-bundler` is listed as a dependency of redmine in Debian (and therefore Ubuntu as well). Ubuntu 18.04 (bionic) has ruby-bundler 1.16.1 which meets the >=1.13 and <2.0 requirement.
I do see that it looks like the error messages are comming from bundler version 2.0.2 which is not shipped with Ubuntu. How did you install that? Normally, gems as deployed by ruby-* packages are shipped in `/usr/share/rubygems-integration/all/gems/bundler-1.16.1/`, but yours are in /var/ which suggests that you used `gem install bundler` instead of `apt install ruby-bundler`. Stick to the `ruby-*` packages from apt as Ubuntu is very good about making sure all versions deployed are compatible with each other. When you start mixing apt/gem sources, you might get different generations of libraries and things don't always work well together.