Ruby 2.0 is not a valid platform

1.1k views Asked by At

Hi all I am working with Phusion Passenger and I go to run my web app and it gives me Ruby 2.0 is not a valid platform. Here is my output below, any ideas?

Thanks!

ruby_20` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :mri, :mri_18, :mri_19, :rbx, :jruby, :mswin, :mingw, :mingw_18, :mingw_19] (Bundler::DslError)
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:209:in `block in _normalize_options'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:207:in `each'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:207:in `_normalize_options'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:56:in `gem'
  /home/bistro/openproject/Gemfile:82:in `evaluate'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:7:in `instance_eval'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:7:in `evaluate'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:17:in `build'
  /usr/lib/ruby/vendor_ruby/bundler.rb:136:in `definition'
  /usr/lib/ruby/vendor_ruby/bundler.rb:124:in `load'
  /usr/lib/ruby/vendor_ruby/bundler.rb:107:in `setup'
  /usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `<top (required)>'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:96:in `preload_app'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:153:in `<module:App>'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:28:in `<main>'

I have tried updating Ruby Gems, Updating Bundler, reinstalling Phusion - and I am not sure what else to do. Any thoughts?

Update 2:

I updated the Gem files in the Open project directory and still nothing.

It looks like Bundle updated now I am getting a different error:

Cannot execute "/var/lib/gems/1.9.1/gems/passenger-4.0.29/buildout/agents/SpawnPreparer": No such file or directory (errno=2) Application root /home/bistro/openproject Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV and PASSENGER_ENV) production Ruby interpreter command /usr/bin/ruby1.9.1 User and groups Unknown Environment variables Unknown Ulimits Unknown
0

There are 0 answers