HI Ashwanth,

Im using the kubernetes elastic agent. When I test the connection on either 
scenario they both work.  Using an ec2 node work fine in both scenarios.
  [image: Screen Shot 2022-02-24 at 10.22.51 AM.png]

On Thursday, February 24, 2022 at 5:28:22 AM UTC-5 [email protected] 
wrote:

> Just checking in to see if you're seeing this error while doing "Check 
> Connection" or while running the pipeline? 
>
> If it's while running the pipeline, then the credentials would have to be 
> present at the go-agent and not at the server because agents do the git 
> clone of the materials for the pipeline. This is probably why your pipeline 
> 2 gives you an authentication error, while pipeline 1 gives you no 
> credentials found (or equivalent) errors. Seems like pipeline 2 error seems 
> to be that the username and password used is probably wrong. This can 
> happen if you've any saved password for accessing GoCD and when you open 
> the pop-up "Edit Git Material" screen, browsers (I'm looking at Chrome) 
> tend to auto-populate the saved password over the existing one. This used 
> to happen a while ago for me and got me head scratching for a while until I 
> realised this was the case. See if either of these 2 help you on this.
>
> Thanks,
>
>
> On Thu, 24 Feb 2022 at 03:34, Sifu Tian <[email protected]> wrote:
>
>> Ive been trying all day with no luck
>> I have 2 pipelines,  and no matter what scenario I choose, they both fail 
>> the initial cloning of my repository.  This is leveraging the kubernetes 
>> plugin for elastic agents.
>>
>>
>> pipeline 1:
>> Materials is set to:
>> https://github.com/org/repo.git
>> branch master
>> username and password blank because I am leveraging .git-credentials file 
>> on go-server which has valid access token with basic oauth 
>> https://XXXXXXTokenXXXXXXX <https://xxxxxxxxxxxxxxxxxx/>:
>> [email protected]
>>
>> I can perform a git clone on the go-server uder the go user with no 
>> problem so I know the connections works.
>> Error running pipeline :  *Cloning into '/go/pipelines/Common_Build'...*
>> *STDERR: fatal: could not read Username for 'https://github.com 
>> <https://github.com>': No such device or addressFailed to run git clone 
>> command*
>>
>> pipeline 2:
>> Materials is set to:
>> https://github.com/org/repo.git
>> branch master
>> Username and password are used and have full access to repo
>>
>> I can perform a git clone on the go-server uder the go user with no 
>> problem so I know the connections works.
>>
>> *Error running pipeline:*
>> *Cloning into '/go/pipelines/Common_Build'...STDERR: remote: Repository 
>> not found.STDERR: fatal: Authentication failed for 
>> 'https://github.com/org/repo.git/ <https://github.com/org/repo.git/>'Failed 
>> to run git clone command*
>>
>> Im really stuck no matter what I do.
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "go-cd" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/go-cd/195deac8-b98b-4005-b9fd-f0f5baf459a1n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/go-cd/195deac8-b98b-4005-b9fd-f0f5baf459a1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
>
> Ashwanth Kumar / ashwanthkumar.in
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/c7f26d2f-42d2-4117-8525-de3dc9fad7a8n%40googlegroups.com.

Reply via email to