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

ArtifactDeployer fails with java.lang.NoClassDefFoundError: Could not initialize class org.jruby.ext.posix.Linux64HeapFileStat

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.182
      ArtifactDeployer 1.2
      Ubuntu 16.04 LTS
      OpenJDK 1.8.0_212-8u212-b03-0ubuntu1.16.04.1-b03

      All of my jobs that use ArtifactDeployer have started failing with the following error since June 18 (which is probably when I updated all the plugin versions before leaving for a nice vacation):

      Archiving artifacts
      [ArtifactDeployer] - Starting deployment from the post-action ...
      ERROR: Step ‘[ArtifactDeployer] - Deploy the artifacts from build workspace to remote locations’ aborted due to exception:
      java.lang.NoClassDefFoundError: Could not initialize class org.jruby.ext.posix.Linux64HeapFileStat
      at org.jruby.ext.posix.LinuxPOSIX.allocateStat(LinuxPOSIX.java:44)
      at org.jruby.ext.posix.LinuxPOSIX.stat(LinuxPOSIX.java:87)
      at com.atlassian.ant.tasks.PermissionsUtils.getPermissions(PermissionsUtils.java:21)
      at com.atlassian.ant.tasks.CopyWithPerms.doFileOperations(CopyWithPerms.java:75)
      at org.jenkinsci.plugins.artifactdeployer.service.LocalCopy$1CopyImpl.doFileOperations(LocalCopy.java:60)
      at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:568)
      at org.jenkinsci.plugins.artifactdeployer.service.LocalCopy.copyAndGetNumbers(LocalCopy.java:83)
      at org.jenkinsci.plugins.artifactdeployer.service.ArtifactDeployerCopy.invoke(ArtifactDeployerCopy.java:71)
      at org.jenkinsci.plugins.artifactdeployer.service.ArtifactDeployerCopy.invoke(ArtifactDeployerCopy.java:41)
      at hudson.FilePath.act(FilePath.java:1078)
      at hudson.FilePath.act(FilePath.java:1061)
      at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher.processDeployment(ArtifactDeployerPublisher.java:204)
      at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher._perform(ArtifactDeployerPublisher.java:130)
      at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher.perform(ArtifactDeployerPublisher.java:99)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      at hudson.model.Run.execute(Run.java:1843)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)

       

          [JENKINS-58211] ArtifactDeployer fails with java.lang.NoClassDefFoundError: Could not initialize class org.jruby.ext.posix.Linux64HeapFileStat

          Marius Gedminas created issue -
          Kai Sieben made changes -
          Component/s New: copyartifact-plugin [ 15692 ]
          Kai Sieben made changes -
          Component/s Original: copyartifact-plugin [ 15692 ]
          Joe Mihalich made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Markus Winter made changes -
          Link New: This issue is caused by JENKINS-57515 [ JENKINS-57515 ]
          Amit Dar made changes -
          Comment [ I am about to upgrade my server to 2.190.2, does anyone know if this issue still present? (also using ArtifactDeployer...)

           

          *UPDATE:*

          looks like there is already a [PR|[https://github.com/jenkinsci/artifactdeployer-plugin/pull/13]] with the solution waiting for approval... 

          [~seanturner83], can you handle this?

           

          *UPDATE 2*

          we are currently working with Jenkins 2.190 (weekly), this problem does not happen here... ]
          Petr H made changes -
          Link New: This issue is related to JENKINS-61085 [ JENKINS-61085 ]
          Mark Waite made changes -
          Link New: This issue is duplicated by JENKINS-60756 [ JENKINS-60756 ]

            seanturner83 Sean Turner
            mgedmin Marius Gedminas
            Votes:
            14 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated: