hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed?

Jenkins JIRA | gerhard6 | 3 years ago
  1. 0

    We have a landscape, where only a subset of our windows jenkins slaves have cygwin installed. On the slaves without cygwin, the jenkins cygpath plugin gets an error. Note that also happens on steps, that are not related to cygwin, as can be seend in the error appended at the end - in that case invocation of a maven task. Suggestion is NOT to fail, and simply do nothing, passing the commands thru without any modifications. Will attach a patch that provides a solution. FATAL: command execution failed hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed? at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.getCygwinRoot(CygpathLauncherDecorator.java:138) at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.call(CygpathLauncherDecorator.java:142) at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.call(CygpathLauncherDecorator.java:112) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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 hudson.remoting.Engine$1$1.run(Engine.java:61) at java.lang.Thread.run(Unknown Source) Caused by: hudson.util.jna.JnaException: Win32 error: 2 - null at hudson.util.jna.RegistryKey.check(RegistryKey.java:124) at hudson.util.jna.RegistryKey.open(RegistryKey.java:223) at hudson.util.jna.RegistryKey.openReadonly(RegistryKey.java:218) at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.getCygwinRoot(CygpathLauncherDecorator.java:127) ... 11 more Build step 'Invoke top-level Maven targets' marked build as failure ... 11 more

    Jenkins JIRA | 3 years ago | gerhard6
    hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed?
  2. 0

    We have a landscape, where only a subset of our windows jenkins slaves have cygwin installed. On the slaves without cygwin, the jenkins cygpath plugin gets an error. Note that also happens on steps, that are not related to cygwin, as can be seend in the error appended at the end - in that case invocation of a maven task. Suggestion is NOT to fail, and simply do nothing, passing the commands thru without any modifications. Will attach a patch that provides a solution. FATAL: command execution failed hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed? at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.getCygwinRoot(CygpathLauncherDecorator.java:138) at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.call(CygpathLauncherDecorator.java:142) at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.call(CygpathLauncherDecorator.java:112) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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 hudson.remoting.Engine$1$1.run(Engine.java:61) at java.lang.Thread.run(Unknown Source) Caused by: hudson.util.jna.JnaException: Win32 error: 2 - null at hudson.util.jna.RegistryKey.check(RegistryKey.java:124) at hudson.util.jna.RegistryKey.open(RegistryKey.java:223) at hudson.util.jna.RegistryKey.openReadonly(RegistryKey.java:218) at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.getCygwinRoot(CygpathLauncherDecorator.java:127) ... 11 more Build step 'Invoke top-level Maven targets' marked build as failure ... 11 more

    Jenkins JIRA | 3 years ago | gerhard6
    hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed?
  3. 0

    cygwin and Jenkins/Hudson issue

    Google Groups | 4 years ago | mpc8250
    hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins failed to locate Cygwin

    Stack Overflow | 2 years ago | user3660293
    hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed?
  6. 0

    Jenkins failed to locate Cygwin

    Super User | 2 years ago | Richard
    hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed?

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.util.jna.JnaException

      Win32 error: 2 - null

      at hudson.util.jna.RegistryKey.check()
    2. hudson.util.jna
      RegistryKey.openReadonly
      1. hudson.util.jna.RegistryKey.check(RegistryKey.java:124)
      2. hudson.util.jna.RegistryKey.open(RegistryKey.java:223)
      3. hudson.util.jna.RegistryKey.openReadonly(RegistryKey.java:218)
      3 frames
    3. hudson.plugins.cygpath
      CygpathLauncherDecorator$GetCygpathTask.call
      1. hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.getCygwinRoot(CygpathLauncherDecorator.java:127)
      2. hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.call(CygpathLauncherDecorator.java:142)
      3. hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.call(CygpathLauncherDecorator.java:112)
      3 frames
    4. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    5. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.FutureTask.run(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3 frames
    6. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:61)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame