cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host

1,470 views
Skip to first unread message

jai P

unread,
Sep 28, 2014, 6:12:52 PM9/28/14
to capis...@googlegroups.com
Versions:
  • Ruby   ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]
  • Capistrano 3.1.0
  • Rake / Rails / etc       

  • gem 'capistrano-rails'
  •     gem 'capistrano-bundler'
  •     gem 'capistrano-rbenv', "~> 2.0"
Platform:
  • Working on.... mac
  • Deploying to... ubuntu 14
Logs:
  • Please past logs (as completely as possible to a 3rd party pasting service such as pastie.org)  
Files:
  • Capfile  
# Load DSL and Setup Up Stages
require 'capistrano/setup'

# Includes default deployment tasks
require 'capistrano/deploy'

Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }






  • deploy.rb

lock '3.1.0'


# Define the name of the application
set :application, 'my_app'

# Define where can Capistrano access the source repository
# set :repo_url, 'https://github.com/[user name]/[application name].git'
set :scm, :git
set :repo_url, 'g...@github.com:jaipratik/rw.git'

set :use_sudo, true

set :log_level, :debug

# Define where to put your application code
set :deploy_to, "/var/www/my_app"

set :pty, true

set :format, :pretty





  • Stage files (production.rb, staging.rb)












# Extended Server Syntax

server '54.69.25.251', user: 'ubuntu', roles: %w{web app}


# set it globally
 set :ssh_options, {
   keys: %w(/Users/jay/.ssh/id_rsa),
   forward_agent: false,
   user: 'user'
   # auth_methods: %w(password)
 }

Bruno Sutic

unread,
Sep 30, 2014, 8:58:27 AM9/30/14
to capis...@googlegroups.com
Can you paste the deployment log for the error you're getting.
The post title does not reveal much context around the error that is happening.

cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host
Reply all
Reply to author
Forward
0 new messages