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. Problem with installation (nginx, debian 8, passenger)

Problem with installation (nginx, debian 8, passenger)

Added by Nivoliez Mathieu about 9 years ago

Hello.

I installed openproject yesterday.

I use nginx in front of openproject and i can’t make it working.
When i go to the openproject URL, passenger tell me that an error occur.

Here the nginx log of the error:

Message from application: Your Ruby version is 2.1.5, but your Gemfile specified 2.1.6 (Bundler::RubyVersionMismatch)
  /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:402:in `validate_ruby!'
  /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler.rb:88:in `setup'
  /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/setup.rb:18:in `<top (required)>'
  /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55: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>'

Here my nginx conf:

http://dpaste.com/0M7D09C

Detail of error in joined file.


Replies (1)

RE: Problem with installation (nginx, debian 8, passenger) - Added by Oliver Jakobi about 9 years ago

Hi Mathieu,

unfortunately, your dpaste link seems to be expired, so I cannot look into your nginx config.
I installed OpenProject with nginx a lot and can relate to your difficulties configuring it.

Since it would take me some time to think my way through the possible issues let me tell you this:

You can very easily install OpenProject using the packaged installation. Even if you use nginx.
You will basically just skip the parts of the installation that you do not need.
In your case I guess that would be the installation of apache and probably mysql.
Since you already went through the installation, using the existing database should work just fine.
Just configure user name and database name in the installer and you should be ready to go.

For nginx your configuration will then be as easy as the following, since you will not have to install passenger anymore:

location ~ ^/openproject(/.*|$) {
    proxy_pass_request_headers on;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Server $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://127.0.0.1:6000;
}

Please note, that the config above shows the installation in a subfolder. If you want to use OpenProject on your servers root, please adjust it to your needs. ;)
Also, you do not need to configure passenger in your nginx.conf anymore, since you will not use it standalone. ;)

Should you still wish to install manually, feel free to get back and we try to find out, what the problem is.

Best
Oliver

  • (1 - 1/1)
Loading...