Redmine/Rails not working. Possible Apache Phusion problem
Added by phil Ba over 8 years ago
Hey Redmine Forum,
I have the problem that the redmine website isn't working anymore after I updated the system as well as installed an extension.
Now the App wont start/work with Apache/passenger anymore, and I'm afraid I broke something in the system. I can run Redmine (with extensions) with the webrick webserver manually (ruby bin/rails server webrick -e production -b 0.0.0.0), so I guess redmine installation and database is ok.
The Error I get is this (in apache/error.log):
[ 2016-06-06 09:53:24.8569 23542/7f473cf29700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 2-8] Cannot checkout session because a spawning error occurred. The identifier of the error is 36d94ced. Please see earlier logs for details about the error. App 31570 stdout: App 31570 stdout: [ 2016-06-06 10:29:51.8909 23542/7f4743d5d700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine/redmine: An error occurred while starting up the preloader. Error ID: 563b1d01 Error details saved to: /tmp/passenger-error-7WulCa.html Message from application: cannot load such file -- bundler/setup (LoadError) /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' /var/lib/gems/2.1.0/gems/passenger-5.0.28/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem' /var/lib/gems/2.1.0/gems/passenger-5.0.28/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code' /var/lib/gems/2.1.0/gems/passenger-5.0.28/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler' /var/lib/gems/2.1.0/gems/passenger-5.0.28/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code' /var/lib/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:100:in `preload_app' /var/lib/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:156:in `<module:App>' /var/lib/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>' /var/lib/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:29:in `<main>'
My Installation:
- I'm running Ubuntu 14.04 64 Bit (4.2.0-36-generic)
- MySql: 5.5.49
- PHP: 5.5.9
- passenger 5.0.28-1
Redmine is started as a user.
Config Files:
passenger.conf<IfModule mod_passenger.c> PassengerRoot /var/lib/gems/2.1.0/gems/passenger-5.0.28 PassengerDefaultRuby /usr/bin/ruby2.1 PassengerDefaultUser www-data PassengerUserSwitching on PassengerUser redmine PassengerGroup redmine </IfModule> # passenger.load (split in ubuntu) LoadModule passenger_module /var/lib/gems/2.1.0/gems/passenger-5.0.28/buildout/apache2/mod_passenger.so
My guess is that something is wrong here already, but I can't figure out what's going on.
rails --version Rails 4.2.3
Redmine version: 3.0.4
Webserver: Apacher + passenger
redmine@Ubuntu-1404-trusty-64-minimal:~/redmine$ RAILS_ENV=production bin/about sh: 1: darcs: not found sh: 1: hg: not found sh: 1: cvs: not found sh: 1: bzr: not found Environment: Redmine version 3.0.4.stable Ruby version 2.1.8-p440 (2015-12-16) [x86_64-linux-gnu] Rails version 4.2.3 Environment production Database adapter Mysql2 SCM: Subversion 1.8.8 Git 1.9.1 Filesystem Redmine plugins: easy_wbs 2016-0.0 redmine_contacts 4.0.4 redmine_gc_sync 1.0.0
The problem arises the moment a user tries to access redmine. Apache starts, systems seems fine. I am very thankful for any kind of help/tip. Also if more information is needed feel free to ask!
Thanks in advance!
EDIT: I can't reply to this anymore somehow. Probably shouldn't try to post HTML code -.-
Here is the log file though: [[http://pastebin.com/czWMDV3F]]
I cant really make sense of that, but maybe you all can figure something out!
Replies (2)
RE: Redmine/Rails not working. Possible Apache Phusion problem - Added by Leszek Koltunski over 8 years ago
this
Error details saved to: /tmp/passenger-error-7WulCa.html Message from application: cannot load such file -- bundler/setup (LoadError)
looks like the essence of this problem. Take a look at this file (it is a temporary file so next time you attempt to start Redmine its name will be different)
Also, think what might have happened to bundler/setup - looks like this file has disappeared or moved somewhere?
RE: Redmine/Rails not working. Possible Apache Phusion problem - Added by phil Ba over 8 years ago
Hey, thanks for the quick reply! That was my first guess as well, and it seems like he can't locate bundler (which is a gem installed). The passenger log file looks (exemplary) like this:
/tmp/passenger-error-7WulCa.html
[[http://pastebin.com/czWMDV3F]]
I cant really make sense of that, but maybe you all can figure something out!