Hello,

When deploying to my stage machine, I'm getting many errors "time stamp 
2014-10-09 07:35:15 is 1 s in the future" which causes "cap staging deploy" 
to rollback. Any ideas how to fix that issue?

Thanks,
George

Versions:

   - Ruby ruby 2.0.0p481 (2014-05-08 revision 45883) 
   [universal.x86_64-darwin13]
   - Capistrano Capistrano v2.15.5
   - Rake / Rails / etc

Platform:

   - Working on.... Mac OS X 10.9.5
   - Deploying to... Linux 2.6.18-308.1.1.el5 #1 SMP Wed Mar 7 04:16:51 EST 
   2012 x86_64 x86_64 x86_64 GNU/Linux

Logs:

   - Please past logs (as completely as possible to a 3rd party pasting 
   service such as pastie.org)

** [out :: email-campaign-app1-staging.snc1] 
*20141009073515/lib/serviceLayer/handlers/SampleRouteHandler.coffee: 
time stamp 2014-10-09 07:35:15 is 1 s in the future*
 ** [out :: email-campaign-app1-staging.snc1]
 ** [out :: email-campaign-app1-staging.snc1] tar:
 ** [out :: email-campaign-app1-staging.snc1] Ignoring unknown extended 
header keyword `SCHILY.dev'
 ** [out :: email-campaign-app1-staging.snc1]
 ** [out :: email-campaign-app1-staging.snc1] tar:
 ** [out :: email-campaign-app1-staging.snc1] Ignoring unknown extended 
header keyword `SCHILY.ino'
 ** [out :: email-campaign-app1-staging.snc1]
 ** [out :: email-campaign-app1-staging.snc1] tar:
 ** [out :: email-campaign-app1-staging.snc1] Ignoring unknown extended 
header keyword `SCHILY.nlink'
 ** [out :: email-campaign-app1-staging.snc1]
 ** [out :: email-campaign-app1-staging.snc1] tar:
 ** [out :: email-campaign-app1-staging.snc1]* 
20141009073515/lib/serviceLayer: time stamp 2014-10-09 07:35:15 is 1 s in 
the future*
Files:

   - Capfile - attached
   - deploy.rb - attached
   - Stage files (production.rb, staging.rb)

-- 
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/1e4b2365-f1d4-4e42-bad6-f5b8ce012f87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
require 'capistrano/ext/multistage'

set :stages, %w(production staging uat)
set :default_stage, 'uat'

set :application, "pmp-campaign-management"
set :scm, :git
set :repository, "g...@github.groupondev.com:Push/CampaignManagement.git"
set :branch, "deployment-files-checkin"
set :deploy_to, "/var/groupon/www/#{application}"
set :deploy_via, :copy
set :copy_cache, "/tmp/caches/#{application}"
set :copy_exclude, [".git", "packages/*gz"]
set :copy_remote_dir, "/tmp"
set :keep_releases, 3


default_run_options[:pty] = true
default_run_options[:shell] = "/usr/bin/sudo -E /bin/sh"

before :deploy, "deploy:clean_cache"
before "deploy:restart", "deploy:install"
after :deploy, "deploy:cleanup"

namespace :deploy do
  task :clean_cache, :on_error => :continue do
    run_locally "rm -rf /tmp/caches/#{application}"
  end

  desc "Stop Forever"
  task :stop, :on_error => :continue do
    run "/usr/bin/pkill -f app.js"
  end

  desc "Start Forever"
  task :start do
    run "cd #{current_path} && (nohup sudo -E NODE_ENV=production npm start &) 
&& sleep 2"
  end

  desc "Restart Forever"
  task :restart do
    stop
    sleep 5
    start
  end

  desc "Check required packages and install if packages are not installed"
  task :install do
    run "npm config set registry http://npm-registry.snc1";
    run "cd #{current_path} && npm install"
  end
end





load 'deploy'
load 'config/deploy'

Reply via email to