Roots Discourse

Stuck on deploy - cannot clone repo

Hi there I keep getting this error

System info:

Ansible 2.7.0; Darwin

Trellis 1.0.3: April 30th, 2019


fatal: [35.246.4.156]: FAILED! => {

“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,

“changed”: false

}

…ignoring

TASK [deploy : Failed connection to remote repo] ************************************************************************************************

task path: /Users/magda/Documents/chelseaAppsWebsite/trellis/roles/deploy/tasks/update.yml:27

System info:

Ansible 2.7.0; Darwin

Trellis 1.0.3: April 30th, 2019


Git repo git@github.com:cube-academy/chelseaAppsWebsite.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: [35.246.4.156]: FAILED! => {

“changed”: false

}

to retry, use: --limit @/Users/magda/Documents/chelseaAppsWebsite/trellis/deploy.retry

and my ssh config looks like this

Host chelsea-apps.web
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/magda/Documents/chelseaAppsWebsite/trellis/.vagrant/machines/default/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
ForwardAgent yes
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa

Host staging.chelsea-apps.web
ForwardAgent yes

I have added the public key to my github also.

Can anyone help?

Just to add, when I ssh into the instance and run git@github.com

the reply comes back with success and my username???

Does running your ansible command with a verbose switch give you any more details?

This topic was automatically closed after 42 days. New replies are no longer allowed.