Hi,
Apologies if this subject has cropped up before, but I have taken a look through the discourse and have not been able to find a matching issue.
This is an issue on a long standing project (around 2 years old), trellis has gone through a number of updates for bug fixes etc. I thought updating to the latest version of trellis may resolve the issue but on deploying to a server I received these error messages using the verbose command:
System info:
Ansible 2.2.0.0; Linux
Trellis at “Option to install WP-CLI packages”
Local modifications exist in repository (force=no).
fatal: [xxx.xxx.xxx.xxx]: FAILED! => {“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”}
…ignoring
TASK [deploy : Failed connection to remote repo] *******************************
task path: /trellis/roles/deploy/tasks/update.yml:45
System info:
Ansible 2.2.0.0; Linux
Trellis at “Option to install WP-CLI packages”
Git repo git@bitbucket.org:xxx/xxx.git cannot be accessed. Please
verify the repository exists and you have SSH forwarding set up correctly.
More info:
https://roots.io/trellis/docs/deploys/#ssh-keys
https://roots.io/trellis/docs/ssh-keys/#cloning-remote-repo-using-ssh-
agent-forwarding
fatal: [xxx.xxx.xxx.xxx]: FAILED! => {
“changed”: false,
“failed”: true,
“invocation”: {
“module_args”: {
“msg”: “Git repo git@bitbucket.org:xxx/xxx.git cannot be accessed. Please verify the repository exists and you have SSH forwarding set up correctly.\nMore info:\n> https://roots.io/trellis/docs/deploys/#ssh-keys\n> https://roots.io/trellis/docs/ssh-keys/#cloning-remote-repo-using-ssh-agent-forwarding\n”
},
“module_name”: “fail”
}
}
I have looked into the web pages shown in the error messages to ensure that ssh forwarding is setup correctly. I have tried using ssh git@bitbucket.org and the terminal outputs the repo’s I have access to including the repo I am trying to use in the deploy.
However when I try ssh git@bitbucket.org + :[project]/[repo-name].git the terminal states ssh: Could not resolve hostname bitbucket.org + :[project]/[repo-name].git Name or service not known
I also tried to ssh to the remote server from the server I am trying to deploy from and that succeeds as well.
Any help regarding this issue would be greatly appreciated