Skip to content

Instantly share code, notes, and snippets.

@no-reply
Created August 27, 2014 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save no-reply/0033ba310300c311e0c3 to your computer and use it in GitHub Desktop.
Save no-reply/0033ba310300c311e0c3 to your computer and use it in GitHub Desktop.
Ansible Restart Unicorn
NOTIFIED: [frontend | restart unicorn] ****************************************
<192.168.50.6> ESTABLISH CONNECTION FOR USER: tom
<192.168.50.6> REMOTE_MODULE service name=unicorn_frontend state=reloaded
<192.168.50.6> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/tjohnson/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=tom', '-o', 'ConnectTimeout=10', '192.168.50.6', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1409156132.72-28508570131040 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1409156132.72-28508570131040 && echo $HOME/.ansible/tmp/ansible-tmp-1409156132.72-28508570131040'"]
<192.168.50.6> PUT /tmp/tmp2jNjg7 TO /home/tom/.ansible/tmp/ansible-tmp-1409156132.72-28508570131040/service
<192.168.50.6> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/tjohnson/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=tom', '-o', 'ConnectTimeout=10', '192.168.50.6', u'/bin/sh -c \'sudo -k && sudo -H -S -p "[sudo via ansible, key=pdesqbbtcnetfibkkyafcsfmuwtzwmyk] password: " -u root /bin/sh -c \'"\'"\'echo SUDO-SUCCESS-pdesqbbtcnetfibkkyafcsfmuwtzwmyk; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/tom/.ansible/tmp/ansible-tmp-1409156132.72-28508570131040/service; rm -rf /home/tom/.ansible/tmp/ansible-tmp-1409156132.72-28508570131040/ >/dev/null 2>&1\'"\'"\'\'']
failed: [webapp1] => {"failed": true}
msg: /home/dpla/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:91:in `block in reload': directory for pid=/srv/www/frontend/tmp/unicorn_frontend.pid not writable (ArgumentError)
from /home/dpla/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:87:in `each'
from /home/dpla/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:87:in `reload'
from /home/dpla/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:68:in `initialize'
from /home/dpla/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:108:in `new'
from /home/dpla/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:108:in `initialize'
from /home/dpla/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/unicorn-4.7.0/bin/unicorn:126:in `new'
from /home/dpla/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/unicorn-4.7.0/bin/unicorn:126:in `<top (required)>'
from /home/dpla/.rbenv/versions/1.9.3-p547/bin/unicorn:23:in `load'
from /home/dpla/.rbenv/versions/1.9.3-p547/bin/unicorn:23:in `<main>'
master failed to start, check stderr log for details
FATAL: all hosts have already failed -- aborting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment