Content
You are here:
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:
Detail of error in joined file.
Replies (1)
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:
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