I've an app running properly on a server. When I'm trying to run a second instance (same app, for staging on a different port). Passenger cannot start the app with the following error:
invalid byte sequence in US-ASCII (ArgumentError)
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler/settings.rb:229:in `scan'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler/settings.rb:229:in `block in load_config'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler/shared_helpers.rb:105:in `filesystem_access'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler/settings.rb:225:in `load_config'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler/settings.rb:12:in `initialize'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler.rb:198:in `new'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler.rb:198:in `settings'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler.rb:412:in `configure_gem_home_and_path'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler.rb:60:in `configure'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler.rb:121:in `definition'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler.rb:91:in `setup'
/usr/local/rvm/gems/ruby-2.2.5@ector/gems/bundler-1.12.5/lib/bundler/setup.rb:19:in `<top (required)>'
/usr/local/rvm/rubies/ruby-2.2.5/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/rvm/rubies/ruby-2.2.5/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54: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>'
I don't understand why one app can run but not the other... Everything is configured the same it seems.
Ubuntu 14.04.4 LTS, Apache 2.4.7, Ruby 2.2.5 (via RVM), Rails 4.2.6.
It would be great to have a pointer (e.g. which file is problematic)
UPDATE: If I run passenger standalone, I don't get this error with the second instance.
Thanks in advance,
Gam