chrisroberts/cookbook-geminabox — pull request #1 by jblatt-verticloud (2012-09-28 00:03:11+00:00)
Title: Remove extra double quote from unix domain socket in unicorn config file...

....

With the extra double quote I saw this:

$ red_unicorn -x /usr/bin/unicorn -c /etc/geminabox/geminabox.unicorn.app -p /mnt/ebs1/geminabox/unicorn.pid restart
WARN: RedUnicorn::FileNotFound: PID file not found. Provided path: /mnt/ebs1/geminabox/unicorn.pid
WARN: unicorn not currently running. Starting.
WARN: RedUnicorn::FileNotFound: PID file not found. Provided path: /mnt/ebs1/geminabox/unicorn.pid
/usr/lib64/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/configurator.rb:74:in `instance_eval': /etc/geminabox/geminabox.unicorn.app:7: syntax error, unexpected tIDENTIFIER, expecting $end (SyntaxError)
listen ""unix://mnt/ebs1/geminabox/unicorn...
^
from /usr/lib64/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/configurator.rb:74:in `reload'
from /usr/lib64/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/configurator.rb:67:in `initialize'
from /usr/lib64/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:104:in `new'
from /usr/lib64/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:104:in `initialize'
from /usr/lib64/ruby/gems/1.9.1/gems/unicorn-4.3.1/bin/unicorn:121:in `new'
from /usr/lib64/ruby/gems/1.9.1/gems/unicorn-4.3.1/bin/unicorn:121:in `'
from /usr/bin/unicorn:23:in `load'
from /usr/bin/unicorn:23:in `

'
master failed to start, check stderr log for details
Unicorn action restart completed successfully.

After removing it:

$ red_unicorn -x /usr/bin/unicorn -c /etc/geminabox/geminabox.unicorn.app -p /mnt/ebs1/geminabox/unicorn.pid restart
WARN: RedUnicorn::FileNotFound: PID file not found. Provided path: /mnt/ebs1/geminabox/unicorn.pid
WARN: unicorn not currently running. Starting.
WARN: RedUnicorn::FileNotFound: PID file not found. Provided path: /mnt/ebs1/geminabox/unicorn.pid
Unicorn action restart completed successfully.

Not sure why the first one exited 0, but since chef likes to eat stderr/stdout it sure made debugging a pleasure.