Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72667

"Text file busy" when using GIT_ASKPASS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-client-plugin
    • None
    • 4.7.0

      The git-client-plugin gives from time to time "Text file busy" error when executing a script on Linux for GIT_ASKPASS. All generated Unix shell script needs the fix given in JENKINS-48258.

       
      stderr: fatal: cannot exec '/var/jenkins_home/workspace/...@libs/8a16443b840b1304a0e1170d55a2d814840ba4a78b285b5c7c678cfec8987fe0@tmp/jenkins-gitclient-pass626380674852717679.sh': Text file busy
       

      See log:

       
      using GIT_ASKPASS to set credentials Username/Password credentials for ... (...)
      > git fetch --no-tags --force --progress --depth=1 – http://... refs/heads/master # timeout=10
      ERROR: Error fetching remote repo 'origin'
      hudson.plugins.git.GitException: Failed to fetch from http:/...
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1241)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1305)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
      at org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever.lambda$doRetrieve$4(SCMBasedRetriever.java:200)
      at org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever.retrySCMOperation(SCMBasedRetriever.java:222)
      at org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever.doRetrieve(SCMBasedRetriever.java:199)
      at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:79)
      at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:264)
      at org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:151)
      at org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
      at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087)
      at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
      at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
      at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
      at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
      at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
      at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
      at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
      at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
      at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:636)
      at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:582)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
      at hudson.model.ResourceController.execute(ResourceController.java:101)
      at hudson.model.Executor.run(Executor.java:442)
      Caused by: hudson.plugins.git.GitException: Command "git fetch --no-tags --force --progress --depth=1 – http://... refs/heads/master" returned status code 128:
      stdout:
      stderr: fatal: cannot exec '/var/jenkins_home/workspace/...@libs/8a16443b840b1304a0e1170d55a2d814840ba4a78b285b5c7c678cfec8987fe0@tmp/jenkins-gitclient-pass626380674852717679.sh': Text file busy
      fatal: could not read Username for 'http://...': terminal prompts disabled
       
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2842)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2185)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:635)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:997)
      ... 24 more
      ERROR: Error fetching remote repo 'origin'
      ERROR: Maximum checkout retry attempts reached, aborting

            ckullabosch Christoph Kulla
            ckullabosch Christoph Kulla
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: