± |master ✓| → cap testing deploy:check
ffi-yajl/json_gem is deprecated, these monkeypatches will be dropped shortly
* 2015-04-21 12:05:49 executing `testing'
ffi-yajl/json_gem is deprecated, these monkeypatches will be dropped shortly
triggering start callbacks for `deploy:check'
* 2015-04-21 12:05:51 executing `multistage:ensure'
* 2015-04-21 12:05:51 executing `deploy:check'
* executing multiple commands in parallel
-> "else" :: "test -d /opt/mount1/oss/releases"
-> "else" :: "test -d /opt/mount1/oss/releases"
servers: ["serv1", "serv2"]
[serv2] executing command
[serv1] executing command
command finished in 465ms
* executing multiple commands in parallel
-> "else" :: "test -w /opt/mount1/oss"
-> "else" :: "test -w /opt/mount1/oss"
servers: ["serv1", "serv2"]
[serv1] executing command
[serv2] executing command
command finished in 551ms
* executing multiple commands in parallel
-> "else" :: "test -w /opt/mount1/oss/releases"
-> "else" :: "test -w /opt/mount1/oss/releases"
servers: ["serv1", "serv2"]
[serv2] executing command
[serv1] executing command
command finished in 453ms
* executing multiple commands in parallel
-> "else" :: "which git"
-> "else" :: "which git"
servers: ["serv1", "serv2"]
[serv1] executing command
[serv2] executing command
command finished in 562ms
* executing multiple commands in parallel
-> "else" :: "which rsync"
-> "else" :: "which rsync"
servers: ["serv1", "serv2"]
[serv2] executing command
[serv1] executing command
command finished in 456ms
* executing multiple commands in parallel
-> "else" :: "test -w /opt/mount1/oss/shared"
-> "else" :: "test -w /opt/mount1/oss/shared"
servers: ["serv1", "serv2"]
[serv1] executing command
[serv2] executing command
command finished in 547ms
You appear to have all necessary dependencies installed
± |master ✓| → cap testing deploy
ffi-yajl/json_gem is deprecated, these monkeypatches will be dropped shortly
* 2015-04-21 11:40:46 executing `testing'
ffi-yajl/json_gem is deprecated, these monkeypatches will be dropped shortly
triggering start callbacks for `deploy'
* 2015-04-21 11:40:48 executing `multistage:ensure'
* 2015-04-21 11:40:48 executing `deploy'
triggering before callbacks for `deploy'
* 2015-04-21 11:40:48 executing `deploy:stop_app'
* executing multiple commands in parallel
-> "else" :: "sudo /etc/init.d/oss stop"
-> "else" :: "sudo /etc/init.d/oss stop"
servers: ["serv1", "serv2"]
[serv2] executing command
[serv1] executing command
** [out :: serv1] Stopping
** [out :: serv1] cat: /var/run/oss.pid: No such file or directory
** [out :: serv1] pidfile not found
** [out :: serv2] Stopping
** [out :: serv2] cat: /var/run/oss.pid: No such file or directory
** [out :: serv2] pidfile not found
command finished in 604ms
* 2015-04-21 11:40:50 executing `deploy:update'
** transaction: start
* 2015-04-21 11:40:50 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote ssh://repo...@privaterepo.com:29418/abc-oss test"
Received disconnect from 16.216.191.171: 2: Too may authentication failures
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
*** [deploy:update_code] rolling back
DO NOT WANT TO ROLL BACK?
Command git ls-remote ssh://repo...@privaterepo.com:29418/abc-oss test returned status code pid 15621 exit 128
require "capistrano/ext/multistage"
set :application, "oss"
set :repository, 'ssh://repo...@privaterepo.com:29418/abc-oss'
:user, 'python'
set :deploy_via, :remote_cache
set :deploy_to, '/opt/mount1/oss'
set :scm, :git
set :copy_exclude, [".git", ".gitignore"]
set :scm_verbose, true
ssh_options[:paranoid] = false
default_run_options[:pty] = true
# set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
before "deploy", "deploy:stop_app"
after "deploy", "deploy:start_app"
namespace :deploy do
task :update_code, :roles => :web, :except => { :no_release => true } do
on_rollback { puts "DO NOT WANT TO ROLL BACK?" }
strategy.deploy!
finalize_update
end
task :stop_app, :roles => :web do
run "sudo /etc/init.d/oss stop", :shell => :bash
end
task :start_app, :roles => :web do
run "sudo /etc/init.d/oss start", :shell => :bash
end
task :restart_app, :roles => :web do
run "sudo /etc/init.d/oss restart", :shell => :bash
end
end
executing locally: "git ls-remote ssh://repouser@privaterepo.com:29418/abc-oss test"
Received disconnect from 16.216.191.171: 2: Too may authentication failures
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
*** [deploy:update_code] rolling back
DO NOT WANT TO ROLL BACK?
Command git ls-remote ssh://repouser@privaterepo.com:29418/abc-oss test returned status code pid 15621 exit 128
Files:
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
- Capfile
# Uncomment if you are using Rails' asset pipeline
# load 'deploy/assets'
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy' # remove this line to skip loading any of the default tasks
require 'capistrano/chef'
- deploy.rb
require "capistrano/ext/multistage"
set :application, "oss"
set :repository, 'ssh://repouser@privaterepo.com:29418/abc-oss'
executing locally: "git ls-remote ssh://repouser@privaterepo.com:29418/abc-oss test"
Received disconnect from 16.216.191.171: 2: Too may authentication failures
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
*** [deploy:update_code] rolling back
DO NOT WANT TO ROLL BACK?
Command git ls-remote ssh://repouser@privaterepo.com:29418/abc-oss test returned status code pid 15621 exit 128
Files:
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
- Capfile
# Uncomment if you are using Rails' asset pipeline
# load 'deploy/assets'
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy' # remove this line to skip loading any of the default tasks
require 'capistrano/chef'
- deploy.rb
require "capistrano/ext/multistage"
set :application, "oss"
set :repository, 'ssh://repouser@privaterepo.com:29418/abc-oss'
executing locally: "git ls-remote ssh://repouser@privaterepo.com:29418/abc-oss test"
Received disconnect from 16.216.191.171: 2: Too may authentication failures
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
*** [deploy:update_code] rolling back
DO NOT WANT TO ROLL BACK?
Command git ls-remote ssh://repouser@privaterepo.com:29418/abc-oss test returned status code pid 15621 exit 128
Files:
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
- Capfile
# Uncomment if you are using Rails' asset pipeline
# load 'deploy/assets'
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy' # remove this line to skip loading any of the default tasks
require 'capistrano/chef'
- deploy.rb
require "capistrano/ext/multistage"
set :application, "oss"
set :repository, 'ssh://repouser@privaterepo.com:29418/abc-oss'