- Finally the call fails as the engine tries to fetch the refs using what appears to be an old socket (306) which was cached:
93 : โ โ โ git(
93 : โ โ โ โ url: "ssh://git@github.com/<myorg>/<myrepo>"
93 : โ โ โ โ keepGitDir: true
93 : โ โ โ โ sshAuthSocket: Host.unixSocket(path: "/tmp/ssh-CA2Sm7RydmH2/agent.306"): Socket!
93 : โ โ โ โ commit: "4b425bc12b572f7d4049cc51dabf131b95de00b3"
93 : โ โ โ ): GitRepository!
94 : โ โ โ โ Host.unixSocket(path: "/tmp/ssh-CA2Sm7RydmH2/agent.306"): Socket!
94 : โ โ โ โ Host.unixSocket DONE [0.0s]
95 : โ โ โ โ git remote metadata
96 : โ โ โ โ git ls-remote --symref ssh://git@github.com/<myorg>/<myrepo> ERROR [0.5s]
96 : โ โ โ โ ! git error: exit status 128
96 : โ โ โ โ [0.5s] | git@github.com: Permission denied (publickey).
96 : โ โ โ โ [0.5s] | fatal: Could not read from remote repository.
96 : โ โ โ โ [0.5s] |
96 : โ โ โ โ [0.5s] | Please make sure you have the correct access rights
96 : โ โ โ โ [0.5s] | and the repository exists.
Since the 306 socket does not exist anymore the git call is not authorized.
This seems like a bug where the 306 socket should not have been cached?
It took around 30 minutes for the engine to stop trying to use this old socket.
Is there anything we can do locally to mitigate this? These particular runs were on 0.19.8 (we are now running 0.19.10, since yesterday, we got reports of this every other day)