Hi Chad,
Thank you for responding to my issue.
Just wanted to give some basic info on the GoCD version.
We are using GoCD 23.1.0 aarch version, all of our servers are Mac OS M1 servers(for both GoCD and agents)
- What are the specific clone errors you are getting?
we get the below error when the job tried to clone more the repositories, at first we thorught the git server is closing the connection, the gitlab team took the logs from ec2 instance where it says the source ip which is go-agent is requesting the disconnection.
pipelines logs:
STDERR: Cloning into '/Users/****/go-agent-23.1.0/pipelines/Git_Clone/daf-mock-server'...
STDERR: kex_exchange_identification: Connection closed by remote host
STDERR: Connection closed by 10.112.205.90 port 22
STDERR: fatal: Could not read from remote repository.
STDERR:
STDERR: Please make sure you have the correct access rights
STDERR: and the repository exists.
Failed to run git clone command
Logs from Git server: the Ip in the logs is go-agent ip.
Mar 5 23:30:23 ip-10-112-205-125 sshd[3315655]: pam_unix(sshd:session): session closed for user git
Mar 5 23:30:23 ip-10-112-205-125 sshd[3315640]: Received disconnect from 10.254.56.146 port 63239:11: disconnected by user
- Have you tried running clones manually to see if you can replicate the problem? That way you can enable git debugging flags to debug the issue. (e.g GIT_CURL_VERBOSE=1)
I have not done this part, I can try this on the agent.
- Which exact git version are you using? A Mac pre-installed one, or something from Brew or MacPorts?
Before this issue, we used pre-installed git version on all go-agents. In order to resolve this issue, I have installed git with brew on the go-agents and started using it. the version is 2.44.0. But the issue still exists. on the GoCD, we are still using pre-installed git, do I need install git with brew on the GoCD as well.
- Are the errors always on agents or always on the server, or both?
This error is occurring on the agents when the job starts cloning the repos mentioned in the materials.
- What's the filesystem path that GoCD is cloning into when there are failures?
The failures are happening on the agents. the agent path is /Users/****/go-agent-23.1.0/
We installed GoCD in /Applications/.The artifacts path is /Volumes/Artifacts.
Please let me know if you need more information.
Thank you.