-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scp: /tmp/git-ssh.sh: Permission denied #687
Comments
The key line here is For now though, I'm going to close this issue as it doesn't look to be caused by a bug within cap, but rather server configuration. |
Okay so, I believe the reason for the Permission denied is that I have a multi-user system and another user has deployed with capistrano3 and it's created QUESTION: |
Also, all my user's have a Would be ideal (in my particular case, which I recognize is not necessarily useful for everyone) if I could define some sort of parameter in my deployment or on the server itself to tell Capistrano to use |
Another update, I've attempted to solve it by creating a "capistrano" user group and add all the "deploying" users to it and gave that group
I mean, I get why it needs it to be owned by the user so that the files that "git" pulls down don't get owned by the root:capistrano but still... just wish I could find an alternative solution. Back to the drawing board again... |
OOPS! Forgive me... Thanks for your help... |
Joshua, we decided to KISS, so no - but you are doing it right, most people We'd be glad of a patch/PR to make it use Lee Hambleyhttp://lee.hambley.name/ On 14 October 2013 14:57, Joshua Rountree notifications@github.com wrote:
|
the issue might be the /tmp folder in your deployment machine does not have enough permission to run the script, change the folder /tmp folder to something else by |
Additional information, sometimes it's considered security practice to [1] Lee Hambleyhttp://lee.hambley.name/ On 18 February 2014 19:52, Bahador Biglari notifications@github.com wrote:
|
@bbiglari That solution was the fix for me. @joshuairl Thanks for pointing me in the right direction. |
@bbiglari fix my problem. Thx |
👍 @bbiglari! |
I actually uploaded successfully git-ssh.sh file but still got permission denied.
|
Sorry, I figured it out that I didn't use role filters. |
+1 @bbiglari |
So I am using the same server with two different users for deploying each stage. It seems like the first user creates "/tmp/APPLICATIONNAME/git-ssh.sh" and then the seconds user tries the same and fails. Is the expectation that I should set |
No expectation, if it doesn't work you'll have to change it :) But yes, Lee Hambleyhttp://lee.hambley.name/ On 6 November 2014 00:02, Howard Roark notifications@github.com wrote:
|
Fair enough ;) Thanks! |
@bbiglari Thank you! 👍 |
@bbiglari Thank you, that fixed it ! |
@bbiglari Yet another fix. Super. |
@leehambley I had this issue too (deploying on a multi user server.. ) may I suggest to add details about this issue and the suggestion to use |
I think I'm too fried to see what's happening here...
Setup a new app to deploy with capv3 and I have no clue why this is happening.
I have ssh auth passwordless setup correctly with the remote server...
I can ssh and run any commands via ssh...
full trace:
The text was updated successfully, but these errors were encountered: