Versions:

   - Ruby 1.9.3
   - Capistrano 3.2.1
   - Rake / Rails / etc

Platform:

   - Working on.... centos 6
   - Deploying to... 


I'm new to Capistrano, though very familiar with unix scripting, ssh, etc.. 
 I don't understand why cap deploy is failing, see output below.  I've got 
cap deploy:pull working, and part of cap deploy works, it uploads the right 
files to the releases/<release>/ directory.  Then it goes on to do 
something (I've no clue what it is trying to do) and it fails.

$ cat config/deploy.rb


# config valid only for Capistrano 3.1

lock '3.2.1'

require "capistrano/copy.rb"


set :log_level, :debug

set :servicename, "XYZ Service"

all_servers =  %w{10.11.11.11}

set :app_name,     'nrpe'

set :deploy_to,    '/tmp/blah/' + fetch(:app_name)


set :business_name, 'our.testing'  

set :deploy_from,  '/srv/props/' + fetch(:business_name) + '/' + 
fetch(:app_name) + '/app'

# This is where we rsync the code/config from

set :repo_base,    '/var/tmp'

set :repo_url,     fetch(:repo_base) + '/' + fetch(:app_name) + "/"

set :copy_cache, false

set :copy_compression, :zip


# from https://github.com/wercker/capistrano-scm-copy

# Default value for :scm is :git

set :scm, :copy



namespace :deploy do


  desc "Show us the uname"

  task :uname do

    on all_servers do |host|

      puts capture(:'uname -a')

    end

  end




  desc "Go get our code"

  task :pull do


    run_locally do

      execute "rsync -avH '#{repo_url}' '#{fetch(:deploy_from)}'"

    end



  end 


end



[cstewart@da1shal012new nrpe]$ cap production deploy

INFO[ca2c8c3d] Running /usr/bin/env mkdir -pv /tmp/blah/nrpe/shared 
/tmp/blah/nrpe/releases on 10.11.11.11

DEBUG[ca2c8c3d] Command: /usr/bin/env mkdir -pv /tmp/blah/nrpe/shared 
/tmp/blah/nrpe/releases

INFO[ca2c8c3d] Finished in 0.183 seconds with exit status 0 (successful).

DEBUG[969505ec] Running /usr/bin/env [ -f /tmp/blah/nrpe/current/REVISION ] 
on 10.11.11.11

DEBUG[969505ec] Command: [ -f /tmp/blah/nrpe/current/REVISION ]

DEBUG[969505ec] Finished in 0.007 seconds with exit status 1 (failed).

tar -cvzf archive.tar.gz Capfile app config lib

Capfile

app/

app/CHANGES

app/Capfile

app/LICENSE

app/GPL

app/mkmf.log

app/OPENSSL

app/bin/

app/bin/dir_fresh.sh

app/bin/nrpe.cfg

app/bin/nrpe.cfg~

app/bin/ssleay32.dll

app/bin/nrpe_nt.log

app/bin/fraudtest.xml

app/bin/libeay32.dll

app/bin/NRPE_NT.exe

app/bin/test.cmd

app/bin/diskspace_check.sh

app/bin/dir_size.sh

app/bin/dbnstest.sh

app/INSTALL

config/

config/deploy/

config/deploy/staging.rb

config/deploy/production.rb

config/deploy.rb.1

config/deploy.rb

lib/

lib/capistrano/

lib/capistrano/tasks/

tar -cvzf archive.tar.gz Capfile app config lib

Capfile

app/

app/CHANGES

app/Capfile

app/LICENSE

app/GPL

app/mkmf.log

app/OPENSSL

app/bin/

app/bin/dir_fresh.sh

app/bin/nrpe.cfg

app/bin/nrpe.cfg~

app/bin/ssleay32.dll

app/bin/nrpe_nt.log

app/bin/fraudtest.xml

app/bin/libeay32.dll

app/bin/NRPE_NT.exe

app/bin/test.cmd

app/bin/diskspace_check.sh

app/bin/dir_size.sh

app/bin/dbnstest.sh

app/INSTALL

config/

config/deploy/

config/deploy/staging.rb

config/deploy/production.rb

config/deploy.rb.1

config/deploy.rb

lib/

lib/capistrano/

lib/capistrano/tasks/

==> release_path: /tmp/blah/nrpe/releases/20150218171024 is created on all 
roles <==

INFO[b90a47db] Running /usr/bin/env mkdir -p 
/tmp/blah/nrpe/releases/20150218171024 on 10.11.11.11

DEBUG[b90a47db] Command: /usr/bin/env mkdir -p 
/tmp/blah/nrpe/releases/20150218171024

INFO[b90a47db] Finished in 0.008 seconds with exit status 0 (successful).

DEBUG[28d3e164] Running /usr/bin/env mktemp on 10.11.11.11

DEBUG[28d3e164] Command: /usr/bin/env mktemp

DEBUG[28d3e164] /tmp/tmp.bAgr4auZbV

DEBUG[28d3e164] Finished in 0.018 seconds with exit status 0 (successful).

DEBUGUploading archive.tar.gz 0.0%

DEBUGUploading archive.tar.gz 2.69%

DEBUGUploading archive.tar.gz 5.37%

DEBUGUploading archive.tar.gz 8.06%

DEBUGUploading archive.tar.gz 10.74%

DEBUGUploading archive.tar.gz 13.43%

DEBUGUploading archive.tar.gz 16.11%

DEBUGUploading archive.tar.gz 18.8%

DEBUGUploading archive.tar.gz 21.49%

DEBUGUploading archive.tar.gz 24.17%

DEBUGUploading archive.tar.gz 26.86%

INFOUploading archive.tar.gz 29.54%

DEBUGUploading archive.tar.gz 32.23%

DEBUGUploading archive.tar.gz 34.91%

DEBUGUploading archive.tar.gz 37.6%

INFOUploading archive.tar.gz 40.28%

DEBUGUploading archive.tar.gz 42.97%

DEBUGUploading archive.tar.gz 45.66%

DEBUGUploading archive.tar.gz 48.34%

DEBUGUploading archive.tar.gz 51.03%

DEBUGUploading archive.tar.gz 53.71%

DEBUGUploading archive.tar.gz 56.4%

DEBUGUploading archive.tar.gz 59.08%

DEBUGUploading archive.tar.gz 61.77%

DEBUGUploading archive.tar.gz 64.46%

DEBUGUploading archive.tar.gz 67.14%

INFOUploading archive.tar.gz 69.83%

DEBUGUploading archive.tar.gz 72.51%

DEBUGUploading archive.tar.gz 75.2%

DEBUGUploading archive.tar.gz 77.88%

DEBUGUploading archive.tar.gz 80.57%

DEBUGUploading archive.tar.gz 83.25%

DEBUGUploading archive.tar.gz 85.94%

DEBUGUploading archive.tar.gz 88.63%

DEBUGUploading archive.tar.gz 91.31%

DEBUGUploading archive.tar.gz 94.0%

DEBUGUploading archive.tar.gz 96.68%

DEBUGUploading archive.tar.gz 99.37%

INFOUploading archive.tar.gz 100.0%

INFO[943be656] Running /usr/bin/env tar -xzf /tmp/tmp.bAgr4auZbV -C 
/tmp/blah/nrpe/releases/20150218171024 on 10.11.11.11

DEBUG[943be656] Command: /usr/bin/env tar -xzf /tmp/tmp.bAgr4auZbV -C 
/tmp/blah/nrpe/releases/20150218171024

INFO[943be656] Finished in 0.027 seconds with exit status 0 (successful).

INFO[cacf55f0] Running /usr/bin/env rm /tmp/tmp.bAgr4auZbV on 10.223.132.247

DEBUG[cacf55f0] Command: /usr/bin/env rm /tmp/tmp.bAgr4auZbV

INFO[cacf55f0] Finished in 0.006 seconds with exit status 0 (successful).

==> release_path: /tmp/blah/nrpe/releases/20150218171024 is created on all 
roles <==

INFO[a5717de9] Running /usr/bin/env mkdir -p 
/tmp/blah/nrpe/releases/20150218171024 on 10.11.11.11

DEBUG[a5717de9] Command: /usr/bin/env mkdir -p 
/tmp/blah/nrpe/releases/20150218171024

INFO[a5717de9] Finished in 0.007 seconds with exit status 0 (successful).

DEBUG[69ffbd93] Running /usr/bin/env mktemp on 10.11.11.11

DEBUG[69ffbd93] Command: /usr/bin/env mktemp

DEBUG[69ffbd93] /tmp/tmp.hvY0EB454U

DEBUG[69ffbd93] Finished in 0.006 seconds with exit status 0 (successful).

cap aborted!

SSHKit::Runner::ExecuteError: Exception while executing on host 
10.11.11.11: No such file or directory - archive.tar.gz


Errno::ENOENT: No such file or directory - archive.tar.gz


Tasks: TOP => copy:create_release => copy:deploy

(See full trace by running task with --trace)

The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: 
Exception while executing on host 10.11.11.11  No such file or directory - 
archive.tar.gz>


-deadbeef


-- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to capistrano+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/6b998dca-c3b9-4928-a3b3-2ba1d821d37d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to