Skip to content

Instantly share code, notes, and snippets.

@rkellermeyer
Last active August 29, 2015 14:23
Show Gist options
  • Save rkellermeyer/d04e9f99bfc43109901e to your computer and use it in GitHub Desktop.
Save rkellermeyer/d04e9f99bfc43109901e to your computer and use it in GitHub Desktop.
Cap Auth Error
$ bundle exec cap dev_sandbox deploy
INFO [c3608890] Running /usr/bin/env mkdir -p /tmp/capstan/ on capstan-dev-sandbox.stonecroptech.com
DEBUG [c3608890] Command: ( RAILS_ENV=dev_sandbox /usr/bin/env mkdir -p /tmp/capstan/ )
INFO [7aecad29] Running /usr/bin/env mkdir -p /tmp/capstan/ on capstan-dev-sandbox-dj.stonecroptech.com
DEBUG [7aecad29] Command: ( RAILS_ENV=dev_sandbox /usr/bin/env mkdir -p /tmp/capstan/ )
cap aborted!
Authentication failed for user [email protected]
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/net-ssh-2.8.0/lib/net/ssh.rb:217:in `start'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/connection_pool.rb:25:in `create_or_reuse_connection'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:173:in `ssh'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:126:in `block in _execute'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:123:in `tap'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:123:in `_execute'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:66:in `execute'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/capistrano-3.1.0/lib/capistrano/tasks/git.rake:17:in `block (3 levels) in <top (required)>'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:54:in `instance_exec'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:54:in `run'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => git:check => git:wrapper
(See full trace by running task with --trace)
The deploy has failed with an error: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]>
$ bundle exec cap dev_sandbox deploy --trace
** Invoke dev_sandbox (first_time)
** Execute dev_sandbox
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke deploy (first_time)
** Execute deploy
** Invoke deploy:starting (first_time)
** Invoke deploy:set_shared_assets (first_time)
** Execute deploy:set_shared_assets
** Execute deploy:starting
** Invoke deploy:check (first_time)
** Execute deploy:check
** Invoke git:check (first_time)
** Invoke git:wrapper (first_time)
** Execute git:wrapper
INFO [f3bc70ab] Running /usr/bin/env mkdir -p /tmp/capstan/ on capstan-dev-sandbox.stonecroptech.com
DEBUG [f3bc70ab] Command: ( RAILS_ENV=dev_sandbox /usr/bin/env mkdir -p /tmp/capstan/ )
INFO [acf011b8] Running /usr/bin/env mkdir -p /tmp/capstan/ on capstan-dev-sandbox-dj.stonecroptech.com
DEBUG [acf011b8] Command: ( RAILS_ENV=dev_sandbox /usr/bin/env mkdir -p /tmp/capstan/ )
cap aborted!
Authentication failed for user [email protected]
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/net-ssh-2.8.0/lib/net/ssh.rb:217:in `start'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/connection_pool.rb:25:in `create_or_reuse_connection'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:173:in `ssh'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:126:in `block in _execute'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:123:in `tap'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:123:in `_execute'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:66:in `execute'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/capistrano-3.1.0/lib/capistrano/tasks/git.rake:17:in `block (3 levels) in <top (required)>'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:54:in `instance_exec'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/backends/netssh.rb:54:in `run'
/Users/rkellermeyer/.rvm/gems/ruby-1.9.3-p551@badger/gems/sshkit-1.3.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => git:check => git:wrapper
The deploy has failed with an error: #<Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]>
** Invoke deploy:failed (first_time)
** Execute deploy:failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment