Capistrano 2.11.2 briefly turn off rollback

514 views
Skip to first unread message

Vell

unread,
Dec 17, 2013, 3:08:06 PM12/17/13
to capis...@googlegroups.com
Versions:
  • Ruby 1.9.2p320
  • Capistrano 2.11.2
  • Rake / Rails / etc  Rake 9.2.2/Rails 3.2.13
Platform:
  • Working on.... CentOS release 6.
  • Deploying to...
Logs:
 ** [out :: rails-192-vmware] ArgumentError: invalid byte sequence in US-ASCII

 ** [out :: rails-192-vmware] An error occured while installing thor (0.18.1), and Bundler cannot continue.

 ** [out :: rails-192-vmware] Make sure that `gem install thor -v '0.18.1'` succeeds before bundling.

    command finished in 46213ms

*** [deploy:update_code] rolling back


Files:
  • Capfile
  • deploy.rb
  • Stage files (production.rb, staging.rb)
Hello all,

I am trying to understand how I can briefly turn off the rollback feature for capistrano 2.11.2 so that I can figure what the error is that occurred with a gem install during bundle install.

As it stands, I was able to install thor using gem install but yet bundler is still complaining. Is there a way that I can turn that I can turn off the rollback so that I can fun the specific common din the cap file and see what the complaint is?

Thanks

Donovan Bray

unread,
Dec 17, 2013, 8:49:12 PM12/17/13
to capis...@googlegroups.com
Add this to your deploy.rb and unrem as necessary. 

  # #For troubleshooting only
  # namespace :deploy do
  #   task :update_code, :except => { :no_release => true } do
  #     #on_rollback { run "rm -rf #{release_path}; true" }
  #     strategy.deploy!
  #     finalize_update
  #   end
  # end

--
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+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/d240a995-d4fb-4148-918a-7c55973c01b7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Vell

unread,
Dec 19, 2013, 10:59:19 AM12/19/13
to capis...@googlegroups.com
I am looking at the current script that I am bug hunting my issue and see there is not an update_code method in the script yet it is being called. If I copy the script from the capitrano gem and put it into my deploy script  and then comment out he portion of the rollback, I assume that would work right?
Reply all
Reply to author
Forward
0 new messages