skip to Main Content

I get the following error on my rails app:

Web application could not be started

cannot load such file -- /opt/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/passenger-e139c4cd3ebd/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core (LoadError)
  /u/sf/netmon/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /u/sf/netmon/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /opt/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/passenger-e139c4cd3ebd/src/ruby_supportlib/phusion_passenger.rb:235:in `require_passenger_lib'
  /opt/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/passenger-e139c4cd3ebd/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:232:in `before_loading_app_code_step1'
  /opt/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/passenger-e139c4cd3ebd/src/helper-scripts/rack-preloader.rb:99:in `preload_app'
  /opt/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/passenger-e139c4cd3ebd/src/helper-scripts/rack-preloader.rb:156:in `<module:App>'
  /opt/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/passenger-e139c4cd3ebd/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
  /opt/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/passenger-e139c4cd3ebd/src/helper-scripts/rack-preloader.rb:29:in `<main>'
Error ID
28518bd5

Looking at the file system:

-bash-4.1$ pwd
/opt/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/passenger-e139c4cd3ebd/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core
-bash-4.1$ tree
.

0 directories, 0 files

So obviously there is indeed no such file… how should i fix this?

My Gemfile:

source 'https://rubygems.org'

gem 'rails', git: 'https://github.com/rails/rails', branch: '4-2-stable'
gem 'actionpack-action_caching'

gem 'pg'
gem 'redis'

gem 'rubytree'

gem 'turbolinks'
gem 'jquery-rails'
gem 'jquery-datatables-rails', git: 'https://github.com/rweng/jquery-datatables-rails'
gem 'rails-timeago'
gem 'dygraphs-rails'
gem 'underscore-rails'
gem 'd3_rails'
gem 'twitter-bootstrap-rails', '= 2.2.8'
gem 'less-rails'
gem 'coffee-rails', git: 'https://github.com/rails/coffee-rails'
gem 'coffeebeans'
gem 'jquery-ui-rails'

group :assets do
  gem 'sass-rails',   git: 'https://github.com/rails/sass-rails', branch: '5-0-stable'
  gem 'therubyracer', platforms: :ruby
  gem 'uglifier', '>= 1.0.3'
end

gem 'jbuilder', '~> 1.0.1'
gem 'passenger', git: 'https://github.com/FooBarWidget/passenger', branch: 'stable-5.0'
gem 'rack-webauth'

gem 'bunny'

Installed ruby 2.3.0 via ruby-build and passenger’s apache module reported no errors:

$ ./passenger-install-apache2-module

...

Validating installation...

 * Checking whether this Passenger install is in PATH... (!)

   Please add /opt/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/passenger-e139c4cd3ebd/bin to PATH.
   Otherwise you will get "command not found" errors upon running
   any Passenger commands.

   Learn more at about PATH at:

     https://www.phusionpassenger.com/library/indepth/environment_variables.html#the-path-environment-variable

 * Checking whether there are no other Passenger installations... ✓
 * Checking whether Apache is installed... ✓
 * Checking whether the Passenger module is correctly configured in Apache... ✓

Detected 0 error(s), 1 warning(s).
Press ENTER to continue.

2

Answers


  1. Chosen as BEST ANSWER

    seems like a quick search through the passenger github helped...

    union_station_hooks_core and union_station_hooks_rails are both git submodules on the main passenger git repo. so modifying my gemfile to include submodules: true will pull in the required files.

    gem 'passenger', 
      git: 'https://github.com/FooBarWidget/passenger', 
      branch: 'stable-5.0', 
      submodules: true
    

  2. I has same problem. It is because you passenger is not full.
    Full passenger will be via make.
    just download needed version like this

    wget http://s3.amazonaws.com/phusion-passenger/releases/passenger-5.0.26.tar.gz
    

    And extract to /opt/passenger
    Then rerun passenger-install-nginx-module and add it to PATH –

    echo 'PATH=/opt/passenger/bin:$PATH' >>etc/profile
    PATH=/opt/passenger/bin:$PATH
    export PATH
    passenger-config validate-install
    

    And not forget correct in http section

    http {
      ...
      passenger_root /opt/passenger;
      passenger_ruby /usr/bin/ruby;
      ...
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search