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

Slave disconnects after moving the windows clock forward

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • remoting
    • None
    • Jenkins version 1.639
      java.version 1.7.0_17
      os.arch x86
      os.name Windows Server 2008 R2
      os.version 6.1

      Slave:
      Windows 7

      During one of our tests, we need to move the windows clock forward. We already have disabled "Clock Difference" from the Preventive Node Monitoring configure page.

      Command used to move the clock forward

      Process process = Runtime.getRuntime().exec("cmd /C date " + dateToChangeTo);
      

      After this command, our slave will disconnect.

      Slave went offline during the build
      ERROR: Connection was broken: java.io.IOException: Connection aborted: org.jenkinsci.remoting.nio.NioChannelHub$MonoNioTransport@1278fd1[name=b30b19f8-da4f-5463-8ed0-53cbae44a1c7]
      	at org.jenkinsci.remoting.nio.NioChannelHub$NioTransport.abort(NioChannelHub.java:208)
      	at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:628)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.util.concurrent.FutureTask$Sync.innerRun(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)
      Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
      	at sun.nio.ch.SocketDispatcher.read0(Native Method)
      	at sun.nio.ch.SocketDispatcher.read(Unknown Source)
      	at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
      	at sun.nio.ch.IOUtil.read(Unknown Source)
      	at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
      	at org.jenkinsci.remoting.nio.FifoBuffer$Pointer.receive(FifoBuffer.java:136)
      	at org.jenkinsci.remoting.nio.FifoBuffer.receive(FifoBuffer.java:306)
      	at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:561)
      	... 7 more
      

            Unassigned Unassigned
            cwcam Cam Spencer
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: