Content
Cannot install/run on Debian 9
Added by jaaa jaaa about 6 years ago
Hi,
i'm trying to install Openproject 8 on Debian 9 using debian repository. Everything goes quite fine but application won't run, returning error 500. This is logged into Apache error log:
App 23027 stdout:
App 23027 stderr: [passenger_native_support.so] trying to compile for the current user (openproject) and Ruby interpreter...
App 23027 stderr: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 23027 stderr: Compilation successful. The logs are here:
App 23027 stderr: /tmp/passenger_native_support-1eky6yk.log
App 23027 stderr: [passenger_native_support.so] successfully loaded.
App 23027 stderr: /opt/openproject/vendor/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
App 23027 stderr: :
App 23027 stderr: cannot load such file -- phusion_passenger
App 23027 stderr: (
App 23027 stderr: LoadError
App 23027 stderr: )
App 23027 stderr: from /opt/openproject/vendor/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
App 23027 stderr: from /usr/bin/passenger-config:27:in `<main>'
App 23027 stdout:
[ 2019-01-17 11:40:57.4416 22979/7f9090925700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/openproject: An error occurred while starting up t
he preloader.
Error ID: 73a97854
Error details saved to: /tmp/passenger-error-4DU2e8.html
Message from application: cannot load such file -- bundler/setup (LoadError)
/opt/openproject/vendor/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/opt/openproject/vendor/ruby-2.5.1/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-01-17 11:40:57.4493 22979/7f908a275700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The identifier of the
error is 73a97854. Please see earlier logs for details about the error.
I installed these Debian packages:
language-text
libapache2-mod-passengerpassenger
ruby-passenger
Here is Apache config for mod_passenger:
<IfModule mod_passenger.c>
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /opt/openproject/vendor/ruby-2.5.1/bin/ruby
</IfModule>
In the error message above, i see that this part is probably important:
cannot load such file -- phusion_passenger
but i don't know what it is, where it's suppose to be etc. I was trying to install 'phusion_passenger' as gem but it not exists - anyway, i don't know how to install gems into '/opt/openproject/vendor/bundle/ruby/2.5.0/gems', they are always installed in different directories.
Any hints? It seems that Openproject don't support Debian 9 as it has only ruby 2.3.3 and installer won't set bundled ruby (2.5.1) in any places (even in apache while using apache install).