Thanks Jamis, you're a hero!

Turns out I had previously created a broken key and it was hanging
around in my known_hosts file. I deleted the entry and cap is now now
working - saving me a lot of tedious manual entry.

Best regards,
Paul

On Oct 9, 12:40 am, Jamis Buck <[EMAIL PROTECTED]> wrote:
> I'm guessing there is an entry in your .ssh/known_hosts file that
> Net::SSH isn't recognizing correctly. You might try backing up that
> file, and then deleting it, and seeing if that works. If it does, and
> if you want to preserve your known_hosts file, you'll need to find
> the entry in known_hosts that is confusing Net::SSH and eliminate it
> manually.
>
> - Jamis
>
> On Oct 8, 2007, at 7:09 AM, Paul Adams wrote:
>
>
>
> > Hi,
>
> > I'm really new at this and could do with some help. I am tunneling my
> > connection using SSHKeyChain on Mac OS X - this is set up and working
> > fine for ssh in a termal window.
>
> > I've created  deploy file for my hosting company (Site 5) and I'm
> > trying to run 'deploy:setup' when I get the following messges:
>
> >   * executing `deploy:setup'
> >   * executing "umask 02 && mkdir -p /home/xxxx/apps/dtw1 /home/xxxx/
> > apps/dtw1/releases /home/xxxx/apps/dtw1/shared /home/xxxx/apps/dtw1/
> > shared/system /home/xxxx/apps/dtw1/shared/log /home/xxxx/apps/dtw1/
> > shared/pids"
> >     servers: ["www.????.com"]
> > connection failed for: www.????.com (NoMethodError: undefined method
> > `ssh_type' for nil:NilClass)
>
> > My software stack is:
> > Capistrano v2.0.100
> > Rails 1.2.3
> > ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.1]
>
> > My deploy.yml:
>
> > # Necessary to run on Site5
> > set :use_sudo, false
> > set :group_writable, false
>
> > # Less releases, less space wasted
> > set :keep_releases, 2
>
> > # The mandatory stuff
> > set :application, "dtw1"
> > set :user, "xxxx"
>
> > set :repository,  "svn+ssh://[EMAIL PROTECTED]/home/#{user}/repos/
> > #{application}/trunk"
>
> > # This is related to site5 too.
> > set :deploy_to, "/home/#{user}/apps/#{application}"
>
> > role :app, "www.????.com"
> > role :web, "www.????.com"
> > role :db,  "www.????.com", :primary => true
>
> > # In the deploy namespace we override some default tasks and we define
> > # the site5 namespace.
> > namespace :deploy do
> >   desc <<-DESC
> >     Deploys and starts a `cold' application. This is useful if you
> > have not \
> >     deployed your application before, or if your application is (for
> > some \
> >     other reason) not currently running. It will deploy the code, run
> > any \
> >     pending migrations, and then instead of invoking `deploy:restart',
> > it will \
> >     invoke `deploy:start' to fire up the application servers.
> >   DESC
> >   # NOTE: we kill public_html so be sure to have a backup or be ok
> > with this application
> >   # being the default app for the domain.
> >   task :cold do
> >     update
> >     site5::link_public_html
> >     site5::kill_dispatch_fcgi
> >   end
>
> >   desc <<-DESC
> >     Site5 version of restart task.
> >   DESC
> >   task :restart do
> >     site5::kill_dispatch_fcgi
> >   end
>
> >   namespace :site5 do
> >     desc <<-DESC
> >       Links public_html to current_release/public
> >     DESC
> >     task :link_public_html do
> >       run "cd /home/#{user}; rm -rf public_html; ln -s #
> > {current_path}/
> > public ./public_html"
> >     end
>
> >     desc <<-DESC
> >       Kills Ruby instances on Site5
> >     DESC
> >     task :kill_dispatch_fcgi do
> >       run "skill -u #{user} -c ruby"
> >     end
> >   end
> > end
>
> > >
>
>
>  smime.p7s
> 3KDownload


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to