Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-16836

Can't build on Windows Node 2016-1 -- Permission denied while git clone from gitbox.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Fix Version/s: None
    • Component/s: Jenkins
    • Labels:
      None
    • Environment:
      Windows 2016-1
    • Project:
      Maven

      Description

      Currently our Maven build fails constantly while trying to git clone on a windows node(https://builds.apache.org/computer/windows-2016-1/)

      https://builds.apache.org/view/M-R/view/Maven/job/maven-box/job/maven/job/master/46/consoleFull
      The following message:

      [windows-jdk7] Caused by: hudson.plugins.git.GitException: Command "git config remote.origin.url https://gitbox.apache.org/repos/asf/maven-integration-testing.git" returned status code 4:
      [windows-jdk7] stdout:
      [windows-jdk7] stderr: error: could not write config file .git/config: Permission denied
      [windows-jdk7]
      [windows-jdk7] at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAP


      An older build failed with the following (same permission failure):

      [windows-jdk7] Caused by: hudson.plugins.git.GitException: Command "git config remote.origin.url https://gitbox.apache.org/repos/asf/maven-integration-testing.git" returned status code 4:
      [windows-jdk7] stdout:
      [windows-jdk7] stderr: error: could not write config file .git/config: Permission denied
      [windows-jdk7]
      [windows-jdk7] at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002)
      [windows-jdk7] at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1970)
      [windows-jdk7] at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1966)
      [windows-jdk7] at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1597)
      [windows-jdk7] at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1609)
      [windows-jdk7] at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.setRemoteUrl(CliGitAPIImpl.java:1243)
      [windows-jdk7] at hudson.plugins.git.GitAPI.setRemoteUrl(GitAPI.java:160)
      [windows-jdk7] at sun.reflect.GeneratedMethodAccessor406.invoke(Unknown Source)
      [windows-jdk7] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [windows-jdk7] at java.lang.reflect.Method.invoke(Unknown Source)
      [windows-jdk7] at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:896)
      [windows-jdk7] at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:870)
      [windows-jdk7] at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:829)
      [windows-jdk7] at hudson.remoting.UserRequest.perform(UserRequest.java:181)
      [windows-jdk7] at hudson.remoting.UserRequest.perform(UserRequest.java:52)
      [windows-jdk7] at hudson.remoting.Request$2.run(Request.java:336)
      [windows-jdk7] at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      [windows-jdk7] at java.util.concurrent.FutureTask.run(Unknown Source)
      [windows-jdk7] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      [windows-jdk7] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      [windows-jdk7] at hudson.remoting.Engine$1$1.run(Engine.java:98)
      [windows-jdk7] at java.lang.Thread.run(Unknown Source)
      [windows-jdk7] Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from ec2-34-228-168-168.compute-1.amazonaws.com/34.228.168.168:57510
      [windows-jdk7] at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
      [windows-jdk7] at hudson.remoting.UserResponse.retrieve(UserRequest.java:389)
      [windows-jdk7] at hudson.remoting.Channel.call(Channel.java:955)
      [windows-jdk7] at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:283)
      [windows-jdk7] at com.sun.proxy.$Proxy117.setRemoteUrl(Unknown Source)
      [windows-jdk7] at org.jenkinsci.plugins.gitclient.RemoteGitImpl.setRemoteUrl(RemoteGitImpl.java:295)
      [windows-jdk7] at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:876)
      [windows-jdk7] at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1155)
      [windows-jdk7] at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)
      [windows-jdk7] at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
      [windows-jdk7] at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:85)


      The following builds as reference:
      https://builds.apache.org/view/M-R/view/Maven/job/maven-box/job/maven/job/master/43/
      https://builds.apache.org/view/M-R/view/Maven/job/maven-box/job/maven/job/master/44/
      https://builds.apache.org/view/M-R/view/Maven/job/maven-box/job/maven/job/master/45/

        Attachments

          Activity

            People

            • Assignee:
              cthistle Chris Thistlethwaite
              Reporter:
              khmarbaise Karl Heinz Marbaise
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: