• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • jenkins 2.190.3
      gerrit code review plugin 0.3.7
    • 0.4.1

      Moving to 0.3.7 has broken checkout on remote nodes. They fail reporting unable to checkout the code after a 10 minute timeout.

      In the log on the gerrit server are hundreds of lines saying:

      WARN com.google.gerrit.httpd.ProjectBasicAuthFilter : Authentication failed for Username for 'https: account inactive or not provisioned in Gerrit

      So it appears that the remote node is using the wrong credentials to try to do the checkout.

       

      Reverting to .03.5 and everything works fine

          [JENKINS-60383] Remote nodes unable to checkout code

          Will Wagner created issue -

          Will Wagner added a comment -

          The output from the pipeline job that fails on a node is:

          using credential 6e96f729-8440-40bf-8710-88689c791d3b
          Cloning the remote Git repository
          Cloning repository https://code.office.carallon.com/pharos/magpie
          > C:\Program Files\Git\bin\git.exe init c:\jenkins\workspace\magpie-verify_01_8301_2 # timeout=10
          Fetching upstream changes from https://code.office.carallon.com/pharos/magpie
          > C:\Program Files\Git\bin\git.exe --version # timeout=10
          using GIT_ASKPASS to set credentials
          > C:\Program Files\Git\bin\git.exe fetch --tags --force --progress – https://code.office.carallon.com/pharos/magpie +refs/heads/:refs/remotes/origin/ # timeout=10
          > C:\Program Files\Git\bin\git.exe config remote.origin.url https://code.office.carallon.com/pharos/magpie # timeout=10
          > C:\Program Files\Git\bin\git.exe config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
          > C:\Program Files\Git\bin\git.exe config remote.origin.url https://code.office.carallon.com/pharos/magpie # timeout=10
          Fetching upstream changes from https://code.office.carallon.com/pharos/magpie
          using GIT_ASKPASS to set credentials
          > C:\Program Files\Git\bin\git.exe fetch --tags --force --progress – https://code.office.carallon.com/pharos/magpie refs/changes/01/8301/2:refs/remotes/origin/01/8301/2 # timeout=10
          Checking out Revision 787879583e36f6e3afc5b60d35d15409d2c6a11a (refs/remotes/origin/01/8301/2)
          > C:\Program Files\Git\bin\git.exe rev-parse "01/8301/2^

          {commit}" # timeout=10
          > C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/01/8301/2^{commit}

          " # timeout=10
          > C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
          > C:\Program Files\Git\bin\git.exe checkout -f 787879583e36f6e3afc5b60d35d15409d2c6a11a # timeout=10
          ERROR: Timeout after 10 minutes
           

          Will Wagner added a comment - The output from the pipeline job that fails on a node is: using credential 6e96f729-8440-40bf-8710-88689c791d3b Cloning the remote Git repository Cloning repository https://code.office.carallon.com/pharos/magpie > C:\Program Files\Git\bin\git.exe init c:\jenkins\workspace\magpie-verify_01_8301_2 # timeout=10 Fetching upstream changes from https://code.office.carallon.com/pharos/magpie > C:\Program Files\Git\bin\git.exe --version # timeout=10 using GIT_ASKPASS to set credentials > C:\Program Files\Git\bin\git.exe fetch --tags --force --progress – https://code.office.carallon.com/pharos/magpie +refs/heads/ :refs/remotes/origin/ # timeout=10 > C:\Program Files\Git\bin\git.exe config remote.origin.url https://code.office.carallon.com/pharos/magpie # timeout=10 > C:\Program Files\Git\bin\git.exe config --add remote.origin.fetch +refs/heads/ :refs/remotes/origin/ # timeout=10 > C:\Program Files\Git\bin\git.exe config remote.origin.url https://code.office.carallon.com/pharos/magpie # timeout=10 Fetching upstream changes from https://code.office.carallon.com/pharos/magpie using GIT_ASKPASS to set credentials > C:\Program Files\Git\bin\git.exe fetch --tags --force --progress – https://code.office.carallon.com/pharos/magpie refs/changes/01/8301/2:refs/remotes/origin/01/8301/2 # timeout=10 Checking out Revision 787879583e36f6e3afc5b60d35d15409d2c6a11a (refs/remotes/origin/01/8301/2) > C:\Program Files\Git\bin\git.exe rev-parse "01/8301/2^ {commit}" # timeout=10 > C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/01/8301/2^{commit} " # timeout=10 > C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10 > C:\Program Files\Git\bin\git.exe checkout -f 787879583e36f6e3afc5b60d35d15409d2c6a11a # timeout=10 ERROR: Timeout after 10 minutes  

          Have you checked which credentials are used and what are the ones you were expecting to use?

          Luca Domenico Milanesio added a comment - Have you checked which credentials are used and what are the ones you were expecting to use?

          Will Wagner added a comment -

          I believe I am using the correct stored credentials, they work fine if I downgrade the module to 0.3.5.

          They are https username and password that work everywhere else. Do they need to be something special?

          Will Wagner added a comment - I believe I am using the correct stored credentials, they work fine if I downgrade the module to 0.3.5. They are https username and password that work everywhere else. Do they need to be something special?

          Will Wagner added a comment -

          So looking at this some more, I believe it is the LFS Pull step that is using the wrong credentials. For some reason it previously used to say 'Enabling Git LFS pull' before it started this and did the config core.sparsecheckout.

          Will Wagner added a comment - So looking at this some more, I believe it is the LFS Pull step that is using the wrong credentials. For some reason it previously used to say 'Enabling Git LFS pull' before it started this and did the config core.sparsecheckout.

          Nick Bulleid added a comment -

          I've uploaded a fix for this issue to GerritHub.

          https://review.gerrithub.io/c/jenkinsci/gerrit-code-review-plugin/+/477949

          Nick Bulleid added a comment - I've uploaded a fix for this issue to GerritHub. https://review.gerrithub.io/c/jenkinsci/gerrit-code-review-plugin/+/477949

          Thanks nickb_carallon looking at your fix right now.

          Luca Domenico Milanesio added a comment - Thanks nickb_carallon looking at your fix right now.

          Unfortunately, your fix is breaking existing functionality.

          Let me reproduce the problem and see if there is another way to achieve the same result.

          Luca Domenico Milanesio added a comment - Unfortunately, your fix is breaking existing functionality. Let me reproduce the problem and see if there is another way to achieve the same result.

          I just tried and it works for me. When the build is triggered on a remote host, I see:

          using GIT_ASKPASS to set credentials jenkins-at-gerritci

          In your case I see from your logs:

          using GIT_ASKPASS to set credentials

          Luca Domenico Milanesio added a comment - I just tried and it works for me. When the build is triggered on a remote host, I see: using GIT_ASKPASS to set credentials jenkins-at-gerritci In your case I see from your logs: using GIT_ASKPASS to set credentials

          Did you set the credentials id on the multi-branch pipeline job?

          Luca Domenico Milanesio added a comment - Did you set the credentials id on the multi-branch pipeline job?

            lucamilanesio Luca Domenico Milanesio
            willwagner Will Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: