seattlerb/vlad — Issue #18: multi-server issues
Author: retr0h
Created: 2011-12-06 21:13:36+00:00
State: open

I am trying to track down a problem I noticed. Deployments work fine, until I add another server to the domain list. At that point I encounter the error at the bottom of the issue. I am using a slightly older version of vlad, but I cannot get the vlad 2.2 series to work properly. Looking at the fixes since 2.1 I do not see anything which directly fixes this report.

Is it possible to verify this? It's completely hit or miss with multi-server.

task :'dev-perf_san1' do
set :domain, ["#{app_user}@10.2.0.87","#{app_user}@10.2.0.126"]
set :deploy_env, "dev-perf_san1"
end

Running the following:

vlad (2.1.0)
vlad-git (2.1.0)
rake-remote_task (2.0.4)

(master)☭% rake dev-perf_san1 vlad:deploy --trace
(in /Users/jdewey/git/apigee-keymanager)
/Users/jdewey/git/apigee-keymanager/lib/tasks/../../deploy/tasks/bundler.rake:2: warning: unused literal ignored
** Invoke dev-perf_san1 (first_time)
** Execute dev-perf_san1
** Invoke vlad:deploy (first_time)
** Invoke vlad:setup (first_time)
** Execute vlad:setup
** Invoke vlad:setup_app (first_time)
** Execute vlad:setup_app
ssh -A deploy@10.2.0.126 'umask 02 && mkdir -p /var/www/apps/kms /var/www/apps/kms/releases /var/www/apps/kms/scm /var/www/apps/kms/shared /var/www/apps/kms/shared/system /var/www/apps/kms/shared/log /var/www/apps/kms/shared/pids'
ssh -A deploy@10.2.0.87 'umask 02 && mkdir -p /var/www/apps/kms /var/www/apps/kms/releases /var/www/apps/kms/scm /var/www/apps/kms/shared /var/www/apps/kms/shared/system /var/www/apps/kms/shared/log /var/www/apps/kms/shared/pids'
** Invoke vlad:update (first_time)
** Execute vlad:update
ssh -A deploy@10.2.0.126 'cd /var/www/apps/kms/scm && rm -rf /var/www/apps/kms/scm/repo && git clone git@github.com:XXX.git /var/www/apps/kms/scm/repo && cd /var/www/apps/kms/scm/repo && git submodule update --init && git checkout -f -b deployed-HEAD HEAD && cd - && mkdir -p /var/www/apps/kms/releases/20111206210508 && cd repo && git archive --format=tar deployed-HEAD | (cd /var/www/apps/kms/releases/20111206210508 && tar xf -) && git submodule foreach 'git archive --format=tar $sha1 | (cd /var/www/apps/kms/releases/20111206210508/$path && tar xf -)' && cd - && cd .. && chmod -R g+w /var/www/apps/kms/releases/20111206210508 && rm -rf /var/www/apps/kms/releases/20111206210508/public/system /var/www/apps/kms/releases/20111206210508/log /var/www/apps/kms/releases/20111206210508/tmp/pids && mkdir -p /var/www/apps/kms/releases/20111206210508/tmp /var/www/apps/kms/releases/20111206210508/db'
ssh -A deploy@10.2.0.87 'cd /var/www/apps/kms/scm && rm -rf /var/www/apps/kms/scm/repo && git clone git@github.com:XXX.git /var/www/apps/kms/scm/repo && cd /var/www/apps/kms/scm/repo && git submodule update --init && git checkout -f -b deployed-HEAD HEAD && cd - && mkdir -p /var/www/apps/kms/releases/20111206210508 && cd repo && git archive --format=tar deployed-HEAD | (cd /var/www/apps/kms/releases/20111206210508 && tar xf -) && git submodule foreach 'git archive --format=tar $sha1 | (cd /var/www/apps/kms/releases/20111206210508/$path && tar xf -)' && cd - && cd .. && chmod -R g+w /var/www/apps/kms/releases/20111206210508 && rm -rf /var/www/apps/kms/releases/20111206210508/public/system /var/www/apps/kms/releases/20111206210508/log /var/www/apps/kms/releases/20111206210508/tmp/pids && mkdir -p /var/www/apps/kms/releases/20111206210508/tmp /var/www/apps/kms/releases/20111206210508/db'
Cloning into /var/www/apps/kms/scm/repo...
Cloning into /var/www/apps/kms/scm/repo...
/var/www/apps/kms/scm
Switched to a new branch 'deployed-HEAD'
/var/www/apps/kms/scm
** Invoke vlad:update_symlinks (first_time)
** Execute vlad:update_symlinks
ssh -A deploy@10.2.0.126 'ln -s /var/www/apps/kms/shared/system /var/www/apps/kms/releases/20111206210508/public/system && ln -s /var/www/apps/kms/shared/log /var/www/apps/kms/releases/20111206210508/log && ln -s /var/www/apps/kms/shared/pids /var/www/apps/kms/releases/20111206210508/tmp/pids'
ssh -A deploy@10.2.0.87 'ln -s /var/www/apps/kms/shared/system /var/www/apps/kms/releases/20111206210508/public/system && ln -s /var/www/apps/kms/shared/log /var/www/apps/kms/releases/20111206210508/log && ln -s /var/www/apps/kms/shared/pids /var/www/apps/kms/releases/20111206210508/tmp/pids'
ln: creating symbolic link `/var/www/apps/kms/releases/20111206210508/public/system' to `/var/www/apps/kms/shared/system': No such file or directory
ssh -A deploy@10.2.0.126 'rm -rf /var/www/apps/kms/releases/20111206210508'
^Crake aborted!