-
Notifications
You must be signed in to change notification settings - Fork 185
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
Permission denied (publickey,password) when trying to deploy #377
Comments
It isn't SSHing into the server which is getting permission denied, it is cloning the repository
You need to add the SSH key to the deploy keys for your repository, how you do that depends on where the repository is hosted https://docs.gitlab.com/ee/ssh/ |
It looks like the repository is cloning as it should (a tmp .tar.gz is created then deleted after the process fails) I have added the SSH key from deployer to my gitlab account and the same ssh key to ~/authorized_keys on the destination server. Do I have to add it somewhere else too? Thanks, |
Can you run |
It turn out to be a server permission issue! Feel free to close the issue. Thanks (and sorry for the delay) |
Oh? What was the issue? |
There was another company managing the server on behalf of our client. As far as I am informed, they didn't give proper user/group permissions to directories where the clone had to be deployed. |
I'm trying to deploy a project on an Nginx server.
Expected behaviour
Upload releases and setup /latest symlink
Please describe what you're expecting to see happen.
Completed
Actual behavior
On release step, we are getting
production.ERROR: Permission denied (publickey,password).
Environment info
Laravel Environment
Server Environment
20180505045738.17+stretch1.gbpde69c6Installed Packages & their version numbers
Extra Information
proc_open enabled : ✔
Operating System: Ubuntu
PHP Version: 7.1.12
Node Version:
Database System:
Database Version: 5.7
Logs (see storage/logs/) or other output that would be helpful
(If logs are large, please upload as attachment).
latest log
[2018-05-18 14:24:15] production.ERROR: Permission denied (publickey,password).
yesterday log:
cli-2018-05-17.log
The text was updated successfully, but these errors were encountered: