GitHub IssueCommentEvent at 2015-01-01 20:39:20
Repository: capistrano-plugins/capistrano-unicorn-nginx
Actor: bruno-
Payload: {"action":"created","issue":{"url":"https://api.github.com/repos/capistrano-plugins/capistrano-unicorn-nginx/issues/34","labels_url":"https://api.github.com/repos/capistrano-plugins/capistrano-unicorn-nginx/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/capistrano-plugins/capistrano-unicorn-nginx/issues/34/comments","events_url":"https://api.github.com/repos/capistrano-plugins/capistrano-unicorn-nginx/issues/34/events","html_url":"https://github.com/capistrano-plugins/capistrano-unicorn-nginx/issues/34","id":47039950,"number":34,"title":"CentOS 6.5 Troubles with cap setup","user":{"login":"irlrobot","id":4763809,"avatar_url":"https://avatars.githubusercontent.com/u/4763809?v=3","gravatar_id":"","url":"https://api.github.com/users/irlrobot","html_url":"https://github.com/irlrobot","followers_url":"https://api.github.com/users/irlrobot/followers","following_url":"https://api.github.com/users/irlrobot/following{/other_user}","gists_url":"https://api.github.com/users/irlrobot/gists{/gist_id}","starred_url":"https://api.github.com/users/irlrobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irlrobot/subscriptions","organizations_url":"https://api.github.com/users/irlrobot/orgs","repos_url":"https://api.github.com/users/irlrobot/repos","events_url":"https://api.github.com/users/irlrobot/events{/privacy}","received_events_url":"https://api.github.com/users/irlrobot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-10-28T15:28:24Z","updated_at":"2015-01-01T20:39:19Z","closed_at":null,"body":"Hello and thanks for the gem.  I'm trying to use it to get a CentOS 6.5 server setup with a Rails app and running into some troubles with the `cap production setup` step.  It fails trying to symlink to /etc/nginx/sites-enabled with the following:\r\n\r\n```\r\nINFO[9469de65] Running /usr/bin/env sudo ln -fs /etc/nginx/sites-available/my_app_production /etc/nginx/sites-enabled/my_app_production on 192.168.33.10\r\nDEBUG[9469de65] Command: /usr/bin/env sudo ln -fs /etc/nginx/sites-available/my_app_production /etc/nginx/sites-enabled/my_app_production\r\nDEBUG[9469de65] \tln: \r\nDEBUG[9469de65] \taccessing `/etc/nginx/sites-enabled/my_app_production'\r\nDEBUG[9469de65] \t: Not a directory\r\nDEBUG[9469de65] \t\r\ncap aborted!\r\nSSHKit::Runner::ExecuteError: Exception while executing on host 192.168.33.10: sudo exit status: 1\r\nsudo stdout: Nothing written\r\nsudo stderr: ln: accessing `/etc/nginx/sites-enabled/my_app_production': Not a directory\r\n```\r\n\r\nIf I manually create /etc/nginx/sites-enabled it then fails on running update-rc.d which does not exist on CentOS 6:\r\n\r\n```\r\nINFO[445efdaf] Running /usr/bin/env sudo update-rc.d -f unicorn_my_app_production defaults on 192.168.33.10\r\nDEBUG[445efdaf] Command: /usr/bin/env sudo update-rc.d -f unicorn_my_app_production defaults\r\nDEBUG[445efdaf] \tsudo\r\nDEBUG[445efdaf] \t: \r\nDEBUG[445efdaf] \tupdate-rc.d: command not found\r\nDEBUG[445efdaf] \t\r\ncap aborted!\r\nSSHKit::Runner::ExecuteError: Exception while executing on host 192.168.33.10: sudo exit status: 1\r\nsudo stdout: Nothing written\r\nsudo stderr: sudo: update-rc.d: command not found\r\n```\r\n\r\nI'm using the following versions:\r\ncapistrano (3.2.1)\r\ncapistrano-unicorn-nginx (3.1.1)"},"comment":{"url":"https://api.github.com/repos/capistrano-plugins/capistrano-unicorn-nginx/issues/comments/68497477","html_url":"https://github.com/capistrano-plugins/capistrano-unicorn-nginx/issues/34#issuecomment-68497477","issue_url":"https://api.github.com/repos/capistrano-plugins/capistrano-unicorn-nginx/issues/34","id":68497477,"user":{"login":"bruno-","id":1042682,"avatar_url":"https://avatars.githubusercontent.com/u/1042682?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno-","html_url":"https://github.com/bruno-","followers_url":"https://api.github.com/users/bruno-/followers","following_url":"https://api.github.com/users/bruno-/following{/other_user}","gists_url":"https://api.github.com/users/bruno-/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno-/subscriptions","organizations_url":"https://api.github.com/users/bruno-/orgs","repos_url":"https://api.github.com/users/bruno-/repos","events_url":"https://api.github.com/users/bruno-/events{/privacy}","received_events_url":"https://api.github.com/users/bruno-/received_events","type":"User","site_admin":false},"created_at":"2015-01-01T20:39:19Z","updated_at":"2015-01-01T20:39:19Z","body":"@jmbogaty sorry for never replying..\r\nIf you ever forked this plugin and made it work for centos, I'd be pretty interested to see the changes.."}}