I’m not able to deploy to my remote server, using my bitbucket repo.
PLAY [Ensure necessary variables are defined] **********************************
TASK [Ensure environment is defined] *******************************************
skipping: [localhost]
PLAY [Deploy WP site] **********************************************************
TASK [setup] *******************************************************************
Enter passphrase for key '/home/vagrant/.ssh/id_rsa':
ok: [46.101.201.178]
TASK [Ensure site is valid] ****************************************************
skipping: [46.101.201.178]
TASK [Ensure repo is valid] ****************************************************
skipping: [46.101.201.178]
TASK [deploy : include] ********************************************************
TASK [deploy : include] ********************************************************
included: /vagrant/roles/deploy/tasks/initialize.yml for 46.101.201.178
TASK [deploy : include] ********************************************************
TASK [deploy : Initialize] *****************************************************
ok: [46.101.201.178]
TASK [deploy : include] ********************************************************
TASK [deploy : include] ********************************************************
included: /vagrant/roles/deploy/tasks/update.yml for 46.101.201.178
TASK [deploy : include] ********************************************************
TASK [deploy : Check whether project source path is a git repo] ****************
ok: [46.101.201.178]
TASK [deploy : Get current git remote URL] *************************************
skipping: [46.101.201.178]
TASK [deploy : Update git remote URL] ******************************************
skipping: [46.101.201.178]
TASK [deploy : Clone project files] ********************************************
System info:
Ansible 2.1.0.0; Linux
Trellis at "Require Ansible 2.0.2 and remove deploy_helper"
---------------------------------------------------
Warning: Permanently added the RSA host key for IP address '104.192.143.1' to
the list of known hosts.
Error reading response length from authentication socket.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Warning: Permanently added the RSA host key for IP address '104.192.143.1' to
the list of known hosts.
Error reading response length from authentication socket.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: [46.101.201.178]: 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] *******************************
System info:
Ansible 2.1.0.0; Linux
Trellis at "Require Ansible 2.0.2 and remove deploy_helper"
---------------------------------------------------
Git repo git@bitbucket.org:tobiasdalhof/netzkonditor.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: [46.101.201.178]: FAILED! => {"changed": false, "failed": true}
to retry, use: --limit @deploy.retry
PLAY RECAP *********************************************************************
46.101.201.178 : ok=6 changed=0 unreachable=0 failed=1
localhost : ok=0 changed=0 unreachable=0 failed=0
I already checked the connection to bitbucket using ssh git@bitbucket.org
on my VM, remote server and my local env. It says:
root@netzkonditor-ubuntu-512mb-fra1-01:~/.ssh# ssh git@bitbucket.org
Warning: Permanently added the RSA host key for IP address '104.192.143.3' to the list of known hosts.
Enter passphrase for key '/root/.ssh/id_rsa':
PTY allocation request failed on channel 0
logged in as tobiasdalhof.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
Connection to bitbucket.org closed.
I’m missing something… please help me
Btw: Using windows 10