mardi 16 juin 2015

URGENT AWS Cap Production Deploy Error - Server Down

    DEBUG [51290801] Finished in 0.178 seconds with exit status 1 (failed).
    INFO [8d369ff6] Running /var/www/cityspade/rvm1scripts/rvm-auto.sh 2.1.3 bundle exec sidekiq --index 0 --pidfile /var/www/cityspade/shared/tmp/pids/sidekiq.pid --environment production --logfile /var/www/cityspade/shared/log/sidekiq.log --daemon as ec2-user@cityspade.com
    DEBUG [8d369ff6] Command: cd /var/www/cityspade/releases/20150616201153 && ( RAILS_ENV=production /var/www/cityspade/rvm1scripts/rvm-auto.sh 2.1.3 bundle exec sidekiq --index 0 --pidfile /var/www/cityspade/shared/tmp/pids/sidekiq.pid --environment production --logfile /var/www/cityspade/shared/log/sidekiq.log --daemon )
    INFO [8d369ff6] Finished in 1.214 seconds with exit status 0 (successful).
    INFO [f378789a] Running /usr/bin/env sudo /usr/bin/monit monitor sidekiq_CitySpade_production0 as ec2-user@cityspade.com
    DEBUG [f378789a] Command: ( RAILS_ENV=production /usr/bin/env sudo /usr/bin/monit monitor sidekiq_CitySpade_production0 )
    DEBUG [f378789a]    sudo: /usr/bin/monit: command not found
    DEBUG Uploading /tmp/monit.conf 0.0%
    INFO Uploading /tmp/monit.conf 100.0%
    INFO [fd4c6c88] Running /usr/bin/env mv /tmp/monit.conf /etc/monit/conf.d/sidekiq_CitySpade_production.conf as ec2-user@cityspade.com
    DEBUG [fd4c6c88] Command: mv /tmp/monit.conf /etc/monit/conf.d/sidekiq_CitySpade_production.conf
    DEBUG [fd4c6c88]    mv: cannot move '/tmp/monit.conf' to '/etc/monit/conf.d/sidekiq_CitySpade_production.conf': No such file or directory
    INFO [55bf2cee] Running /usr/bin/env sudo mv /tmp/monit.conf /etc/monit/conf.d/sidekiq_CitySpade_production.conf as ec2-user@cityspade.com
    DEBUG [55bf2cee] Command: ( RAILS_ENV=production /usr/bin/env sudo mv /tmp/monit.conf /etc/monit/conf.d/sidekiq_CitySpade_production.conf )
    DEBUG [55bf2cee]    mv: cannot move '/tmp/monit.conf' to '/etc/monit/conf.d/sidekiq_CitySpade_production.conf': No such file or directory
    DEBUG [55bf2cee]    
    cap aborted!
    SSHKit::Runner::ExecuteError: Exception while executing as ec2-user@cityspade.com: Exception while executing as ec2-user@cityspade.com: sudo exit status: 1
    sudo stdout: mv: cannot move '/tmp/monit.conf' to '/etc/monit/conf.d/sidekiq_CitySpade_production.conf': No such file or directory
    sudo stderr: Nothing written
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:16:in `rescue in block (2 levels) in execute'
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
    SSHKit::Runner::ExecuteError: Exception while executing as ec2-user@cityspade.com: sudo exit status: 1
    sudo stdout: mv: cannot move '/tmp/monit.conf' to '/etc/monit/conf.d/sidekiq_CitySpade_production.conf': No such file or directory
    sudo stderr: Nothing written
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:16:in `rescue in block (2 levels) in execute'
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
    SSHKit::Command::Failed: sudo exit status: 1
    sudo stdout: mv: cannot move '/tmp/monit.conf' to '/etc/monit/conf.d/sidekiq_CitySpade_production.conf': No such file or directory
    sudo stderr: Nothing written
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/command.rb:95:in `exit_status='
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/backends/netssh.rb:179:in `block in _execute'
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/backends/netssh.rb:133:in `tap'
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/backends/netssh.rb:133:in `_execute'
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/backends/netssh.rb:66:in `execute'
    /Users/alexwang/.rvm/gems/ruby-2.1.1@global/gems/capistrano-3.1.0/lib/capistrano/dsl.rb:26:in `sudo'
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/capistrano-sidekiq-0.5.2/lib/capistrano/tasks/monit.cap:37:in `rescue in block (4 levels) in <top (required)>'
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/capistrano-sidekiq-0.5.2/lib/capistrano/tasks/monit.cap:34:in `block (4 levels) in <top (required)>'
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/backends/netssh.rb:54:in `instance_exec'
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/backends/netssh.rb:54:in `run'
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:13:in `block (2 levels) in execute'
    SSHKit::Command::Failed: mv /tmp/monit.conf /etc/monit/conf.d/sidekiq_CitySpade_production.conf exit status: 1
    mv /tmp/monit.conf /etc/monit/conf.d/sidekiq_CitySpade_production.conf stdout: mv: cannot move '/tmp/monit.conf' to '/etc/monit/conf.d/sidekiq_CitySpade_production.conf': No such file or directory
    mv /tmp/monit.conf /etc/monit/conf.d/sidekiq_CitySpade_production.conf stderr: Nothing written
    /Users/alexwang/.rvm/gems/ruby-2.1.1/gems/sshkit-1.7.1/lib/sshkit/command.rb:95:in `exit_status='

This is the error message when we run cap production deploy. We have no idea how to fix the '/tem/monit.conf' to '/etc/monit/conf.d/sidekiq_CitySpade_production.conf'-No such file or directory.

I think this is the line that prevents us from deploying and restarting the server. Thanks for your help!

SSHKit::Runner::ExecuteError: Exception while executing as ec2-user@cityspade.com: Exception while executing as ec2-user@cityspade.com: sudo exit status: 1 sudo stdout: mv: cannot move '/tmp/monit.conf' to '/etc/monit/conf.d/sidekiq_CitySpade_production.conf': No such file or directory sudo stderr: Nothing written

Aucun commentaire:

Enregistrer un commentaire