Note that there are some explanatory texts on larger screens.

plurals
  1. PODeploy error using capistrano failed: "sh -c 'cat /home........current/REVISION
    primarykey
    data
    text
    <p>I get an error while deploying app to VPS by capistrano. cap deploy:setup, and cap deploy:check executes without error!</p> <p>when I try to cap deploy:cold or simply cap deploy, I get this</p> <pre><code>[deploy:update_code] rolling back * executing [#&lt;Capistrano::Command::Tree::ElseBranch:0x0000010141e798 @condition="else", @command="rm -rf /home/yasinishyn/apps/mkv/releases/20130505214957; true", @callback=#&lt;Proc:0x0000010140f6a8@/usr/local/rvm/gems/ruby-2.0.0-p0/gems/capistrano-2.15.3/lib/capistrano/configuration/actions/invocation.rb:13&gt;, @options={}, @skip=false&gt;] servers: ["xxx.xxx.xxx.xxx"] [xxx.xxx.xxx.xxx] executing command command finished in 225ms failed: "sh -c 'cat /home/yasinishyn/apps/mkv/current/REVISION'" on xxx.xxx.xxx.xxx </code></pre> <p>How to debug this? where in an error? what does this means "failed: "sh -c 'cat /home/yasinishyn/apps/mkv/current/REVISION'" on 198.211.125.183"?</p> <p>deploy.rb:</p> <pre><code>require "bundler/capistrano" server "xxx.xxx.xxx.xxx", :web, :app, :db, primary: true set :application, "app" set :user, "user" set :deploy_to, "/home/#{user}/apps/#{application}" set :deploy_via, :remote_cache set :use_sudo, false set :shared_children, shared_children + %w{public/uploads} set :scm, "git" set :repository, "git@github.com:git_user/#{application}.git" set :branch, "master" default_run_options[:pty] = true ssh_options[:forward_agent] = true after "deploy", "deploy:cleanup" # keep only the last 5 releases namespace :deploy do namespace :assets do task :precompile, :roles =&gt; :web do from = source.next_revision(current_revision) if capture("cd #{latest_release} &amp;&amp; #{source.local.log(from)} vendor/assets/ lib/assets/ app/assets/ | wc -l").to_i &gt; 0 run_locally("rake assets:clean &amp;&amp; rake assets:precompile") run_locally "cd public &amp;&amp; tar -jcf assets.tar.bz2 assets" top.upload "public/assets.tar.bz2", "#{shared_path}", :via =&gt; :scp run "cd #{shared_path} &amp;&amp; tar -jxf assets.tar.bz2 &amp;&amp; rm assets.tar.bz2" run_locally "rm public/assets.tar.bz2" run_locally("rake assets:clean") else logger.info "Skipping asset precompilation because there were no asset changes" end end task :symlink, roles: :web do run ("rm -rf #{latest_release}/public/assets &amp;&amp; mkdir -p #{latest_release}/public &amp;&amp; mkdir -p #{shared_path}/assets &amp;&amp; ln -s #{shared_path}/assets #{latest_release}/public/assets") end end %w[start stop restart].each do |command| desc "#{command} unicorn server" task command, roles: :app, except: {no_release: true} do run "/etc/init.d/unicorn_#{application} #{command}" end end task :setup_config, roles: :app do sudo "ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}" sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}" run "mkdir -p #{shared_path}/config" put File.read("config/database.example.yml"), "#{shared_path}/config/database.yml" puts "Now edit the config files in #{shared_path}." end after "deploy:setup", "deploy:setup_config" task :symlink_config, roles: :app do run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml" end after "deploy:finalize_update", "deploy:symlink_config" desc "Make sure local git is in sync with remote." task :check_revision, roles: :web do unless `git rev-parse HEAD` == `git rev-parse origin/master` puts "WARNING: HEAD is not the same as origin/master" puts "Run `git push` to sync changes." exit end end before "deploy", "deploy:check_revision" #rake seed task desc "Seed the database on already deployed code" task :seed, :only =&gt; {:primary =&gt; true}, :except =&gt; { :no_release =&gt; true } do run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec rake db:seed" end desc "Seed the database on already deployed code" task :drop, :only =&gt; {:primary =&gt; true}, :except =&gt; { :no_release =&gt; true } do run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec rake db:drop:all" run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec rake db:create:all" run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec rake db:migrate" end end </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload