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

org.jvnet.winp.WinpException: Failed to read RT_USER_PROCESS_PARAMETERS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • Windows Server 2008R2
      Jenkins 2.7.4
      git-plugin 3.0.0

      java version "1.8.0_31"
      Java(TM) SE Runtime Environment (build 1.8.0_31-b13)

      A project simply configured to retrieve from Git and build using MSBuild. The job is not able to successfully retrieve the code from Git, giving the error shown below.

      If I open a command line, CD to the workspace path, and run exactly the same command "git.exe fetch --tags --progress https://path.to.repo/gitfile.git +refs/heads/:refs/remotes/origin/" there is absolutely no problem and the command executes successfully.

      I have tried running the Jenkins service as both "Local System Account", and as the Administrator user on the machine - restarting the service when changing the user. Both cases give the same error.

      Started by user Admin
      Building in workspace C:\Program Files (x86)\Jenkins\workspace\Build and Deploy Plugins - Dev
      > git.exe rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git.exe config remote.origin.url https://path.to.repo/gitfile.git # timeout=10
      Fetching upstream changes from https://path.to.repo/gitfile.git
      > git.exe --version # timeout=10
      using GIT_ASKPASS to set credentials ***
      > git.exe fetch --tags --progress https://path.to.repo/gitfile.git +refs/heads/:refs/remotes/origin/
      ERROR: Timeout after 10 minutes
      ERROR: Failed to join a process
      org.jvnet.winp.WinpException: Failed to read RT_USER_PROCESS_PARAMETERS error=299 at .\envvar-cmdline.cpp:151
      at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
      at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126)
      at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102)
      at hudson.util.ProcessTree$Windows$1.getArguments(ProcessTree.java:441)
      at hudson.plugins.msbuild.MsBuildKillingVeto.vetoProcessKilling(MsBuildKillingVeto.java:55)
      at hudson.util.ProcessTree$OSProcess.getVeto(ProcessTree.java:239)
      at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:422)
      at hudson.util.ProcessTree.killAll(ProcessTree.java:142)
      at hudson.Proc$LocalProc.destroy(Proc.java:375)
      at hudson.Proc$LocalProc.kill(Proc.java:367)
      at hudson.Proc$1.run(Proc.java:157)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      ERROR: Error fetching remote repo 'origin'
      hudson.plugins.git.GitException: Failed to fetch from https://path.to.repo/gitfile.git
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
      at hudson.scm.SCM.checkout(SCM.java:495)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      at hudson.model.Run.execute(Run.java:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: hudson.plugins.git.GitException: Command "git.exe fetch --tags --progress https://path.to.repo/gitfile.git +refs/heads/:refs/remotes/origin/" returned status code -1073741510:
      stdout:
      stderr:
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
      ... 11 more
      ERROR: null
      Finished: FAILURE

            Unassigned Unassigned
            benpwp Ben Empson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: