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

Repeating error while connecting to slave machine

      Repeating the below error, have to kill the all Jenkins process to reconnect it again.
      Could you please help to validate it and resolve.

      Checking if Java exists
      java -version returned 1.7.0.
      Copying jenkins-slave.xml
      Copying slave.jar
      Starting the service
      ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
      java.lang.reflect.UndeclaredThrowableException
      	at com.sun.proxy.$Proxy42.start(Unknown Source)
      	at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:334)
      	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:261)
      	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      	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)
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.kohsuke.jinterop.JInteropInvocationHandler.invoke(JInteropInvocationHandler.java:140)
      	... 8 more
      Caused by: org.jinterop.dcom.common.JIException: Service Already Running
      	at org.jvnet.hudson.wmi.Win32Service$Implementation.start(Win32Service.java:149)
      	... 13 more
      

          [JENKINS-36840] Repeating error while connecting to slave machine

          Prathap Puppala created issue -

          Hi Prathap,

          as far as I know, the Windows agent that is failing to launch here is part of the "core" component.

          Please let me know if you really meant submitting the bug on the slave setup plugin: if not so, I will route to "core" which seems to me a more appropriate place.

          Thanks

          Giuseppe Landolfi added a comment - Hi Prathap, as far as I know, the Windows agent that is failing to launch here is part of the "core" component. Please let me know if you really meant submitting the bug on the slave setup plugin : if not so, I will route to "core" which seems to me a more appropriate place. Thanks
          Prathap Puppala made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: slave-setup-plugin [ 15929 ]

          giuseppe_landolfi Changed component to "core"

          Thanks,

          Prathap Puppala added a comment - giuseppe_landolfi Changed component to "core" Thanks,
          Giuseppe Landolfi made changes -
          Assignee Original: Giuseppe Landolfi [ peppe ]
          Prathap Puppala made changes -
          Summary Original: Repeasting error while connecting slave machine New: Repeating error while connecting slave machine
          Prathap Puppala made changes -
          Summary Original: Repeating error while connecting slave machine New: Repeating error while connecting to slave machine
          Prathap Puppala made changes -
          Description Original: Reaping the below error, have to kill the all Jenkins process to reconnect it again.
          Could you please help to validate it and resolve.

          {code}
          Checking if Java exists
          java -version returned 1.7.0.
          Copying jenkins-slave.xml
          Copying slave.jar
          Starting the service
          ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
          java.lang.reflect.UndeclaredThrowableException
          at com.sun.proxy.$Proxy42.start(Unknown Source)
          at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:334)
          at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:261)
          at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
          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)
          Caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.kohsuke.jinterop.JInteropInvocationHandler.invoke(JInteropInvocationHandler.java:140)
          ... 8 more
          Caused by: org.jinterop.dcom.common.JIException: Service Already Running
          at org.jvnet.hudson.wmi.Win32Service$Implementation.start(Win32Service.java:149)
          ... 13 more
          {code}
          New: Repeating the below error, have to kill the all Jenkins process to reconnect it again.
          Could you please help to validate it and resolve.

          {code}
          Checking if Java exists
          java -version returned 1.7.0.
          Copying jenkins-slave.xml
          Copying slave.jar
          Starting the service
          ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
          java.lang.reflect.UndeclaredThrowableException
          at com.sun.proxy.$Proxy42.start(Unknown Source)
          at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:334)
          at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:261)
          at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
          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)
          Caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.kohsuke.jinterop.JInteropInvocationHandler.invoke(JInteropInvocationHandler.java:140)
          ... 8 more
          Caused by: org.jinterop.dcom.common.JIException: Service Already Running
          at org.jvnet.hudson.wmi.Win32Service$Implementation.start(Win32Service.java:149)
          ... 13 more
          {code}
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173584 ] New: JNJira + In-Review [ 185212 ]

          Hello, I just had the same problem with Jenkins ver. 1.651.1 after upgrading windows slave to Java JDK 1.8.1.101,
          I got exactly the same error, then I unstalled and went back to the JDK 1.7.0.76 and jenkis slave startup went back to normal. So why don`t you try installing Java JDK 1.8 at the windows slave, to see if it works.

          Carlos Cabezali added a comment - Hello, I just had the same problem with Jenkins ver. 1.651.1 after upgrading windows slave to Java JDK 1.8.1.101, I got exactly the same error, then I unstalled and went back to the JDK 1.7.0.76 and jenkis slave startup went back to normal. So why don`t you try installing Java JDK 1.8 at the windows slave, to see if it works.

            kohsuke Kohsuke Kawaguchi
            pkpuppala Prathap Puppala
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: