• core 2.161, timestamper-plugin 1.9

      The following pipeline fails on Windows agents:

      pipeline {
          options {
              timestamps()
              skipDefaultCheckout()
          }
          agent {
              label 'windows-astro'
          }
          stages {
              stage("Stage 1") {
                  steps {
                      git 'git@github.com:amuniz/maven-helloworld.git'
                      withMaven(jdk: 'jdk-8', maven: 'mvn-3.3.9', mavenLocalRepo: '.repository') {
                          bat 'mvn -version'
                      }
                  }
              }
          }
      }
      

      Error:

      [Pipeline] node
      Running on b314ca90e2fb in c:\build\e4909a8e\workspace\my-team\Tinkering\amuniz\test-p
      [Pipeline] {
      [Pipeline] timestamps
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (Stage 1)
      [Pipeline] git
      Cloning the remote Git repository
      ERROR: Error cloning remote repo 'origin'
      hudson.plugins.git.GitException: java.io.IOException: Remote call on JNLP4-connect connection from ip-172-18-51-14.ec2.internal/172.18.51.14:49670 failed
      	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:169)
      	at sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
      	at com.sun.proxy.$Proxy125.execute(Unknown Source)
      	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146)
      	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
      	at hudson.security.ACL.impersonate(ACL.java:290)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.io.IOException: Remote call on JNLP4-connect connection from ip-172-18-51-14.ec2.internal/172.18.51.14:49670 failed
      	at hudson.remoting.Channel.call(Channel.java:961)
      	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
      	... 18 more
      Caused by: java.lang.IllegalAccessError: tried to access field hudson.remoting.Channel.executor from class org.jenkinsci.remoting.util.AnonymousClassWarnings
      	at org.jenkinsci.remoting.util.AnonymousClassWarnings.check(AnonymousClassWarnings.java:65)
      	at org.jenkinsci.remoting.util.AnonymousClassWarnings$1.annotateClass(AnonymousClassWarnings.java:119)
      	at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source)
      	at java.io.ObjectOutputStream.writeClassDesc(Unknown Source)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
      	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      	at java.io.ObjectOutputStream.writeObject(Unknown Source)
      	at hudson.console.ConsoleNote.encodeToBytes(ConsoleNote.java:185)
      	at hudson.console.ConsoleNote.encode(ConsoleNote.java:211)
      	at hudson.plugins.timestamper.TimestampNotesOutputStream.eol(TimestampNotesOutputStream.java:70)
      	at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:60)
      	at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:56)
      	at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:74)
      	at java.io.PrintStream.write(Unknown Source)
      	at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
      	at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)
      	at sun.nio.cs.StreamEncoder.flushBuffer(Unknown Source)
      	at java.io.OutputStreamWriter.flushBuffer(Unknown Source)
      	at java.io.PrintStream.newLine(Unknown Source)
      	at java.io.PrintStream.println(Unknown Source)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:567)
      	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
      	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:207)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:53)
      	at hudson.remoting.Request$2.run(Request.java:358)
      	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:98)
      	at java.lang.Thread.run(Unknown Source)
      	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from ip-172-18-51-14.ec2.internal/172.18.51.14:49670
      		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
      		at hudson.remoting.UserResponse.retrieve(UserRequest.java:389)
      		at hudson.remoting.Channel.call(Channel.java:955)
      		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
      		at sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
      		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      		at java.lang.reflect.Method.invoke(Method.java:498)
      		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
      		at com.sun.proxy.$Proxy125.execute(Unknown Source)
      		at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146)
      		at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)
      		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
      		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
      		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
      		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
      		at hudson.security.ACL.impersonate(ACL.java:290)
      		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
      		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      		at java.lang.Thread.run(Thread.java:748)
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // timestamps
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      ERROR: Error cloning remote repo 'origin'
      Finished: FAILURE
      

      Additional notes:

      1. It works on Linux agents.
      2. It works removing the timestamps() option.
      3. Agent details:

      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows server 2016", version: "10.0", arch: "amd64", family: "dos"
      

          [JENKINS-55257] Timestamper break builds on Windows agents

          Antonio Muñiz created issue -

          Jesse Glick added a comment -

          Likely a configuration issue rather than a Jenkins bug per se. Channel.executor is public and should be in the same JAR file. What version of Java is the agent running?

          Jesse Glick added a comment - Likely a configuration issue rather than a Jenkins bug per se. Channel.executor is public and should be in the same JAR file. What version of Java is the agent running?

          It's JRE-8u151 to launch the agent and then the build uses a regular tool installer for 1.8.0_192.

          Antonio Muñiz added a comment - It's JRE-8u151 to launch the agent and then the build uses a regular tool installer for 1.8.0_192 .

          D Pasto added a comment -

          FWIW - I'm running into what looks like the same issue.  I have a declarative pipeline and couldn't understand why it's only my branch blowing up this way, and I see it with the default checkout, an explicit 'checkout scm', or 'git ...'.  I'm running timestamper 1.8.10 and java 1.8.0_191-b12 64bit.  Commenting out the timestamps option got me past this.

          D Pasto added a comment - FWIW - I'm running into what looks like the same issue.  I have a declarative pipeline and couldn't understand why it's only my branch blowing up this way, and I see it with the default checkout, an explicit 'checkout scm', or 'git ...'.  I'm running timestamper 1.8.10 and java 1.8.0_191-b12 64bit.  Commenting out the timestamps option got me past this.

          I'm having the same issue with Jenkins v2.150.1.

          Richer Larivière added a comment - I'm having the same issue with Jenkins v2.150.1.

          Jeff Thompson added a comment -

          I'll try reproducing it when I can get a Windows machine set up. In the meantime if anyone can provide more information, logs, or simple reproduction steps, that might help.

          Jeff Thompson added a comment - I'll try reproducing it when I can get a Windows machine set up. In the meantime if anyone can provide more information, logs, or simple reproduction steps, that might help.

          The problem seams affecting only Windows server 2016.
          It appeared after upgrading Jenkins master to 2.150.1. 
          Has somebody observed similar problems at other OS? 

          Lev Tartakovsky added a comment - The problem seams affecting only Windows server 2016. It appeared after upgrading Jenkins master to 2.150.1.  Has somebody observed similar problems at other OS? 

          jthompson, at our slave's jenkins-slave.err.log and remoting.log we get similar error:
          Dec 24, 2018 4:56:55 PM hudson.remoting.UserRequest perform
          WARNING: LinkageError while performing UserRequest:sp.sd.fileoperations.FolderCreateOperation$TargetFileCallable@30c1b52a
          java.lang.IllegalAccessError: tried to access field hudson.remoting.Channel.executor from class org.jenkinsci.remoting.util.AnonymousClassWarnings
          at org.jenkinsci.remoting.util.AnonymousClassWarnings.check(AnonymousClassWarnings.java:65)
          at org.jenkinsci.remoting.util.AnonymousClassWarnings$1.annotateClass(AnonymousClassWarnings.java:121)
          at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source)
          at java.io.ObjectOutputStream.writeClassDesc(Unknown Source)
          at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
          at java.io.ObjectOutputStream.writeObject0(Unknown Source)
          at java.io.ObjectOutputStream.writeObject(Unknown Source)
          at hudson.console.ConsoleNote.encodeToBytes(ConsoleNote.java:185)
          at hudson.console.ConsoleNote.encode(ConsoleNote.java:211)
          at hudson.plugins.timestamper.TimestampNotesOutputStream.eol(TimestampNotesOutputStream.java:70)
          at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:60)
          at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:56)
          at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:74)
          at java.io.PrintStream.write(Unknown Source)
          at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
          at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)
          at sun.nio.cs.StreamEncoder.flushBuffer(Unknown Source)
          at java.io.OutputStreamWriter.flushBuffer(Unknown Source)
          at java.io.PrintStream.newLine(Unknown Source)
          at java.io.PrintStream.println(Unknown Source)
          at sp.sd.fileoperations.FolderCreateOperation$TargetFileCallable.invoke(FolderCreateOperation.java:69)
          at sp.sd.fileoperations.FolderCreateOperation$TargetFileCallable.invoke(FolderCreateOperation.java:51)
          at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3086)
          at hudson.remoting.UserRequest.perform(UserRequest.java:205)
          at hudson.remoting.UserRequest.perform(UserRequest.java:52)
          at hudson.remoting.Request$2.run(Request.java:356)
          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:98)
          at java.lang.Thread.run(Unknown Source)

          Lev Tartakovsky added a comment - jthompson , at our slave's jenkins-slave.err.log and remoting.log we get similar error: Dec 24, 2018 4:56:55 PM hudson.remoting.UserRequest perform WARNING: LinkageError while performing UserRequest:sp.sd.fileoperations.FolderCreateOperation$TargetFileCallable@30c1b52a java.lang.IllegalAccessError: tried to access field hudson.remoting.Channel.executor from class org.jenkinsci.remoting.util.AnonymousClassWarnings at org.jenkinsci.remoting.util.AnonymousClassWarnings.check(AnonymousClassWarnings.java:65) at org.jenkinsci.remoting.util.AnonymousClassWarnings$1.annotateClass(AnonymousClassWarnings.java:121) at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source) at java.io.ObjectOutputStream.writeClassDesc(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.console.ConsoleNote.encodeToBytes(ConsoleNote.java:185) at hudson.console.ConsoleNote.encode(ConsoleNote.java:211) at hudson.plugins.timestamper.TimestampNotesOutputStream.eol(TimestampNotesOutputStream.java:70) at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:60) at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:56) at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:74) at java.io.PrintStream.write(Unknown Source) at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source) at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source) at sun.nio.cs.StreamEncoder.flushBuffer(Unknown Source) at java.io.OutputStreamWriter.flushBuffer(Unknown Source) at java.io.PrintStream.newLine(Unknown Source) at java.io.PrintStream.println(Unknown Source) at sp.sd.fileoperations.FolderCreateOperation$TargetFileCallable.invoke(FolderCreateOperation.java:69) at sp.sd.fileoperations.FolderCreateOperation$TargetFileCallable.invoke(FolderCreateOperation.java:51) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3086) at hudson.remoting.UserRequest.perform(UserRequest.java:205) at hudson.remoting.UserRequest.perform(UserRequest.java:52) at hudson.remoting.Request$2.run(Request.java:356) 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:98) at java.lang.Thread.run(Unknown Source)

          Mark Waite added a comment -

          I can't duplicate the problem as described on Windows 10. I'm surprised if it is truly specific to Windows Server 2016 and not visible on Windows 10.

          The repository where I've tried various permutations of the bug duplication instructions is the JENKINS-55257 branch of my jenkins-bugs repository.

          My Java versions are JDK 8 on agents and on master, with all the agents running at least 1.8.0 151. The master is running JDK 8 162 from my my docker image.

          Mark Waite added a comment - I can't duplicate the problem as described on Windows 10. I'm surprised if it is truly specific to Windows Server 2016 and not visible on Windows 10. The repository where I've tried various permutations of the bug duplication instructions is the JENKINS-55257 branch of my jenkins-bugs repository . My Java versions are JDK 8 on agents and on master, with all the agents running at least 1.8.0 151. The master is running JDK 8 162 from my my docker image .

          D Pasto added a comment - - edited

          For me this is happening on a Win 2012r2 agent, so it is not just Win2016.  The Jenkins agent is running as administrator with UAC set to never.

          D Pasto added a comment - - edited For me this is happening on a Win 2012r2 agent, so it is not just Win2016.  The Jenkins agent is running as administrator with UAC set to never.

            jglick Jesse Glick
            amuniz Antonio Muñiz
            Votes:
            7 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: