When I run trellis deploy staging
I’m getting the following output:
TASK [deploy : Clone project files] ********************************************
fatal: [165.22.38.190]: 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] *******************************
fatal: [165.22.38.190]: FAILED! => {"changed": false, "msg": "Git repo git@github.com:DannyTaki/Alliance-Chemical.git on branch master cannot be accessed. Please verify the repository/branch are correct 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\nError:\nWarning: Permanently added the ED25519 host key for IP address '140.82.114.4' to the list of known hosts.\r\nERROR: Repository not found.\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n"}
PLAY RECAP *********************************************************************
165.22.38.190 : ok=5 changed=0 unreachable=0 failed=1 skipped=15 rescued=0 ignored=1
localhost : ok=0 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
exit status 2
My all/users.yml file is as follows:
# Documentation: https://roots.io/trellis/docs/ssh-keys/
admin_user: admin
# Also define 'vault_users' (`group_vars/staging/vault.yml`, `group_vars/production/vault.yml`)
users:
- name: "{{ web_user }}"
groups:
- "{{ web_group }}"
keys:
- "{{ lookup('file', '~/.ssh/id_rsa2.pub', errors='ignore') }}"
- "{{ lookup('file', '~/.ssh/id_ed25519.pub', errors='ignore') }}"
- https://github.com/DannyTaki.keys
- name: "{{ admin_user }}"
groups:
- sudo
keys:
- "{{ lookup('file', '~/.ssh/id_rsa2.pub', errors='ignore') }}"
- "{{ lookup('file', '~/.ssh/id_ed25519.pub', errors='ignore') }}"
- https://github.com/DannyTaki.keys
web_user: web
web_group: www-data
web_sudoers:
- "/usr/sbin/service php{{ php_version }}-fpm *"
My staging/wordpress_sites.yml:
# Created by trellis-cli v1.7.0
# Documentation: https://docs.roots.io/trellis/master/wordpress-sites/
wordpress_sites:
alliancechemical.com:
site_hosts:
- canonical: alliancechemical.com
redirects:
- www.alliancechemical.com
local_path: ../site
branch: master
repo: git@github.com:dannytaki/alliance-chemical.git
repo_subtree_path: site
multisite:
enabled: false
ssl:
enabled: false
provider: letsencrypt
cache:
enabled: false
And I’ve added the public key ~/.ssh/id_rsa2.pub to my Github Repo
Running git remote -v in my local
type or paste code here
daniel@daniel-H170-Gaming-3:~/alliancechemical.com$ git remote -v
origin git@github.com-alliancechemical:DannyTaki/Alliance-Chemical.git (fetch)
origin git@github.com-alliancechemical:DannyTaki/Alliance-Chemical.git (push)
My local ~/.ssh/config file shows:
ForwardAgent yes
Host www.example.test
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /home/daniel/example.com/trellis/.vagrant/machines/default/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
ForwardAgent yes
Host github.com-alliancechemical
Hostname github.com
IdentityFile=/home/daniel/.ssh/id_rsa2
Not sure why it’s failing