Skip to content

Instantly share code, notes, and snippets.

@mtmcfarl
Created April 4, 2014 18:20
Show Gist options
  • Save mtmcfarl/8c21a05447b9124ac7b4 to your computer and use it in GitHub Desktop.
Save mtmcfarl/8c21a05447b9124ac7b4 to your computer and use it in GitHub Desktop.
cap deploy:cold
* 2014-04-04 14:08:17 executing `deploy:cold'
* 2014-04-04 14:08:17 executing `deploy:update'
** transaction: start
* 2014-04-04 14:08:17 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@github.com:brandonburke/plsg.git master"
command finished in 1614ms
* executing "if [ -d /var/www/dashboard/shared/cached-copy ]; then cd /var/www/dashboard/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 978dc3fb6cd5a1dfb22cc0aff496de407274dbbe && git clean -q -d -x -f; else git clone -q -b master git@github.com:brandonburke/plsg.git /var/www/dashboard/shared/cached-copy && cd /var/www/dashboard/shared/cached-copy && git checkout -q -b deploy 978dc3fb6cd5a1dfb22cc0aff496de407274dbbe; fi"
servers: ["192.168.100.115"]
Password:
[192.168.100.115] executing command
command finished in 3082ms
copying the cached version to /var/www/dashboard/releases/20140404180824
* executing "cp -RPp /var/www/dashboard/shared/cached-copy /var/www/dashboard/releases/20140404180824 && (echo 978dc3fb6cd5a1dfb22cc0aff496de407274dbbe > /var/www/dashboard/releases/20140404180824/REVISION)"
servers: ["192.168.100.115"]
[192.168.100.115] executing command
command finished in 419ms
* 2014-04-04 14:08:24 executing `deploy:finalize_update'
triggering before callbacks for `deploy:finalize_update'
* 2014-04-04 14:08:24 executing `bundle:install'
* executing "cd /var/www/dashboard/releases/20140404180824 && bundle install --gemfile /var/www/dashboard/releases/20140404180824/Gemfile --path /var/www/dashboard/shared/bundle --deployment --quiet --without development test"
servers: ["192.168.100.115"]
[192.168.100.115] executing command
command finished in 965ms
* executing "chmod -R -- g+w /var/www/dashboard/releases/20140404180824 && rm -rf -- /var/www/dashboard/releases/20140404180824/public/system && mkdir -p -- /var/www/dashboard/releases/20140404180824/public/ && ln -s -- /var/www/dashboard/shared/system /var/www/dashboard/releases/20140404180824/public/system && rm -rf -- /var/www/dashboard/releases/20140404180824/log && ln -s -- /var/www/dashboard/shared/log /var/www/dashboard/releases/20140404180824/log && rm -rf -- /var/www/dashboard/releases/20140404180824/tmp/pids && mkdir -p -- /var/www/dashboard/releases/20140404180824/tmp/ && ln -s -- /var/www/dashboard/shared/pids /var/www/dashboard/releases/20140404180824/tmp/pids"
servers: ["192.168.100.115"]
[192.168.100.115] executing command
command finished in 367ms
* executing "find /var/www/dashboard/releases/20140404180824/public/images /var/www/dashboard/releases/20140404180824/public/stylesheets /var/www/dashboard/releases/20140404180824/public/javascripts -exec touch -t 201404041808.26 -- {} ';'; true"
servers: ["192.168.100.115"]
[192.168.100.115] executing command
** [out :: 192.168.100.115] find:
** [out :: 192.168.100.115] `/var/www/dashboard/releases/20140404180824/public/images'
** [out :: 192.168.100.115] : No such file or directory
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] find:
** [out :: 192.168.100.115] `/var/www/dashboard/releases/20140404180824/public/stylesheets'
** [out :: 192.168.100.115] : No such file or directory
** [out :: 192.168.100.115]
command finished in 372ms
triggering after callbacks for `deploy:update_code'
* 2014-04-04 14:08:26 executing `whenever:clear_crontab'
* executing "cd /var/www/dashboard/releases/20140404180824 && bundle exec whenever --clear-crontab dashboard"
servers: ["192.168.100.115"]
[192.168.100.115] executing command
** [out :: 192.168.100.115] [write] crontab file
** [out :: 192.168.100.115]
command finished in 926ms
* 2014-04-04 14:08:27 executing `deploy:create_symlink'
* executing "rm -f /var/www/dashboard/current && ln -s /var/www/dashboard/releases/20140404180824 /var/www/dashboard/current"
servers: ["192.168.100.115"]
[192.168.100.115] executing command
command finished in 345ms
triggering after callbacks for `deploy:create_symlink'
* 2014-04-04 14:08:27 executing `deploy:update_crontab'
* executing "cd /var/www/dashboard/releases/20140404180824 && bundle exec whenever --update-crontab dashboard"
servers: ["192.168.100.115"]
[192.168.100.115] executing command
** [out :: 192.168.100.115] [write] crontab file updated
** [out :: 192.168.100.115]
command finished in 1027ms
** transaction: commit
* 2014-04-04 14:08:28 executing `deploy:migrate'
* executing "cd /var/www/dashboard/releases/20140404180824 && bundle exec rake RAILS_ENV=production db:migrate"
servers: ["192.168.100.115"]
[192.168.100.115] executing command
command finished in 2802ms
* 2014-04-04 14:08:31 executing `deploy:start'
* executing "sudo -p 'sudo password: ' /home/brandon/.rvm/bin/bootup_thin -C /etc/thin/plsg.yml start"
servers: ["192.168.100.115"]
[192.168.100.115] executing command
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb:75:in `setup'
** [out :: 192.168.100.115] :
** [out :: 192.168.100.115] undefined method `name' for #<Array:0x7fe47dcbe030>
** [out :: 192.168.100.115] (
** [out :: 192.168.100.115] NoMethodError
** [out :: 192.168.100.115] )
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `map'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb:75:in `each'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb:75:in `map'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb:75:in `setup'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb:114:in `check'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb:121
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/rubygems-bundler-1.4.2/lib/rubygems_executable_plugin.rb:4
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/executable-hooks-1.3.1/lib/executable-hooks/hooks.rb:50:in `call'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/executable-hooks-1.3.1/lib/executable-hooks/hooks.rb:50:in `run'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/executable-hooks-1.3.1/lib/executable-hooks/hooks.rb:49:in `each'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/gems/executable-hooks-1.3.1/lib/executable-hooks/hooks.rb:49:in `run'
** [out :: 192.168.100.115]
** [out :: 192.168.100.115]
** [out :: 192.168.100.115] from /home/brandon/.rvm/gems/ruby-1.8.7-p334@global/bin/ruby_executable_hooks:10
** [out :: 192.168.100.115]
command finished in 515ms
failed: "rvm_path=/home/brandon/.rvm /home/brandon/.rvm/bin/rvm-shell 'ruby-1.8.7-p334@dashboard' -c 'sudo -p '\\''sudo password: '\\'' /home/brandon/.rvm/bin/bootup_thin -C /etc/thin/plsg.yml start'" on 192.168.100.115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment