Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. web application could not be started after installation completed.

web application could not be started after installation completed.

Added by Steve HL over 7 years ago

Hi,
I’ve installed open project successfully and when I load to Safari, it error of web application could not be started.

In the error message, it reads the following. I’ve tried bundle install and it was successfully installed as well. One thing to note, if I use ’sudo bundle install’ it has this error “Your Ruby version is 2.1.2, but your Gemfile specified ~> 2.4.2”.

When I try the second command of “*/usr/local/rvm/gems/ruby-2.4.2/wrappers/ruby \
/usr/local/rvm/gems/ruby-2.4.2/gems/passenger-5.1.5/bin/passenger-config —detect-ruby*”
it only shows the usage: passenger-config.

When I try the third option, with “rvm gemset list”, I get the following:

gemsets for ruby-2.4.2 (found in /home/openproject/.rvm/gems/ruby-2.4.2)
=> (default)
*

Would appreciate if anyone could help me in solving this issue.

Error Message #####

Could not spawn process for application /opt/openproject: An error occurred while starting up the preloader.
Error ID: 4c860ae0
Error details saved to: /tmp/passenger-error-ef2dth.html
Message from application:

It looks like Bundler could not find a gem. Maybe you didn’t install all the gems that this application needs. To install your gems, please run:


bundle install

If that didn’t work, then maybe the problem is that your gems are installed to /home/openproject/.rvm/gems, while at the same time you set PassengerRuby (Apache) or passenger_ruby (Nginx) to /usr/local/rvm/gems/ruby-2.4.2/wrappers/ruby. Because of the latter, RVM does not load gems from the home directory.

To make RVM load gems from the home directory, you need to set PassengerRuby/passenger_ruby to an RVM wrapper script inside the home directory:

  1. Login as openproject.

  2. Enable RVM mixed mode by running:

    
    rvm user gemsets
    
    
  3. Run this to find out what to set PassengerRuby/passenger_ruby to:

    
    /usr/local/rvm/gems/ruby-2.4.2/wrappers/ruby \\  
    /usr/local/rvm/gems/ruby-2.4.2/gems/passenger-5.1.5/bin/passenger-config —detect-ruby
    
    

If that didn’t help either, then maybe your application is being run under a different environment than it’s supposed to. Please check the following:

  1. Is this app supposed to be run as the openproject user?

  2. Is this app being run on the correct Ruby interpreter? Below you will
    see which Ruby interpreter Phusion Passenger attempted to use.

  3. Please check whether the correct RVM gemset is being used.

  4. Sometimes, RVM gemsets may be broken.
    Try resetting them.

———— The exception is as follows: ———-

Could not find nokogiri-1.8.1 in any of the sources (Bundler::GemNotFound)

  /usr/local/rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:88:in `block in materialize'
  /usr/local/rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in `map!'
  /usr/local/rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in `materialize'
  /usr/local/rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/definition.rb:170:in `specs'
  /usr/local/rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/definition.rb:237:in `specs_for'
  /usr/local/rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/definition.rb:226:in `requested_specs'
  /usr/local/rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:108:in `block in definition_method'
  /usr/local/rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:20:in `setup'
  /usr/local/rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler.rb:107:in `setup'
  /usr/local/rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/setup.rb:20:in `<top (required)>'
  /usr/local/rvm/rubies/ruby-2.4.2/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/local/rvm/rubies/ruby-2.4.2/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/local/rvm/gems/ruby-2.4.2/gems/passenger-5.1.5/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem'
  /usr/local/rvm/gems/ruby-2.4.2/gems/passenger-5.1.5/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code'
  /usr/local/rvm/gems/ruby-2.4.2/gems/passenger-5.1.5/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler'
  /usr/local/rvm/gems/ruby-2.4.2/gems/passenger-5.1.5/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code'
  /usr/local/rvm/gems/ruby-2.4.2/gems/passenger-5.1.5/src/helper-scripts/rack-preloader.rb:100:in `preload_app'
  /usr/local/rvm/gems/ruby-2.4.2/gems/passenger-5.1.5/src/helper-scripts/rack-preloader.rb:156:in `<module:App>'
  /usr/local/rvm/gems/ruby-2.4.2/gems/passenger-5.1.5/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
  /usr/local/rvm/gems/ruby-2.4.2/gems/passenger-5.1.5/src/helper-scripts/rack-preloader.rb:29:in `<main>'

[ 2017-11-03 13:05:32.0560 8037/7fcec2ffd700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 2-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 4c860ae0. Please see earlier logs for details about the error.
[ 2017-11-03 13:05:32.0560 8037/7fcec37fe700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 4c860ae0. Please see earlier logs for details about the error.


Loading...