Capistrano deployment issues under Ubuntu Dapper

I’ve recently upgraded my box from Ubuntu Breezy to Dapper, and for
the life of me can’t figure out why I’m getting this exception thrown.

I’ve switched from Switchtower to Capistrano, and when I run rake
deploy I get this output:

** [update_code] exception while rolling back: NameError,
uninitialized constant Net::SSH::Transport::OSSL
require__': no such file to load -- openssl (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
require' from /usr/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/definition-context.rb:77:inrequire’
register_services' from /usr/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/container.rb:107:indefine’
namespace_define' from /usr/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/container.rb:177:innamespace’
… 29 levels…
execute!' from /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:12:inexecute!’
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/bin/cap:11
from /usr/bin/cap:18

I’ve googled around and haven’t seen anything particularly useful.
I’ve got an up-to-date-as-of-this-morning dapper, and the following
gems installed (pretty much rails + nitro):

actionmailer (1.1.5)
actionpack (1.11.2)
actionwebservice (1.0.0)
activerecord (1.13.2)
activesupport (1.2.5)
BlueCloth (1.0.0)
capistrano (1.1.0)
cmdparse (2.0.0)
daemons (0.4.2)
facets (1.2.0, 1.1.0, 1.0.3)
gen (0.29.0)
glue (0.29.0)
needle (1.3.0)
net-sftp (1.1.0)
net-ssh (1.0.8)
nitro (0.29.0)
og (0.29.0)
rails (1.0.0)
rake (0.7.0)
RedCloth (3.0.4, 3.0.3)
ruby-breakpoint (0.5.0)
rubygems-update (0.8.11)
sources (0.0.1)
syntax (1.0.0)

Anyone else have any of these problems?

  • Jamie

Sounds like you haven’t installed the openssl module for Ruby. If you

ruby -ropenssl -e ‘puts “worked”’

what happens?

  • Jamis

Thank you Jamis, just didn’t click with me that openssl was a separate
lib that needed installing.

Working fine now.

  • Jamie

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs