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

Can't copy on remote windows slave

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When set up to copy a file on a windows box I get the following with 0.12

      ERROR: Publisher org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher aborted due to exception
      hudson.util.IOException2: remote file operation failed: c:\development\jenkins\workspace\project at hudson.remoting.Channel@5969334d:windows-server
      	at hudson.FilePath.act(FilePath.java:781)
      	at hudson.FilePath.act(FilePath.java:767)
      	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher.processDeployment(ArtifactDeployerPublisher.java:133)
      	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher._perform(ArtifactDeployerPublisher.java:79)
      	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher.perform(ArtifactDeployerPublisher.java:63)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:647)
      	at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:616)
      	at hudson.model.Run.run(Run.java:1429)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:230)
      Caused by: java.io.IOException: Remote call on windows-server failed
      	at hudson.remoting.Channel.call(Channel.java:690)
      	at hudson.FilePath.act(FilePath.java:774)
      	... 14 more
      Caused by: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/artifactdeployer/service/LocalCopy$1CopyImpl
      	at org.jenkinsci.plugins.artifactdeployer.service.LocalCopy.copyAndGetNumbers(LocalCopy.java:50)
      	at org.jenkinsci.plugins.artifactdeployer.service.ArtifactDeployerCopy.invoke(ArtifactDeployerCopy.java:48)
      	at org.jenkinsci.plugins.artifactdeployer.service.ArtifactDeployerCopy.invoke(ArtifactDeployerCopy.java:18)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022)
      	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 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      

      I also had another stack trace in another job:

      FATAL: remote file operation failed: c:\development\jenkins\workspace\job at hudson.remoting.Channel@5969334d:windows-server
      hudson.util.IOException2: remote file operation failed: c:\development\jenkins\workspace\job at hudson.remoting.Channel@5969334d:windows-server
      	at hudson.FilePath.act(FilePath.java:781)
      	at hudson.FilePath.act(FilePath.java:767)
      	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerBuilder.processDeployment(ArtifactDeployerBuilder.java:97)
      	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerBuilder.perform(ArtifactDeployerBuilder.java:45)
      	at hudson.plugins.release.ReleaseWrapper.executeBuildSteps(ReleaseWrapper.java:337)
      	at hudson.plugins.release.ReleaseWrapper.access$300(ReleaseWrapper.java:83)
      	at hudson.plugins.release.ReleaseWrapper$4.tearDown(ReleaseWrapper.java:284)
      	at hudson.model.Build$RunnerImpl.doRun(Build.java:150)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:460)
      	at hudson.model.Run.run(Run.java:1404)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:230)
      Caused by: java.io.IOException: Remote call on windows-server failed
      	at hudson.remoting.Channel.call(Channel.java:690)
      	at hudson.FilePath.act(FilePath.java:774)
      	... 12 more
      Caused by: java.lang.NoClassDefFoundError: com/atlassian/ant/tasks/CopyWithPerms
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      	at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch2(RemoteClassLoader.java:408)
      	at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      	at hudson.remoting.Request$2.run(Request.java:287)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassNotFoundException: com.atlassian.ant.tasks.CopyWithPerms
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      	... 22 more
      

        Attachments

          Activity

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: pom.xml http://jenkins-ci.org/commit/artifactdeployer-plugin/e85ae7d913eafcdba1004c7ed47a10936d0d5873 Log: Fixed JENKINS-11640 Compare: https://github.com/jenkinsci/artifactdeployer-plugin/compare/8746a10...e85ae7d

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              larrys Larry Shatzer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: