I am a big fan of the Phusion guys – I update my local Passenger and Ruby Enterprise Edition installs whenever a new version is pushed. But while trying to deploy a client’s app using Capistrano-ext to a staging server, I kept getting the following error:
MBP:app bobby$ cap staging deploy /opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- capistrano/ext/multistage (LoadError) from /opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/capistrano-2.5.3/lib/capistrano/configuration/loading.rb:152:in `require' from ./config/deploy.rb:4:in `load' from /opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/capistrano-2.5.3/lib/capistrano/configuration/loading.rb:172:in `load_from_file' from /opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/capistrano-2.5.3/lib/capistrano/configuration/loading.rb:89:in `load' from /opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/capistrano-2.5.3/lib/capistrano/configuration/loading.rb:86:in `load' from /opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/capistrano-2.5.3/lib/capistrano/configuration/loading.rb:86:in `each' from /opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/capistrano-2.5.3/lib/capistrano/configuration/loading.rb:86:in `load' ... 10 levels... from /opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/capistrano-2.5.3/lib/capistrano/cli/execute.rb:14:in `execute' from /opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/capistrano-2.5.3/bin/cap:4 from /opt/ruby-enterprise-1.8.6-20081205/bin/cap:19:in `load' from /opt/ruby-enterprise-1.8.6-20081205/bin/cap:19
No amount of installing/uninstalling the Capistrano and Capistrano-ext gems worked. Finally, I decided to try using the default Ruby install at /usr/bin/ruby, and the deploy went through smoothly. I have no patience to track down the exact cause, I’m just glad there’s some hair left on my head.


0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.