newbie question, Net::SSH::AuthenticationFailed

30 views
Skip to first unread message

viatropos

unread,
Jul 15, 2009, 1:04:05 AM7/15/09
to deprec - deployment recipes for capistrano
I'm still trying to work through my first run with deprec but now I'm
stuck on the "cap deprec:rails:install_stack" command. I keep getting
this message:

cap deprec:rails:install_stack
triggering load callbacks
* executing `deprec:connect_canonical_tasks'
* executing `deprec:rails:install_stack'
* executing `deprec:ree:install'
* executing `deprec:ree:install_deps'
* executing "sudo -p 'sudo password: ' sh -c \"DEBCONF_TERSE='yes'
DEBIAN_PRIORITY='critical' DEBIAN_FRONTEND=noninteractive apt-get -qy
update\""
servers: ["www.inthetwinkleofani.com", "208.20.84.162",
"ns1.slicehost.net", "ns2.slicehost.net", "ns3.slicehost.net"]
Password:
connection failed for: www.inthetwinkleofani.com (SocketError:
getaddrinfo: nodename nor servname provided, or not known),
ns1.slicehost.net (Errno::ECONNREFUSED: Connection refused - connect
(2)), ns2.slicehost.net (Errno::ECONNREFUSED: Connection refused -
connect(2)), ns3.slicehost.net (Net::SSH::AuthenticationFailed: lance)

In the 'config/deploy.rb' file, I the only things I changed are these:

set :application, "d3_site_book"
set :domain, "www.inthetwinkleofani.com"
set :repository, "git://github.com/viatropos/#{application}.git"
set :user, "lance"

Question is, is the "domain" property supposed to reference the
"www.inthetwinkleofani.com" or "208.20.84.162" or one of the
"ns1.slicehost.net".

And if "lance"'s password on slicehost is 123456, is that the password
I type in when the "Password" prompt comes up? I'm wondering because
I can't get through, I keep getting the Net::SSH::AuthenticationFailed
error.

I have also uploaded my ssh key:

scp ~/.ssh/id_rsa.pub la...@208.20.84.162:/home/lance

Do I need to specify a specific port?

Any tips would be greatly appreciated, thanks so much.

Best,
Lance

Mike Bailey

unread,
Jul 15, 2009, 1:52:58 AM7/15/09
to deprec...@googlegroups.com
cap deprec:ssh:setup_keys  # easier way to sort out your keys

www.inthetwinkleofani.com does not resolve to an IP address. set it up in DNS

- Mike

Mike Bailey

unread,
Jul 15, 2009, 1:54:30 AM7/15/09
to deprec...@googlegroups.com
please post your full deploy.rb

cap should not be connecting to these: [ "208.20.84.162", "ns1.slicehost.net", "ns2.slicehost.net", "ns3.slicehost.net"]

- Mike

On Wed, Jul 15, 2009 at 3:04 PM, viatropos <lancej...@gmail.com> wrote:

viatropos

unread,
Jul 15, 2009, 2:17:43 AM7/15/09
to deprec - deployment recipes for capistrano
require 'deprec'

set :application, "d3_site_book"
set :domain, "208.20.84.162" #"inthetwinkleofani.com"
set :repository, "g...@github.com:viatropos/d3_site_book.git"

default_run_options[:pty] = true
ssh_options[:forward_agent] = true
ssh_options[:paranoid] = false

set :user, "lance"
set :branch, "master"
set :deploy_via, :remote_cache
set :scm_username, 'viatropos'
set :git_account, 'viatropos'
set :scm, :git

set :ruby_vm_type, :ree
set :web_server_type, :nginx
set :app_server_type, :mongrel
set :db_server_type, :couchdb

role :app, domain
role :web, domain
role :db, domain, :primary => true

namespace :deploy do
task :restart, :roles => :app, :except => { :no_release => true } do
top.deprec.app.restart
end
end

---

If I just do "cap deploy:setup && cap deploy", it mostly works, still
getting some errors, still not able to run the above deprec command.

Thanks for the help.

Just in case, I have set up 5 domain records on slicehost for
"www.inthetwinkleofani.com", they don't seem to be up an running yet
though (I did it last night):

inthetwinkleofani.com. 208.20.84.162
www 208.20.84.16272 A
inthetwinkleofani.com. ns1.slicehost.net. NS
inthetwinkleofani.com. ns2.slicehost.net. NS
inthetwinkleofani.com. ns3.slicehost.net. NS


- Lance


On Jul 14, 10:54 pm, Mike Bailey <m...@bailey.net.au> wrote:
> please post your full deploy.rb
>
> cap should not be connecting to these: [ "208.20.84.162", "ns1.slicehost.net",
> "ns2.slicehost.net", "ns3.slicehost.net"]
>
> - Mike
>
> On Wed, Jul 15, 2009 at 3:04 PM, viatropos <lancejpoll...@gmail.com> wrote:
>
> > I'm still trying to work through my first run with deprec but now I'm
> > stuck on the "cap deprec:rails:install_stack" command.  I keep getting
> > this message:
>
> > cap deprec:rails:install_stack
> > triggering load callbacks
> >  * executing `deprec:connect_canonical_tasks'
> >  * executing `deprec:rails:install_stack'
> >  * executing `deprec:ree:install'
> >  * executing `deprec:ree:install_deps'
> >  * executing "sudo -p 'sudo password: ' sh -c \"DEBCONF_TERSE='yes'
> > DEBIAN_PRIORITY='critical' DEBIAN_FRONTEND=noninteractive apt-get -qy
> > update\""
> >    servers: ["www.inthetwinkleofani.com", "208.20.84.162",
> > "ns1.slicehost.net", "ns2.slicehost.net", "ns3.slicehost.net"]
> > Password:
> > connection failed for:www.inthetwinkleofani.com(SocketError:
> > getaddrinfo: nodename nor servname provided, or not known),
> > ns1.slicehost.net (Errno::ECONNREFUSED: Connection refused - connect
> > (2)), ns2.slicehost.net (Errno::ECONNREFUSED: Connection refused -
> > connect(2)), ns3.slicehost.net (Net::SSH::AuthenticationFailed: lance)
>
> > In the 'config/deploy.rb' file, I the only things I changed are these:
>
> > set :application, "d3_site_book"
> > set :domain, "www.inthetwinkleofani.com"
> > set :repository,  "git://github.com/viatropos/#{application}.git<http://github.com/viatropos/#%7Bapplication%7D.git>

Mike Bailey

unread,
Jul 15, 2009, 4:30:38 AM7/15/09
to deprec...@googlegroups.com
set :domain, "inthetwinkleofani.com"

You can put an entry into /etc/hosts on your workstation while you wait for DNS to update.

208.20.84.162 inthetwinkleofani.com

- Mike

viatropos

unread,
Jul 15, 2009, 5:11:46 AM7/15/09
to deprec - deployment recipes for capistrano
thank you so much, I really appreciate it.

On Jul 15, 1:30 am, Mike Bailey <m...@bailey.net.au> wrote:
> set :domain, "inthetwinkleofani.com"
>
> You can put an entry into /etc/hosts on your workstation while you wait for
> DNS to update.
>
> 208.20.84.162 inthetwinkleofani.com
>
> - Mike
>
Reply all
Reply to author
Forward
0 new messages