Capistrano error on cached-copy

132 views
Skip to first unread message

Josh6847

unread,
Dec 6, 2009, 4:13:55 PM12/6/09
to Capistrano
I am receiving the following error when running a cap deploy:update

failed: "sh -c 'if [ -d /home/deployer/apps/all_bout_texas/shared/
cached-copy ]; then cd /home/deployer/apps/all_bout_texas/shared/
cached-copy && git fetch -q origin && git reset -q --hard
2350e98662e7fe00d526ff5f69460beb868a978a && git clean -q -d -x -f;
else git clone -q --depth 1 g...@github.com:jpowell/all_bout_texas.git /
home/deployer/apps/all_bout_texas/shared/cached-copy && cd /home/
deployer/apps/all_bout_texas/shared/cached-copy && git checkout -q -b
deploy 2350e98662e7fe00d526ff5f69460beb868a978a; fi'"

Here is my deploy.rb:

set :application, "all_bout_texas"

# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, "/home/deployer/apps/#{application}"

# If you aren't using Subversion to manage your source code, specify
# your SCM below:
default_run_options[ty] = true
set :scm, :git
set :repository, "g...@github.com:jpowell/all_bout_texas.git"
set :deploy_via, :remote_cache
set :branch, "master"
set :git_shallow_clone, 1
set :copy_cache, true

# abt
role :app, "174.143.241.236"
role :web, "174.143.241.236"
role :db, "174.143.241.236", rimary => true

set :scm_username, "my_user"
set :scm_passphrase, "my_pass"
set :scm_verbose, false

set :user, "my_user"
set :runner, "my_user"

namespace :deploy do
task :copy_database_configuration do
production_db_config = "/home/deployer/config/abt_database.yml"
run "cp #{production_db_config} #{release_path}/config/database.yml"
end

desc "Restarting mod_rails with restart.txt"
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{current_path}/tmp/restart.txt"
end

[:start, :stop].each do |t|
desc "#{t} task is a no-op with mod_rails"
task t, :roles => :app do ; end
end

after "deploy:update_code", "deploy:copy_database_configuration"
after "deploy:update_code", "deploy:restart"

end

Any ideas? Thanks.

Josh

Lee Hambley

unread,
Dec 6, 2009, 4:16:02 PM12/6/09
to capis...@googlegroups.com
Advice usually is to remove the cache, and re-run deploy:setup.

-- Lee Hambley

Twitter: @leehambley | @capistranorb

Josh6847

unread,
Dec 6, 2009, 4:31:00 PM12/6/09
to Capistrano
Remove what cache? The directory cached-copy is empty.

Lee Hambley

unread,
Dec 6, 2009, 4:37:22 PM12/6/09
to capis...@googlegroups.com
Please (pastie) the whole log.

Josh6847

unread,
Dec 6, 2009, 4:40:19 PM12/6/09
to Capistrano
Which log should I post?

Lee Hambley

unread,
Dec 6, 2009, 4:41:24 PM12/6/09
to capis...@googlegroups.com
$ cap deploy update | tee this-log-file.log

^ run that, send the resulting file.

Josh6847

unread,
Dec 6, 2009, 4:46:19 PM12/6/09
to Capistrano
I ran cap deploy update | tee cap.log

it created a cap.log and a mkmf.log. Here they are:

(cap.log)
checking for git... yes
Password:

(mkmf.log)
find_executable: checking for git... -------------------- yes

--------------------

That's all I got.

Lee Hambley

unread,
Dec 6, 2009, 4:56:25 PM12/6/09
to capis...@googlegroups.com
Does this work without :remote_cache ?
Reply all
Reply to author
Forward
0 new messages