{"action":"created","issue":{"url":"https://api.github.com/repos/capistrano/capistrano/issues/1510","labels_url":"https://api.github.com/repos/capistrano/capistrano/issues/1510/labels{/name}","comments_url":"https://api.github.com/repos/capistrano/capistrano/issues/1510/comments","events_url":"https://api.github.com/repos/capistrano/capistrano/issues/1510/events","html_url":"https://github.com/capistrano/capistrano/issues/1510","id":112820035,"number":1510,"title":"SSH port setting causes failure to create a symbolic link","user":{"login":"AlexVPopov","id":3239252,"avatar_url":"https://avatars.githubusercontent.com/u/3239252?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexVPopov","html_url":"https://github.com/AlexVPopov","followers_url":"https://api.github.com/users/AlexVPopov/followers","following_url":"https://api.github.com/users/AlexVPopov/following{/other_user}","gists_url":"https://api.github.com/users/AlexVPopov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexVPopov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexVPopov/subscriptions","organizations_url":"https://api.github.com/users/AlexVPopov/orgs","repos_url":"https://api.github.com/users/AlexVPopov/repos","events_url":"https://api.github.com/users/AlexVPopov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexVPopov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-22T14:49:04Z","updated_at":"2015-10-22T15:06:29Z","closed_at":"2015-10-22T15:01:11Z","body":"Here are some lines from my `staging.rb`:\r\n\r\n```ruby\r\nrole :app, %w{xxx@xxxxxxx:5722}\r\nrole :web, %w{xxx@xxxxxxx:5722}\r\nrole :db,  %w{xxx@xxxxxxx:5722}\r\n\r\nserver 'xxxxxxx', user: 'deploy', roles: %w{web app}, port: 5722\r\n```\r\n\r\nEverything works fine. If I remove the `port` argument from the server method and instead have:\r\n\r\n```ruby\r\nset :ssh_options, { port: 5722 }\r\n```\r\n\r\ndeployment fails with:\r\n\r\n```bash\r\nINFO[f36a948f] Finished in 0.098 seconds with exit status 0 (successful).\r\nDEBUG[8caa32bf] \tln: \r\nDEBUG[8caa32bf] \tfailed to create symbolic link '/home/deploy/xxx/releases/20151022143722/config/database.yml'\r\nDEBUG[8caa32bf] \t: File exists\r\ncap aborted!\r\nSSHKit::Runner::ExecuteError: Exception while executing on host xxxxxxxxxxxxxx: ln exit status: 1\r\nln stdout: Nothing written\r\nln stderr: Nothing written\r\n\r\nSSHKit::Command::Failed: ln exit status: 1\r\nln stdout: Nothing written\r\nln stderr: Nothing written\r\n```\r\n\r\nDo you have any clues at to what the problem might be? Thank you."},"comment":{"url":"https://api.github.com/repos/capistrano/capistrano/issues/comments/150255605","html_url":"https://github.com/capistrano/capistrano/issues/1510#issuecomment-150255605","issue_url":"https://api.github.com/repos/capistrano/capistrano/issues/1510","id":150255605,"user":{"login":"AlexVPopov","id":3239252,"avatar_url":"https://avatars.githubusercontent.com/u/3239252?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexVPopov","html_url":"https://github.com/AlexVPopov","followers_url":"https://api.github.com/users/AlexVPopov/followers","following_url":"https://api.github.com/users/AlexVPopov/following{/other_user}","gists_url":"https://api.github.com/users/AlexVPopov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexVPopov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexVPopov/subscriptions","organizations_url":"https://api.github.com/users/AlexVPopov/orgs","repos_url":"https://api.github.com/users/AlexVPopov/repos","events_url":"https://api.github.com/users/AlexVPopov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexVPopov/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T15:06:29Z","updated_at":"2015-10-22T15:06:29Z","body":"Ok, thanks!\n\nOn Thursday, October 22, 2015, Lee Hambley <notifications@github.com> wrote:\n\n> Because if you set a global option for the port, we see two machines, if\n> you specify the port *on* the machine in the server line then they are\n> cleaned up by the duplication detection.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/capistrano/capistrano/issues/1510#issuecomment-150255248>\n> .\n>\n"}}