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

Restart fails on Windows master with slaves connected. "SEVERE: Restarting VM as requested by username" (Windows service not running as local system account)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      I see this issue at every single restart, safeRestart or not. It seems to be related to the connected slaves:

      aug. 10, 2017 1:00:08 PM jenkins.model.Jenkins$26 run
      INFO: Restart in 10 seconds
      aug. 10, 2017 1:00:18 PM jenkins.model.Jenkins$26 run
      SEVERE: Restarting VM as requested by nkj
      aug. 10, 2017 1:00:18 PM jenkins.model.Jenkins cleanUp
      INFO: Stopping Jenkins
      aug. 10, 2017 1:00:18 PM jenkins.model.Jenkins$21 onAttained
      INFO: Started termination
      aug. 10, 2017 1:00:18 PM jenkins.model.Jenkins$21 onAttained
      INFO: Completed termination
      aug. 10, 2017 1:00:18 PM jenkins.model.Jenkins _cleanUpDisconnectComputers
      INFO: Starting node disconnection
      aug. 10, 2017 1:00:18 PM jenkins.slaves.DefaultJnlpSlaveReceiver channelClosed
      WARNING: safe-restart thread for EAC3 Win10 (dtdkcphpw200044) terminated
      java.nio.channels.ClosedChannelException

      Please NOTE: The Jenkins service runs as an Active Directory user, not a local system account (using "Log on as").

      The result is that Jenkins stops, but never restarts:

      INFO: Waiting for node disconnection completion
      aug. 10, 2017 1:00:20 PM jenkins.model.Jenkins cleanUp
      INFO: Jenkins stopped

      If I look at the service state at this point (after INFO: Jenkins stopped) using "Services", Jenkins appear to be running. A "Restart the service" brings it back up without giving any passwords (password for the user is stored).

        Attachments

          Activity

          nkjensen Niels Kristian Jensen created issue -
          nkjensen Niels Kristian Jensen made changes -
          Field Original Value New Value
          Attachment bug.txt [ 39238 ]
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Is it a service restart or a system restart? in the latter case I would suggest to enable the delayed start mode or to configure dependencies on the remote auth services. See the documentation here: https://github.com/kohsuke/winsw

          Show
          oleg_nenashev Oleg Nenashev added a comment - Is it a service restart or a system restart? in the latter case I would suggest to enable the delayed start mode or to configure dependencies on the remote auth services. See the documentation here: https://github.com/kohsuke/winsw
          Hide
          nkjensen Niels Kristian Jensen added a comment - - edited

          It is a Jenkins restart (e.g. /saferestart ) or the automatic restart after upgrading plugins or Jenkins version. I face no issues, if I restart the service or reboot the computer.

          Show
          nkjensen Niels Kristian Jensen added a comment - - edited It is a Jenkins restart (e.g. /saferestart ) or the automatic restart after upgrading plugins or Jenkins version. I face no issues, if I restart the service or reboot the computer.
          Hide
          nkjensen Niels Kristian Jensen added a comment -

          Please let me know if I can provide any more info for this issue?

          Show
          nkjensen Niels Kristian Jensen added a comment - Please let me know if I can provide any more info for this issue?
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Which version of WinSW do you use on the master just in case?

          Show
          oleg_nenashev Oleg Nenashev added a comment - Which version of WinSW do you use on the master just in case?
          Hide
          nkjensen Niels Kristian Jensen added a comment -

          Please forgive me because I do not understand the question. This is my best shot: The server OS is given in the "Environment" section, if I look for "winsw" in the /systemInfo the only match is WINSW_EXECUTABLE D:\Jenkins\jenkins.exe - which is also given in the "Environment" section. I used the "winsw" label, because at first I attached this issue to the comments on another issue and was asked to create a new issue instead - I do not know what "winsw" means. I've searched for "winsw*.*" on the master in the Jenkins directory and the user running the service - but found nothing

          Show
          nkjensen Niels Kristian Jensen added a comment - Please forgive me because I do not understand the question. This is my best shot: The server OS is given in the "Environment" section, if I look for "winsw" in the /systemInfo the only match is WINSW_EXECUTABLE D:\Jenkins\jenkins.exe - which is also given in the "Environment" section. I used the "winsw" label, because at first I attached this issue to the comments on another issue and was asked to create a new issue instead - I do not know what "winsw" means. I've searched for "winsw*.*" on the master in the Jenkins directory and the user running the service - but found nothing
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          jenkins.exe is a renamed WinSW executable. Just send me it's version (it is available in assembly info for the Exe file)

          Show
          oleg_nenashev Oleg Nenashev added a comment - jenkins.exe is a renamed WinSW executable. Just send me it's version (it is available in assembly info for the Exe file)
          Hide
          nkjensen Niels Kristian Jensen added a comment -

          Details for jenkins.exe are: File version = Product version = 1.1.0.0 Date modified = 10-05-2015 17:43

          Show
          nkjensen Niels Kristian Jensen added a comment - Details for jenkins.exe are: File version = Product version = 1.1.0.0 Date modified = 10-05-2015 17:43
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          This is the old version.

          Please download new executable from https://github.com/kohsuke/winsw#download , replace jenkins.exe, and then trye again.

          Show
          oleg_nenashev Oleg Nenashev added a comment - This is the old version. Please download new executable from https://github.com/kohsuke/winsw#download , replace jenkins.exe, and then trye again.
          Hide
          nkjensen Niels Kristian Jensen added a comment - - edited

          Details for jenkins.exe now are:
          File version = 2.1.2.0
          Product version = 2.1.2
          Date modified = 16-08-2017 17:02
          Original filename WindowsService.exe

          (I stopped the Jenkins service, renamed .exe files, restarted Jenkins, used the "Update automatic" to 2.74, restart when no jobs... Jenkins stopped allright, but did not restart. From the "jenkins.wrapper.log":

          2017-08-16 17:06:25 - Stopping jenkins
          2017-08-16 17:06:25 - ProcessKill 5108
          2017-08-16 17:06:26 - Send SIGINT 5108
          2017-08-16 17:06:26 - SIGINT to5108 successful
          2017-08-16 17:06:26 - Finished jenkins
          2017-08-16 17:07:16,881 INFO - Starting ServiceWrapper in the service mode
          2017-08-16 17:07:17,084 INFO - Starting D:\Jenkins\jre\bin\java -Xrs -Xmx1024m -Dhudson.model.DirectoryBrowserSupport.CSP -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "D:\Jenkins\jenkins.war" --httpPort=8080
          2017-08-16 17:07:17,084 INFO - Starting D:\Jenkins\jre\bin\java -Xrs -Xmx1024m -Dhudson.model.DirectoryBrowserSupport.CSP -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "D:\Jenkins\jenkins.war" --httpPort=8080
          2017-08-16 17:07:17,193 INFO - Started process 1804
          2017-08-16 17:07:17,209 DEBUG - Forwarding logs of the process System.Diagnostics.Process (java) to winsw.SizeBasedRollingLogAppender
          2017-08-16 17:09:37,108 DEBUG - Starting ServiceWrapper in the CLI mode
          2017-08-16 17:09:37,578 INFO - Restarting the service with id 'jenkins'
          2017-08-16 17:09:37,613 DEBUG - Completed. Exit code is 0
          2017-08-16 17:09:38,085 DEBUG - Starting ServiceWrapper in the CLI mode
          2017-08-16 17:09:38,569 INFO - Restarting the service with id 'jenkins'
          2017-08-16 17:09:38,619 FATAL - WMI Operation failure: AccessDenied
          WMI.WmiException: AccessDenied
          at WMI.WmiRoot.InstanceHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
          at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
          at winsw.WrapperService.Main(String[] args)

          From the jenkins.err.log:

          INFO: Restart in 10 seconds
          aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins$26 run
          SEVERE: Restarting VM as requested by nkj
          aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins cleanUp
          INFO: Stopping Jenkins
          aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins$21 onAttained
          INFO: Started termination
          aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins$21 onAttained
          INFO: Completed termination
          aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins _cleanUpDisconnectComputers
          INFO: Starting node disconnection
          aug. 16, 2017 5:09:34 PM jenkins.slaves.DefaultJnlpSlaveReceiver channelClosed
          WARNING: safe-restart thread for EAC3 Win10 (dtdkcphpw200044) terminated
          java.nio.channels.ClosedChannelException
          at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:208)
          at org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:222)
          at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:832)
          at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:181)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.switchToNoSecure(SSLEngineFilterLayer.java:283)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processWrite(SSLEngineFilterLayer.java:503)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processQueuedWrites(SSLEngineFilterLayer.java:248)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doSend(SSLEngineFilterLayer.java:200)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doCloseSend(SSLEngineFilterLayer.java:213)
          at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.doCloseSend(ProtocolStack.java:800)
          at org.jenkinsci.remoting.protocol.ApplicationLayer.doCloseWrite(ApplicationLayer.java:173)
          at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer$ByteBufferCommandTransport.closeWrite(ChannelApplicationLayer.java:311)
          at hudson.remoting.Channel.close(Channel.java:1304)
          at hudson.remoting.Channel.close(Channel.java:1272)
          at hudson.slaves.SlaveComputer.closeChannel(SlaveComputer.java:708)
          at hudson.slaves.SlaveComputer.kill(SlaveComputer.java:675)
          at hudson.model.AbstractCIBase.killComputer(AbstractCIBase.java:88)
          at jenkins.model.Jenkins.access$2000(Jenkins.java:307)
          at jenkins.model.Jenkins$22.run(Jenkins.java:3370)
          at hudson.model.Queue._withLock(Queue.java:1338)
          at hudson.model.Queue.withLock(Queue.java:1215)
          at jenkins.model.Jenkins._cleanUpDisconnectComputers(Jenkins.java:3364)
          at jenkins.model.Jenkins.cleanUp(Jenkins.java:3240)
          at hudson.lifecycle.WindowsServiceLifecycle.restart(WindowsServiceLifecycle.java:123)
          at jenkins.model.Jenkins$26.run(Jenkins.java:4225)

          aug. 16, 2017 5:09:34 PM jenkins.slaves.DefaultJnlpSlaveReceiver channelClosed
          WARNING: safe-restart thread for LDC Win10 on own VM (dtdkcphvm200040) terminated
          java.nio.channels.ClosedChannelException
          at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:208)
          at org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:222)
          at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:832)
          at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:181)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.switchToNoSecure(SSLEngineFilterLayer.java:283)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processWrite(SSLEngineFilterLayer.java:503)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processQueuedWrites(SSLEngineFilterLayer.java:248)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doSend(SSLEngineFilterLayer.java:200)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doCloseSend(SSLEngineFilterLayer.java:213)
          at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.doCloseSend(ProtocolStack.java:800)
          at org.jenkinsci.remoting.protocol.ApplicationLayer.doCloseWrite(ApplicationLayer.java:173)
          at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer$ByteBufferCommandTransport.closeWrite(ChannelApplicationLayer.java:311)
          at hudson.remoting.Channel.close(Channel.java:1304)
          at hudson.remoting.Channel.close(Channel.java:1272)
          at hudson.slaves.SlaveComputer.closeChannel(SlaveComputer.java:708)
          at hudson.slaves.SlaveComputer.kill(SlaveComputer.java:675)
          at hudson.model.AbstractCIBase.killComputer(AbstractCIBase.java:88)
          at jenkins.model.Jenkins.access$2000(Jenkins.java:307)
          at jenkins.model.Jenkins$22.run(Jenkins.java:3370)
          at hudson.model.Queue._withLock(Queue.java:1338)
          at hudson.model.Queue.withLock(Queue.java:1215)
          at jenkins.model.Jenkins._cleanUpDisconnectComputers(Jenkins.java:3364)
          at jenkins.model.Jenkins.cleanUp(Jenkins.java:3240)
          at hudson.lifecycle.WindowsServiceLifecycle.restart(WindowsServiceLifecycle.java:123)
          at jenkins.model.Jenkins$26.run(Jenkins.java:4225)

          aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins _cleanUpShutdownPluginManager
          INFO: Stopping plugin manager
          aug. 16, 2017 5:09:34 PM hudson.plugins.sshslaves.PluginImpl closeRegisteredConnections
          INFO: Forcing connection to dtdkcphpw200040:22 closed.
          aug. 16, 2017 5:09:34 PM hudson.plugins.sshslaves.PluginImpl closeRegisteredConnections
          INFO: Forcing connection to DTDKCPHAS1060:22 closed.
          aug. 16, 2017 5:09:34 PM hudson.plugins.sshslaves.PluginImpl closeRegisteredConnections
          INFO: Forcing connection to mddkcphpw106024:22 closed.
          aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins _cleanUpPersistQueue
          INFO: Persisting build queue
          aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins _cleanUpAwaitDisconnects
          INFO: Waiting for node disconnection completion
          aug. 16, 2017 5:09:36 PM jenkins.model.Jenkins cleanUp
          INFO: Jenkins stopped
          aug. 16, 2017 5:10:33 PM net.bull.javamelody.internal.common.JavaLogger warn
          WARNING: exception while collecting data
          java.util.concurrent.ExecutionException: java.io.IOException: Cannot locate RemoteClassLoader.ClassLoaderProxy(7) in the channel exported table
          at hudson.remoting.Channel$2.adapt(Channel.java:871)
          at hudson.remoting.Channel$2.adapt(Channel.java:866)
          at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
          at net.bull.javamelody.RemoteCallHelper.collectDataByNodeName(RemoteCallHelper.java:178)
          at net.bull.javamelody.RemoteCallHelper.collectJavaInformationsListByName(RemoteCallHelper.java:188)
          at net.bull.javamelody.NodesCollector.collectWithoutErrorsNow(NodesCollector.java:159)
          at net.bull.javamelody.NodesCollector.collectWithoutErrors(NodesCollector.java:147)
          at net.bull.javamelody.NodesCollector$2.run(NodesCollector.java:115)
          at java.util.TimerThread.mainLoop(Unknown Source)
          at java.util.TimerThread.run(Unknown Source)
          Caused by: java.io.IOException: Cannot locate RemoteClassLoader.ClassLoaderProxy(7) in the channel exported table
          at hudson.remoting.MultiClassLoaderSerializer$Input.readClassLoader(MultiClassLoaderSerializer.java:103)
          at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:124)
          at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
          at java.io.ObjectInputStream.readClassDesc(Unknown Source)
          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
          at java.io.ObjectInputStream.readObject0(Unknown Source)
          at java.io.ObjectInputStream.readObject(Unknown Source)
          at hudson.remoting.UserRequest.deserialize(UserRequest.java:245)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:278)
          at hudson.remoting.Channel$2.adapt(Channel.java:869)
          ... 9 more
          Caused by: java.util.concurrent.ExecutionException: Invalid object ID 7 iota=8
          at hudson.remoting.ExportTable.diagnoseInvalidObjectId(ExportTable.java:473)
          at hudson.remoting.ExportTable.get(ExportTable.java:394)
          at hudson.remoting.Channel.getExportedObject(Channel.java:675)
          at hudson.remoting.MultiClassLoaderSerializer$Input.readClassLoader(MultiClassLoaderSerializer.java:101)
          ... 18 more

          I then restarted the service using the "Services" dialog and Jenkins 2.74 woke up just fine.

          Show
          nkjensen Niels Kristian Jensen added a comment - - edited Details for jenkins.exe now are: File version = 2.1.2.0 Product version = 2.1.2 Date modified = 16-08-2017 17:02 Original filename WindowsService.exe (I stopped the Jenkins service, renamed .exe files, restarted Jenkins, used the "Update automatic" to 2.74, restart when no jobs... Jenkins stopped allright, but did not restart. From the "jenkins.wrapper.log": 2017-08-16 17:06:25 - Stopping jenkins 2017-08-16 17:06:25 - ProcessKill 5108 2017-08-16 17:06:26 - Send SIGINT 5108 2017-08-16 17:06:26 - SIGINT to5108 successful 2017-08-16 17:06:26 - Finished jenkins 2017-08-16 17:07:16,881 INFO - Starting ServiceWrapper in the service mode 2017-08-16 17:07:17,084 INFO - Starting D:\Jenkins\jre\bin\java -Xrs -Xmx1024m -Dhudson.model.DirectoryBrowserSupport.CSP -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "D:\Jenkins\jenkins.war" --httpPort=8080 2017-08-16 17:07:17,084 INFO - Starting D:\Jenkins\jre\bin\java -Xrs -Xmx1024m -Dhudson.model.DirectoryBrowserSupport.CSP -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "D:\Jenkins\jenkins.war" --httpPort=8080 2017-08-16 17:07:17,193 INFO - Started process 1804 2017-08-16 17:07:17,209 DEBUG - Forwarding logs of the process System.Diagnostics.Process (java) to winsw.SizeBasedRollingLogAppender 2017-08-16 17:09:37,108 DEBUG - Starting ServiceWrapper in the CLI mode 2017-08-16 17:09:37,578 INFO - Restarting the service with id 'jenkins' 2017-08-16 17:09:37,613 DEBUG - Completed. Exit code is 0 2017-08-16 17:09:38,085 DEBUG - Starting ServiceWrapper in the CLI mode 2017-08-16 17:09:38,569 INFO - Restarting the service with id 'jenkins' 2017-08-16 17:09:38,619 FATAL - WMI Operation failure: AccessDenied WMI.WmiException: AccessDenied at WMI.WmiRoot.InstanceHandler.Invoke(Object proxy, MethodInfo method, Object[] args) at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor) at winsw.WrapperService.Main(String[] args) From the jenkins.err.log: INFO: Restart in 10 seconds aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins$26 run SEVERE: Restarting VM as requested by nkj aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins cleanUp INFO: Stopping Jenkins aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins$21 onAttained INFO: Started termination aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins$21 onAttained INFO: Completed termination aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins _cleanUpDisconnectComputers INFO: Starting node disconnection aug. 16, 2017 5:09:34 PM jenkins.slaves.DefaultJnlpSlaveReceiver channelClosed WARNING: safe-restart thread for EAC3 Win10 (dtdkcphpw200044) terminated java.nio.channels.ClosedChannelException at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:208) at org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:222) at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:832) at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:181) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.switchToNoSecure(SSLEngineFilterLayer.java:283) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processWrite(SSLEngineFilterLayer.java:503) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processQueuedWrites(SSLEngineFilterLayer.java:248) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doSend(SSLEngineFilterLayer.java:200) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doCloseSend(SSLEngineFilterLayer.java:213) at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.doCloseSend(ProtocolStack.java:800) at org.jenkinsci.remoting.protocol.ApplicationLayer.doCloseWrite(ApplicationLayer.java:173) at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer$ByteBufferCommandTransport.closeWrite(ChannelApplicationLayer.java:311) at hudson.remoting.Channel.close(Channel.java:1304) at hudson.remoting.Channel.close(Channel.java:1272) at hudson.slaves.SlaveComputer.closeChannel(SlaveComputer.java:708) at hudson.slaves.SlaveComputer.kill(SlaveComputer.java:675) at hudson.model.AbstractCIBase.killComputer(AbstractCIBase.java:88) at jenkins.model.Jenkins.access$2000(Jenkins.java:307) at jenkins.model.Jenkins$22.run(Jenkins.java:3370) at hudson.model.Queue._withLock(Queue.java:1338) at hudson.model.Queue.withLock(Queue.java:1215) at jenkins.model.Jenkins._cleanUpDisconnectComputers(Jenkins.java:3364) at jenkins.model.Jenkins.cleanUp(Jenkins.java:3240) at hudson.lifecycle.WindowsServiceLifecycle.restart(WindowsServiceLifecycle.java:123) at jenkins.model.Jenkins$26.run(Jenkins.java:4225) aug. 16, 2017 5:09:34 PM jenkins.slaves.DefaultJnlpSlaveReceiver channelClosed WARNING: safe-restart thread for LDC Win10 on own VM (dtdkcphvm200040) terminated java.nio.channels.ClosedChannelException at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:208) at org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:222) at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:832) at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:181) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.switchToNoSecure(SSLEngineFilterLayer.java:283) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processWrite(SSLEngineFilterLayer.java:503) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processQueuedWrites(SSLEngineFilterLayer.java:248) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doSend(SSLEngineFilterLayer.java:200) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doCloseSend(SSLEngineFilterLayer.java:213) at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.doCloseSend(ProtocolStack.java:800) at org.jenkinsci.remoting.protocol.ApplicationLayer.doCloseWrite(ApplicationLayer.java:173) at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer$ByteBufferCommandTransport.closeWrite(ChannelApplicationLayer.java:311) at hudson.remoting.Channel.close(Channel.java:1304) at hudson.remoting.Channel.close(Channel.java:1272) at hudson.slaves.SlaveComputer.closeChannel(SlaveComputer.java:708) at hudson.slaves.SlaveComputer.kill(SlaveComputer.java:675) at hudson.model.AbstractCIBase.killComputer(AbstractCIBase.java:88) at jenkins.model.Jenkins.access$2000(Jenkins.java:307) at jenkins.model.Jenkins$22.run(Jenkins.java:3370) at hudson.model.Queue._withLock(Queue.java:1338) at hudson.model.Queue.withLock(Queue.java:1215) at jenkins.model.Jenkins._cleanUpDisconnectComputers(Jenkins.java:3364) at jenkins.model.Jenkins.cleanUp(Jenkins.java:3240) at hudson.lifecycle.WindowsServiceLifecycle.restart(WindowsServiceLifecycle.java:123) at jenkins.model.Jenkins$26.run(Jenkins.java:4225) aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins _cleanUpShutdownPluginManager INFO: Stopping plugin manager aug. 16, 2017 5:09:34 PM hudson.plugins.sshslaves.PluginImpl closeRegisteredConnections INFO: Forcing connection to dtdkcphpw200040:22 closed. aug. 16, 2017 5:09:34 PM hudson.plugins.sshslaves.PluginImpl closeRegisteredConnections INFO: Forcing connection to DTDKCPHAS1060:22 closed. aug. 16, 2017 5:09:34 PM hudson.plugins.sshslaves.PluginImpl closeRegisteredConnections INFO: Forcing connection to mddkcphpw106024:22 closed. aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins _cleanUpPersistQueue INFO: Persisting build queue aug. 16, 2017 5:09:34 PM jenkins.model.Jenkins _cleanUpAwaitDisconnects INFO: Waiting for node disconnection completion aug. 16, 2017 5:09:36 PM jenkins.model.Jenkins cleanUp INFO: Jenkins stopped aug. 16, 2017 5:10:33 PM net.bull.javamelody.internal.common.JavaLogger warn WARNING: exception while collecting data java.util.concurrent.ExecutionException: java.io.IOException: Cannot locate RemoteClassLoader.ClassLoaderProxy(7) in the channel exported table at hudson.remoting.Channel$2.adapt(Channel.java:871) at hudson.remoting.Channel$2.adapt(Channel.java:866) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at net.bull.javamelody.RemoteCallHelper.collectDataByNodeName(RemoteCallHelper.java:178) at net.bull.javamelody.RemoteCallHelper.collectJavaInformationsListByName(RemoteCallHelper.java:188) at net.bull.javamelody.NodesCollector.collectWithoutErrorsNow(NodesCollector.java:159) at net.bull.javamelody.NodesCollector.collectWithoutErrors(NodesCollector.java:147) at net.bull.javamelody.NodesCollector$2.run(NodesCollector.java:115) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) Caused by: java.io.IOException: Cannot locate RemoteClassLoader.ClassLoaderProxy(7) in the channel exported table at hudson.remoting.MultiClassLoaderSerializer$Input.readClassLoader(MultiClassLoaderSerializer.java:103) at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:124) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.UserRequest.deserialize(UserRequest.java:245) at hudson.remoting.UserResponse.retrieve(UserRequest.java:278) at hudson.remoting.Channel$2.adapt(Channel.java:869) ... 9 more Caused by: java.util.concurrent.ExecutionException: Invalid object ID 7 iota=8 at hudson.remoting.ExportTable.diagnoseInvalidObjectId(ExportTable.java:473) at hudson.remoting.ExportTable.get(ExportTable.java:394) at hudson.remoting.Channel.getExportedObject(Channel.java:675) at hudson.remoting.MultiClassLoaderSerializer$Input.readClassLoader(MultiClassLoaderSerializer.java:101) ... 18 more I then restarted the service using the "Services" dialog and Jenkins 2.74 woke up just fine.
          Hide
          nkjensen Niels Kristian Jensen added a comment -

          I just updated to 2.75, the same issue persists: The automatic restart closes Jenkins alright, but it never restarts. A manual restart from the "Services" dialog makes it run again.

          Show
          nkjensen Niels Kristian Jensen added a comment - I just updated to 2.75, the same issue persists: The automatic restart closes Jenkins alright, but it never restarts. A manual restart from the "Services" dialog makes it run again.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Under which account do you run the Windows service wrapper? Seems there is a security issue with WMI somewhere. It would be also useful to check Security/System/Application event logs at the issue timeframe, maybe there are more details.

          2017-08-16 17:09:38,619 FATAL - WMI Operation failure: AccessDenied
          WMI.WmiException: AccessDenied
          at WMI.WmiRoot.InstanceHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
          at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
          at winsw.WrapperService.Main(String[] args)
          
          Show
          oleg_nenashev Oleg Nenashev added a comment - Under which account do you run the Windows service wrapper? Seems there is a security issue with WMI somewhere. It would be also useful to check Security/System/Application event logs at the issue timeframe, maybe there are more details. 2017-08-16 17:09:38,619 FATAL - WMI Operation failure: AccessDenied WMI.WmiException: AccessDenied at WMI.WmiRoot.InstanceHandler.Invoke( Object proxy, MethodInfo method, Object [] args) at winsw.WrapperService.Run( String [] _args, ServiceDescriptor descriptor) at winsw.WrapperService.Main( String [] args)
          Hide
          nkjensen Niels Kristian Jensen added a comment -

          The account is called "c244bm8" which is a Active Directory user in the (company) md-man domain. The user has admin rights on the machine. The user ID is set in the properties of the service, and the password is stored here too. Data from the logs will follow.

          Show
          nkjensen Niels Kristian Jensen added a comment - The account is called "c244bm8" which is a Active Directory user in the (company) md-man domain. The user has admin rights on the machine. The user ID is set in the properties of the service, and the password is stored here too. Data from the logs will follow.
          Hide
          nkjensen Niels Kristian Jensen added a comment -

          I tried to clear all 3 logs and then I used the "safeRestart" command. Application log : 0 entries, System: 1 entry (The System log file was cleared.), Security log file: (Perhaps not relevant):

          Service:
          Server: NT Local Security Authority / Authentication Service
          Service Name: LsaRegisterLogonProcess()

          Process:
          Process ID: 0x32c
          Process Name: C:\Windows\System32\lsass.exe

          Service Request Information:
          Privileges: SeTcbPrivilege

          Then I cleared the logs again and used "Restart" from the Services dialog. The Application log shows that Jenkins starts twice, failing on the first attempt with errorcode 1.

          The Security log shows that Jenkins uses "Special Logon" with SeImpersonatePrivilege - twice.

          And finally, the System log shows that Jenkins stops, then starts, then "terminated unexpectedly". The corrective action (Restart) happens after a timeout (120.000 ms). This time around, it just wakes up, no issues.

          Show
          nkjensen Niels Kristian Jensen added a comment - I tried to clear all 3 logs and then I used the "safeRestart" command. Application log : 0 entries, System: 1 entry (The System log file was cleared.), Security log file: (Perhaps not relevant): Service: Server: NT Local Security Authority / Authentication Service Service Name: LsaRegisterLogonProcess() Process: Process ID: 0x32c Process Name: C:\Windows\System32\lsass.exe Service Request Information: Privileges: SeTcbPrivilege Then I cleared the logs again and used "Restart" from the Services dialog. The Application log shows that Jenkins starts twice, failing on the first attempt with errorcode 1. The Security log shows that Jenkins uses "Special Logon" with SeImpersonatePrivilege - twice. And finally, the System log shows that Jenkins stops, then starts, then "terminated unexpectedly". The corrective action (Restart) happens after a timeout (120.000 ms). This time around, it just wakes up, no issues.
          Hide
          nkjensen Niels Kristian Jensen added a comment - - edited

          I've just updated to 2.77 and I hoped that the change about JENKINS_HOME had fixed it (https://issues.jenkins-ci.org/browse/JENKINS-13153) - but no. /SafeRestart still hangs.

          Show
          nkjensen Niels Kristian Jensen added a comment - - edited I've just updated to 2.77 and I hoped that the change about JENKINS_HOME had fixed it ( https://issues.jenkins-ci.org/browse/JENKINS-13153 ) - but no. /SafeRestart still hangs.
          Hide
          danielbeck Daniel Beck added a comment - - edited

          A comment to another similar issue indicated that "Windows Management Instrumentation" (WMI) needs to become a "dependency" (? ) of the Jenkins service. Not a Windows user, but perhaps this means something to you Niels Kristian Jensen

          https://issues.jenkins-ci.org/browse/JENKINS-2566?focusedCommentId=147780&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-147780

           

          Show
          danielbeck Daniel Beck added a comment - - edited A comment to another similar issue indicated that "Windows Management Instrumentation" (WMI) needs to become a "dependency" (? ) of the Jenkins service. Not a Windows user, but perhaps this means something to you Niels Kristian Jensen https://issues.jenkins-ci.org/browse/JENKINS-2566?focusedCommentId=147780&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-147780  
          Hide
          nkjensen Niels Kristian Jensen added a comment -

          The problem was resolved "outside" Jenkins. The user running the Jenkins service (Log-in As) had more rights:

          I created a job, which simply reboots the server weekly. The user running the Jenkins service was not allowed to "shutdown" the server. IT dept granted the "shutdown" right to the user running the Jenkins service - and somehow this also "fixed" the problem of restarting the Jenkins service after a SW or Plugin upgrade.

          I'll set this issue to "Fixed"

          Show
          nkjensen Niels Kristian Jensen added a comment - The problem was resolved "outside" Jenkins. The user running the Jenkins service (Log-in As) had more rights: I created a job, which simply reboots the server weekly. The user running the Jenkins service was not allowed to "shutdown" the server. IT dept granted the "shutdown" right to the user running the Jenkins service - and somehow this also "fixed" the problem of restarting the Jenkins service after a SW or Plugin upgrade. I'll set this issue to "Fixed"
          Hide
          nkjensen Niels Kristian Jensen added a comment -

          The issue is a user-rights issue. The user running the server needs to be granted the right to "shutdown" system.

          Show
          nkjensen Niels Kristian Jensen added a comment - The issue is a user-rights issue. The user running the server needs to be granted the right to "shutdown" system.
          nkjensen Niels Kristian Jensen made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Hide
          chethan_m Chethan Mahabaleswara added a comment -

          Hi,

          I have a similar issue. Can someone guide me about possible fix ?

           

          OS - windows 2012 R2 (both Master and Slave)

          Java - 1.8.0_211 (both Mater and Salve)

          Jenkins Version - 2.176.2Slave

          Launch Method - Java Web start, JNLP(Launch by connecting it to the Master)

           

          Issue - I have a project in Jenkins which fails mainly because the slave terminates after 'Starting ServiceWrapper in the CLI mode' during execution.Finds a child process conhost.exe and failed due to Killing as fallback.

          This is happening only for a project/ pipeline, where I have python script which pings a internal URL (https://URL/ping), invokes the network emulator tool installed, adjust the network latency and also write to a file/ push to ELK. I have a internet proxy set up using .pac file. 

          It completes all the steps in project, at the end the slave terminates, marking the build as failure 

          Note - We also have another old version of jenkins 2.76 installed where the same project/ pipeline works with out any issue. Now we want to upgrade to latest jenkins but facing issue with slave getting terminated. I now have to close the network emulator tool every time and restart the jenkins service to bring it back online. 

          Error as obsreved in Jenkins-slave.wrapper.log:-

          2019-07-24 03:51:59,751 INFO  - Stopping jenkinsslave-e__jenkins
          2019-07-24 03:51:59,751 DEBUG - ProcessKill 6872
          2019-07-24 03:51:59,860 INFO  - Found child process: 6408 Name: conhost.exe
          2019-07-24 03:51:59,892 INFO  - Stopping process 6408
          2019-07-24 03:51:59,907 INFO  - Send SIGINT 6408
          2019-07-24 03:51:59,907 WARN  - SIGINT to 6408 failed - Killing as fallback
          2019-07-24 03:51:59,907 INFO  - Stopping process 6872
          2019-07-24 03:51:59,907 INFO  - Send SIGINT 6872
          2019-07-24 03:51:59,907 WARN  - SIGINT to 6872 failed - Killing as fallback
          2019-07-24 03:51:59,907 INFO  - Finished jenkinsslave-e__jenkins
          2019-07-24 03:51:59,907 DEBUG - Completed. Exit code is 0

           

          Error as obsreved in jenkins-slave.error.log:-
          Jul 24, 2019 3:57:23 AM hudson.remoting.jnlp.Main$CuiListener statusJul
          24, 2019 3:57:23 AM hudson.remoting.jnlp.Main$CuiListener statusINFO: Terminated
          Jul 24, 2019 3:57:23 AM hudson.util.ProcessTree getWARNING: Error while determining if vetoers existhudson.remoting.RequestAbortedException: java.nio.channels.ClosedChannelException
          at hudson.remoting.Request.abort(Request.java:340) at hudson.remoting.Channel.terminate(Channel.java:1040)
          at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:209)
          at org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:222)
          at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:816)
          at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287)
          at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:172)
          at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:816)
          at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
          at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1800(BIONetworkLayer.java:48)
          at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONetworkLayer.java:264)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
          at java.lang.Thread.run(Unknown Source) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection to jenkinsmater/IP address:33131
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
          at hudson.remoting.Request.call(Request.java:202) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286)
          at com.sun.proxy.$Proxy6.fetch3(Unknown Source)
          at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:209)
          at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.lang.ClassLoader.defineClass(Unknown Source) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:383) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:307)
          at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.lang.ClassLoader.defineClass(Unknown Source) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:383) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:307)
          at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.lang.ClassLoader.defineClass(Unknown Source) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:383) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:307)
          at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source)
          at hudson.util.ProcessTree.get(ProcessTree.java:415)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1103) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1094)
          at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(Unknown Source) ... 4 moreCaused by: java.nio.channels.ClosedChannelException ... 7 more
          Jul 24, 2019 3:57:23 AM hudson.util.ProcessTree getWARNING: Failed to load winp. Reverting to the defaultjava.lang.NoClassDefFoundError: hudson/util/ProcessTree$WindowsOSProcessException
          at hudson.util.ProcessTree.get(ProcessTree.java:430)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1103) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1094)
          at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369)
          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.lambda$newThread$0(Engine.java:93)
          at java.lang.Thread.run(Unknown Source)Caused by: java.lang.ClassNotFoundException: hudson.util.ProcessTree$WindowsOSProcessException at java.net.URLClassLoader.findClass(Unknown Source)
          at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:171) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 12 more
          Jul 24, 2019 3:57:23 AM hudson.remoting.Request$2 runINFO: Failed to send back a reply to the request hudson.remoting.Request$2@626d990c: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@4d834d1e:JNLP4-connect connection to jenkinsmaster/IP Address:33131": channel is already closed

          Jul 24, 2019 3:57:33 AM hudson.remoting.jnlp.Main$CuiListener statusINFO: Performing onReconnect operation.

           

          Can someone please help with this issue ?

           

          Thanks,

          Chethan

          Show
          chethan_m Chethan Mahabaleswara added a comment - Hi, I have a similar issue. Can someone guide me about possible fix ?   OS - windows 2012 R2 (both Master and Slave) Java - 1.8.0_211 (both Mater and Salve) Jenkins Version - 2.176.2Slave Launch Method - Java Web start, JNLP(Launch by connecting it to the Master)   Issue - I have a project in Jenkins which fails mainly because the slave terminates after 'Starting ServiceWrapper in the CLI mode' during execution.Finds a child process conhost.exe and failed due to Killing as fallback. This is happening only for a project/ pipeline, where I have python script which pings a internal URL ( https://URL/ping ), invokes the network emulator tool installed, adjust the network latency and also write to a file/ push to ELK. I have a internet proxy set up using .pac file.  It completes all the steps in project, at the end the slave terminates, marking the build as failure  Note - We also have another old version of jenkins 2.76 installed where the same project/ pipeline works with out any issue. Now we want to upgrade to latest jenkins but facing issue with slave getting terminated. I now have to close the network emulator tool every time and restart the jenkins service to bring it back online.  Error as obsreved in Jenkins-slave.wrapper.log:- 2019-07-24 03:51:59,751 INFO  - Stopping jenkinsslave-e__jenkins 2019-07-24 03:51:59,751 DEBUG - ProcessKill 6872 2019-07-24 03:51:59,860 INFO  - Found child process: 6408 Name: conhost.exe 2019-07-24 03:51:59,892 INFO  - Stopping process 6408 2019-07-24 03:51:59,907 INFO  - Send SIGINT 6408 2019-07-24 03:51:59,907 WARN  - SIGINT to 6408 failed - Killing as fallback 2019-07-24 03:51:59,907 INFO  - Stopping process 6872 2019-07-24 03:51:59,907 INFO  - Send SIGINT 6872 2019-07-24 03:51:59,907 WARN  - SIGINT to 6872 failed - Killing as fallback 2019-07-24 03:51:59,907 INFO  - Finished jenkinsslave-e__jenkins 2019-07-24 03:51:59,907 DEBUG - Completed. Exit code is 0   Error as obsreved in jenkins-slave.error.log:- Jul 24, 2019 3:57:23 AM hudson.remoting.jnlp.Main$CuiListener statusJul 24, 2019 3:57:23 AM hudson.remoting.jnlp.Main$CuiListener statusINFO: Terminated Jul 24, 2019 3:57:23 AM hudson.util.ProcessTree getWARNING: Error while determining if vetoers existhudson.remoting.RequestAbortedException: java.nio.channels.ClosedChannelException at hudson.remoting.Request.abort(Request.java:340) at hudson.remoting.Channel.terminate(Channel.java:1040) at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:209) at org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:222) at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:816) at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287) at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:172) at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:816) at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154) at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1800(BIONetworkLayer.java:48) at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONetworkLayer.java:264) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93) at java.lang.Thread.run(Unknown Source) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection to jenkinsmater/IP address:33131 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743) at hudson.remoting.Request.call(Request.java:202) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286) at com.sun.proxy.$Proxy6.fetch3(Unknown Source) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:209) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:383) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:307) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:383) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:307) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:383) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:307) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at hudson.util.ProcessTree.get(ProcessTree.java:415) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1103) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1094) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(Unknown Source) ... 4 moreCaused by: java.nio.channels.ClosedChannelException ... 7 more Jul 24, 2019 3:57:23 AM hudson.util.ProcessTree getWARNING: Failed to load winp. Reverting to the defaultjava.lang.NoClassDefFoundError: hudson/util/ProcessTree$WindowsOSProcessException at hudson.util.ProcessTree.get(ProcessTree.java:430) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1103) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1094) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) 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.lambda$newThread$0(Engine.java:93) at java.lang.Thread.run(Unknown Source)Caused by: java.lang.ClassNotFoundException: hudson.util.ProcessTree$WindowsOSProcessException at java.net.URLClassLoader.findClass(Unknown Source) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:171) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 12 more Jul 24, 2019 3:57:23 AM hudson.remoting.Request$2 runINFO: Failed to send back a reply to the request hudson.remoting.Request$2@626d990c: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@4d834d1e:JNLP4-connect connection to jenkinsmaster/IP Address:33131": channel is already closed Jul 24, 2019 3:57:33 AM hudson.remoting.jnlp.Main$CuiListener statusINFO: Performing onReconnect operation.   Can someone please help with this issue ?   Thanks, Chethan
          Show
          nkjensen Niels Kristian Jensen added a comment - Have you tried the fixes mentioned here: https://issues.jenkins.io/browse/JENKINS-55945?focusedCommentId=403214&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-403214

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nkjensen Niels Kristian Jensen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: