Note that there are some explanatory texts on larger screens.

plurals
  1. POCapistrano: No servers for .... puma.state stop
    text
    copied!<p>Currently running capistrano for deployment:</p> <p>Environment: <code>Capistrano 2.15.5</code></p> <p><code>RAILS_ENV=uat cap deploy</code></p> <pre><code>2013-11-22 04:27:34 executing `puma:stop' * no servers for "cd /home/ubuntu/fancied-server/current; bundle exec pumactl -S /home/ubuntu/fancied-server/shared/sockets/puma.state stop" </code></pre> <p>My Capistrano:</p> <pre><code>require "capistrano" set :rvm_ruby_string, :local # use the same ruby as used locally for deployment set :rvm_autolibs_flag, "read-only" # more info: rvm help autolibs before 'deploy:setup', 'rvm:install_rvm' # install RVM before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset, OR: if ENV['RAILS_ENV'] == 'uat' # The address of the remote host on EC2 (the Public DNS address) set :location, "54.252.151.190" set :branch, "uat" role :app, location role :web, location role :db, location, :primary =&gt; true role :resque, location role :rapns, location #after 'deploy:stop', 'puma:stop' #after 'deploy:start', 'puma:start' #after 'deploy:restart', 'puma:restart' # Ensure the tmp/sockets directory is created by the deploy:setup task and # symlinked in by the deploy:update task. This is not handled by Capistrano # v2 but is fixed in v3. #shared_children.push('tmp/sockets') _cset(:puma_cmd) { "#{fetch(:bundle_cmd, 'bundle')} exec puma" } _cset(:pumactl_cmd) { "#{fetch(:bundle_cmd, 'bundle')} exec pumactl" } _cset(:puma_state) { "#{shared_path}/sockets/puma.state" } _cset(:puma_socket) { "unix://#{shared_path}/sockets/puma.sock" } _cset(:puma_role) { :app } end namespace :deploy do task :start, :roles =&gt; :web, :on_error =&gt; :continue do if ENV['RAILS_ENV'] == 'uat' if !puma.puma_pid_exists? puma.start else puma.restart end else run start_command end sleep 2 warmup_cache end .... namespace :puma do desc 'Start puma' task :start, :roles =&gt; lambda { fetch(:puma_role) }, :on_no_matching_servers =&gt; :continue, :on_error =&gt; :continue do run "cd #{current_path} &amp;&amp; #{fetch(:puma_cmd)} #{start_options}", :pty =&gt; false end desc 'Stop puma' task :stop, :roles =&gt; lambda { fetch(:puma_role) }, :on_no_matching_servers =&gt; :continue, :on_error =&gt; :continue do run "cd #{current_path}; #{fetch(:pumactl_cmd)} -S #{state_path} stop" end desc 'Restart puma' task :restart, :roles =&gt; lambda { fetch(:puma_role) }, :on_no_matching_servers =&gt; :continue, :on_error =&gt; :continue do run "cd #{current_path}; #{fetch(:pumactl_cmd)} -S #{state_path} restart" end end </code></pre> <p>So the question would be: is the server set correctly? Or how to set the server, so the it will stop bugging about the issues </p>
 

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