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

Failed to copy artifacts from another build job with timestamp exception

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: copyartifact-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.477, copyartifacts 1.22
      Master: Linux
      Slave: Windows XP Pro
    • Similar Issues:

      Description

      We're experiencing the following exception when trying to copy artifacts:

      ERROR: Failed to copy artifacts from PROJECT_1 with filter: deploy/**/*.*
      hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/PROJECT_1/builds/2012-04-04_09-44-14/archive/deploy/some_file.txt to c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt
      	at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:91)
      	at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:63)
      	at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243)
      	at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      	at hudson.model.Build$BuildExecution.build(Build.java:199)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      	at hudson.model.Run.execute(Run.java:1502)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:236)
      Caused by: hudson.util.IOException2: remote file operation failed: c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt at hudson.remoting.Channel@30e16a97:TW-FEQS-XP-LON
      	at hudson.FilePath.act(FilePath.java:838)
      	at hudson.FilePath.act(FilePath.java:824)
      	at hudson.FilePath.touch(FilePath.java:1170)
      	at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:79)
      	... 12 more
      Caused by: java.io.IOException: Failed to set the timestamp of c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt to 1333525392000
      	at hudson.FilePath$19.invoke(FilePath.java:1176)
      	at hudson.FilePath$19.invoke(FilePath.java:1170)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2196)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:287)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at hudson.remoting.Engine$1$1.run(Engine.java:60)
      	at java.lang.Thread.run(Unknown Source)
      Build step 'Copy artifacts from another project' marked build as failure
      

      We followed the workaround mentioned in issue 9456. Be aware that the master is a Linux machine and the slave is Windows.

        Attachments

          Issue Links

            Activity

            desolat Christoph Jaehnigen created issue -
            desolat Christoph Jaehnigen made changes -
            Field Original Value New Value
            Affects Version/s current [ 10162 ]
            Environment HPUX, Windows 2003 Server, JRE 1.6.0.04-jinteg_28_apr_2009_04_46-b00 Jenkins 1.477, copyartifacts 1.22
            Master: Linux
            Slave: Windows XP Pro
            Description Hi,

            I have security enabled Master (HPUX) - Slave (Win2003Srv) configuration on Jenkins, 1.408. I'm trying to copy artifacts from "Latest successful build" build job 1 (master) to build job 2 (slave).

            I get this console output error while building job:

            Building remotely on XXXXXXX
            ERROR: Failed to copy artifacts from YYYYYYY with filter: *.gz
            hudson.util.IOException2: java.lang.IllegalAccessError: class hudson.remoting.Pipe$ConnectCommand cannot access its superclass hudson.remoting.Command
            at hudson.FilePath.copyRecursiveTo(FilePath.java:1526)
            at hudson.FilePath.copyRecursiveTo(FilePath.java:1451)
            at hudson.plugins.copyartifact.FilePathCopyMethod.copyAll(FilePathCopyMethod.java:51)
            at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:225)
            at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:199)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
            at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:649)
            at hudson.model.Build$RunnerImpl.build(Build.java:177)
            at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
            at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:423)
            at hudson.model.Run.run(Run.java:1362)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:145)
            Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalAccessError: class hudson.remoting.Pipe$ConnectCommand cannot access its superclass hudson.remoting.Command
            at hudson.remoting.Channel$2.adapt(Channel.java:676)
            at hudson.remoting.Channel$2.adapt(Channel.java:671)
            at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
            at hudson.FilePath.copyRecursiveTo(FilePath.java:1524)
            ... 13 more
            Caused by: java.lang.IllegalAccessError: class hudson.remoting.Pipe$ConnectCommand cannot access its superclass hudson.remoting.Command
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(Unknown Source)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:151)
            at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:131)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.Class.getDeclaredFields0(Native Method)
            at java.lang.Class.privateGetDeclaredFields(Unknown Source)
            at java.lang.Class.getDeclaredField(Unknown Source)
            at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)
            at java.io.ObjectStreamClass.access$700(Unknown Source)
            at java.io.ObjectStreamClass$2.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.io.ObjectStreamClass.<init>(Unknown Source)
            at java.io.ObjectStreamClass.lookup(Unknown Source)
            at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
            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.defaultReadFields(Unknown Source)
            at java.io.ObjectInputStream.readSerialData(Unknown Source)
            at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
            at java.io.ObjectInputStream.readObject0(Unknown Source)
            at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
            at java.io.ObjectInputStream.readSerialData(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:178)
            at hudson.remoting.UserRequest.perform(UserRequest.java:98)
            at hudson.remoting.UserRequest.perform(UserRequest.java:48)
            at hudson.remoting.Request$2.run(Request.java:270)
            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$Worker.runTask(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at hudson.remoting.Engine$1$1.run(Engine.java:59)
            at java.lang.Thread.run(Unknown Source)
            Finished: FAILURE


              
            We're experiencing the following exception when trying to copy artifacts:

            {code}
            ERROR: Failed to copy artifacts from PROJECT_1 with filter: deploy/**/*.*
            hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/PROJECT_1/builds/2012-04-04_09-44-14/archive/deploy/some_file.txt to c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt
            at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:91)
            at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:63)
            at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243)
            at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
            at hudson.model.Build$BuildExecution.build(Build.java:199)
            at hudson.model.Build$BuildExecution.doRun(Build.java:160)
            at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
            at hudson.model.Run.execute(Run.java:1502)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:236)
            Caused by: hudson.util.IOException2: remote file operation failed: c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt at hudson.remoting.Channel@30e16a97:TW-FEQS-XP-LON
            at hudson.FilePath.act(FilePath.java:838)
            at hudson.FilePath.act(FilePath.java:824)
            at hudson.FilePath.touch(FilePath.java:1170)
            at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:79)
            ... 12 more
            Caused by: java.io.IOException: Failed to set the timestamp of c:\jenkins\workspace\PROJECT_2\deploy\some_file.txt to 1333525392000
            at hudson.FilePath$19.invoke(FilePath.java:1176)
            at hudson.FilePath$19.invoke(FilePath.java:1170)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2196)
            at hudson.remoting.UserRequest.perform(UserRequest.java:118)
            at hudson.remoting.UserRequest.perform(UserRequest.java:48)
            at hudson.remoting.Request$2.run(Request.java:287)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
            at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
            at java.util.concurrent.FutureTask.run(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at hudson.remoting.Engine$1$1.run(Engine.java:60)
            at java.lang.Thread.run(Unknown Source)
            Build step 'Copy artifacts from another project' marked build as failure
            {code}

            We followed the workaround mentioned in issue 9456. Be aware that the master is a Linux machine and the slave is Windows.
            desolat Christoph Jaehnigen made changes -
            Link This issue is related to JENKINS-9456 [ JENKINS-9456 ]
            ikedam ikedam made changes -
            Link This issue is related to JENKINS-11073 [ JENKINS-11073 ]
            ikedam ikedam made changes -
            Link This issue duplicates JENKINS-13515 [ JENKINS-13515 ]
            ikedam ikedam made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 145475 ] JNJira + In-Review [ 191506 ]

              People

              • Assignee:
                mindless Alan Harder
                Reporter:
                desolat Christoph Jaehnigen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: