Using shell or command to do git operation fails half the time
34 views
Skip to first unread message
Michael Bushey
unread,
Dec 1, 2017, 2:55:20 PM12/1/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I am doing a git fetch (also git merge master) on the remote machines. It seems random whether it will work or not. I get errors like: "error fetching identities for protocol 2: communication with agent failed" or "fatal: 'ef' does not appear to be a git repository\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists."
I can manually ssh into the server and run a "git fetch" 100% of the time.
In the Ansible playbook I can do a "ssh-add -l" and see the key it should be using the step before the "Could not read from remote repository." error. The git server is Bitbucket v5.4.0.
Any ideas?
Michael Bushey
unread,
Dec 5, 2017, 6:27:57 PM12/5/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message