capistrano-plugins / capistrano-unicorn-nginx

Capistrano tasks for automatic and sensible unicorn + nginx configuration
MIT License
175 stars 81 forks source link

Can't restart unicorn #8

Open bscott opened 10 years ago

bscott commented 10 years ago

When running deploy, see weird output from the unicorn task

INFO[5c90314d] Running /usr/bin/env sudo /etc/init.d/nginx reload on x.x.x.x
DEBUG[5c90314d] Command: /usr/bin/env sudo /etc/init.d/nginx reload
DEBUG[5c90314d]      * Reloading nginx configuration nginx       
DEBUG[5c90314d]     [80G
DEBUG[5c90314d]      
DEBUG[5c90314d]     
DEBUG[5c90314d]     [74G
DEBUG[5c90314d]     [ OK ]
DEBUG[5c90314d]     
INFO[5c90314d] Finished in 0.134 seconds with exit status 0 (successful).
INFO[93cdc175] Running /usr/bin/env service  restart on x.x.x.x
DEBUG[93cdc175] Command: /usr/bin/env service  restart
DEBUG[93cdc175]     restart: unrecognized service
DEBUG[93cdc175]     
cap aborted!
bruno- commented 10 years ago

Hey, thanks for reporting. I've never had this issue before so I'll need your help in debugging this.

Unicorn restart task is really simple, it's just one line really, here.

It seems you're missing the value from the unicorn_service option. By default it should be something like: "unicorn_appname_production". I'm guessing you overrode that somewhere?

thejchap commented 9 years ago

For what its worth I ran into this too and the 'no such service' wasn't what was actually wrong...it was just the last thing in the logs before something else broke (found in app/shared/log/unicorn.stderr.log)