[JIRA] (JENKINS-59250) fatal: Authentication failed for jenkins

11 views
Skip to first unread message

victorsilva07101996@gmail.com (JIRA)

unread,
Sep 5, 2019, 11:12:02 AM9/5/19
to jenkinsc...@googlegroups.com
Victor Silva created an issue
 
Jenkins / Bug JENKINS-59250
fatal: Authentication failed for jenkins
Issue Type: Bug Bug
Assignee: Mark Waite
Components: credentials-plugin, git-client-plugin, git-plugin
Created: 2019-09-05 15:11
Environment: this is Jenkins version 2.164.2, git plugin version 3.11 and git client plugin is 2.8.0
Labels: jenkins plugin pipeline
Priority: Critical Critical
Reporter: Victor Silva

Started by upstream project "PIPELINE_OI" build number 35 originally caused by:
 
{{Started by user Administrador Jenkins OI[EnvInject] - Loading node environment variables.Building in workspace /var/lib/jenkins/workspace/TRUNK/AUDITORIA J14/poi-auditoria-commons-j14
using credential dbebfd81-9cc5-4693-ad12-5b7f0e7dc845Cloning the remote Git repositoryCloning repository https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git> git init /var/lib/jenkins/workspace/TRUNK/AUDITORIA J14/poi-auditoria-commons-j14 # timeout=10Fetching upstream changes from https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git> git --version # timeout=10using GIT_ASKPASS to set credentials > git fetch --tags --progress https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git +refs/heads/:refs/remotes/origin/*ERROR: Error cloning remote repo 'origin'hudson.plugins.git.GitException: Command "git fetch --tags --progress https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git +refs/heads/:refs/remotes/origin/*" returned status code 128:

stdout:
stderr: fatal: Authentication failed for 'https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git/'

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1761)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$400(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:442)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:655)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192)
at hudson.scm.SCM.checkout(SCM.java:504)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1816)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
ERROR: Error cloning remote repo 'origin'
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
Finished: FAILURE}}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

victorsilva07101996@gmail.com (JIRA)

unread,
Sep 5, 2019, 11:13:02 AM9/5/19
to jenkinsc...@googlegroups.com
Victor Silva updated an issue
Change By: Victor Silva
 
 Good morning guys, I have a problem building my pipeline in jenkins, sometimes some jobs returning authentication error and sometimes they are working.
 

 

Started by upstream project "PIPELINE_OI" build number 35 originally caused by:
 
{{Started by user Administrador Jenkins OI[EnvInject] - Loading node environment variables.Building in workspace /var/lib/jenkins/workspace/TRUNK/AUDITORIA J14/poi-auditoria-commons-j14
using credential dbebfd81-9cc5-4693-ad12-5b7f0e7dc845Cloning the remote Git repositoryCloning repository [ https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git ] > git init /var/lib/jenkins/workspace/TRUNK/AUDITORIA J14/poi-auditoria-commons-j14 # timeout=10Fetching upstream changes from [ https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git ] > git --version # timeout=10using GIT_ASKPASS to set credentials > git fetch --tags --progress [ https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git ] +refs/heads/*:refs/remotes/origin/*ERROR: Error cloning remote repo 'origin'hudson.plugins.git.GitException: Command "git fetch --tags --progress [ https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git ] +refs/heads/*:refs/remotes/origin/*" returned status code 128:


stdout:
stderr: fatal: Authentication failed for 'https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git/'

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1761)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$400(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:442)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:655)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192)
at hudson.scm.SCM.checkout(SCM.java:504)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1816)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
ERROR: Error cloning remote repo 'origin'
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
Finished: FAILURE}}


 

sometimes passed, and sometimes returning this authentication error.

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 5, 2019, 11:32:03 AM9/5/19
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-59250
 
Re: fatal: Authentication failed for jenkins

This is probably best answered through the Jenkins user mailing list or the Jenkins chat channels. Alternately, if you're running a CloudBees product, you could open a CloudBees support ticket.

Intermittent failures typically involve investigations of several possible causes, looking for hints in log files and elsewhere which will explain the intermittent failure:

  • Are there log entries on the git server at about the same time which hint at an overload condition?
  • Are there authentication log entries on an LDAP or active directory or other server which might get more details on why the credentials were rejected?
  • Are there more details logs on the Jenkins server which might hint at global issues (low memory, etc.) which might cause the problem?
  • Are the authentication failures specific to a single agent or a subset of agents?

All those topics are best addressed in the mailing list or the chat channels.

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 5, 2019, 11:32:04 AM9/5/19
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Status: Open Fixed but Unreleased
Resolution: Not A Defect

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 5, 2019, 11:32:04 AM9/5/19
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Status: Fixed but Unreleased Closed
Reply all
Reply to author
Forward
0 new messages