java.lang.Error: Failed to load resources META-INF/services/org.codehaus.groovy.transform.ASTTransformation

Jenkins JIRA | Oliver Gondža | 4 months ago
  1. 0

    Slave got stuck in a state unable to load any classes/resources from master. The jar was not written nor the {{C1}} directory was created. I suspect the failure to create directory is silently ignored at https://github.com/jenkinsci/remoting/blob/3622f876e1b1f7548c9e7db0d4d09b76d80c87cc/src/main/java/hudson/remoting/FileSystemJarCache.java#L67 {noformat} java.lang.Error: Failed to load resources META-INF/services/org.codehaus.groovy.transform.ASTTransformation at hudson.remoting.RemoteClassLoader.findResources(RemoteClassLoader.java:441) at java.lang.ClassLoader.getResources(ClassLoader.java:1185) at java.lang.ClassLoader.getResources(ClassLoader.java:1181) at org.codehaus.groovy.transform.ASTTransformationVisitor.doAddGlobalTransforms(ASTTransformationVisitor.java:194) at org.codehaus.groovy.transform.ASTTransformationVisitor.addGlobalTransforms(ASTTransformationVisitor.java:187) at org.codehaus.groovy.transform.ASTTransformationVisitor.addPhaseOperations(ASTTransformationVisitor.java:150) at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:186) at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:118) at groovy.lang.GroovyClassLoader.createCompilationUnit(GroovyClassLoader.java:476) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:290) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:731) at groovy.lang.GroovyShell.parse(GroovyShell.java:743) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:578) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589) at hudson.util.RemotingDiagnostics$Script.call(RemotingDiagnostics.java:142) at hudson.util.RemotingDiagnostics$Script.call(RemotingDiagnostics.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Failed to write to /mnt/hudson_workspace/.slave-jar-cache/C1/0C4793948699B26CD895B765D03C6A.jar at hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:75) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.remoting.RemoteClassLoader.findResources(RemoteClassLoader.java:437) ... 25 more Caused by: java.io.IOException: Failed to write to /mnt/hudson_workspace/.slave-jar-cache/C1/0C4793948699B26CD895B765D03C6A.jar at hudson.remoting.FileSystemJarCache.retrieve(FileSystemJarCache.java:112) at hudson.remoting.JarCacheSupport$1.run(JarCacheSupport.java:64) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) ... 1 more Caused by: java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createTempFile(File.java:2001) at hudson.remoting.FileSystemJarCache.retrieve(FileSystemJarCache.java:69) ... 5 more {noformat}

    Jenkins JIRA | 4 months ago | Oliver Gondža
    java.lang.Error: Failed to load resources META-INF/services/org.codehaus.groovy.transform.ASTTransformation
  2. 0

    Putting aside the partition is not monitored explicitly by Jenkins, it will not be detected even if it happen to be. My cache is on workspace partition but as there is no more disk space, remoting fails to cache the jar and procedd with any request essentially. This can actually prevent disk space monitor to run and take the slave temporarily offline so it appears up in Jenkins for weeks even though not able to do much of anything. {noformat} Jul 16, 2016 4:02:42 AM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 52667741e0b2a0765f4c585875cef3de java.io.IOException: Failed to write to /mnt/hudson_workspace/.slave-jar-cache/52/667741E0B2A0765F4C585875CEF3DE.jar at hudson.remoting.FileSystemJarCache.retrieve(FileSystemJarCache.java:112) at hudson.remoting.JarCacheSupport$1.run(JarCacheSupport.java:64) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: No space left on device at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createTempFile(File.java:2001) at hudson.remoting.FileSystemJarCache.retrieve(FileSystemJarCache.java:69) ... 5 more {noformat} What makes it worse, the attached cause does not point to _No space left on device_ most of the time (RHEL 7) and report generic _No such file or directory_. This is likely related to JENKINS-36947: when there i no disk space to create the directory _No such file or directory_ is reported. If the directory exists or there is just enough room for empty dir, _No space left on device_ is reported when file is created.

    Jenkins JIRA | 4 months ago | Oliver Gondža
    java.io.IOException: Failed to write to /mnt/hudson_workspace/.slave-jar-cache/52/667741E0B2A0765F4C585875CEF3DE.jar
  3. 0

    Project import/export error messages could be clearer

    GitHub | 3 years ago | jmbogaty
    java.io.IOException: No such file or directory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Deploying hawtio WAR to Tomcat reports this error on startup due GitFacade

    GitHub | 4 years ago | davsclaus
    java.lang.RuntimeException: io.hawt.git.RuntimeIOException: java.io.IOException: No such file or directory
  6. 0

    shows 'java.io.IOException: No such file or directory'

    GitHub | 2 years ago | guofan
    java.io.IOException: No such file or directory

  1. Vladimir Dmie 1 times, last 4 months ago
  2. davidvanlaatum 5 times, last 6 months ago
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    No such file or directory

    at java.io.UnixFileSystem.createFileExclusively()
  2. Java RT
    File.createTempFile
    1. java.io.UnixFileSystem.createFileExclusively(Native Method)
    2. java.io.File.createTempFile(File.java:2001)
    2 frames
  3. Hudson :: Remoting Layer
    JarCacheSupport$1.run
    1. hudson.remoting.FileSystemJarCache.retrieve(FileSystemJarCache.java:69)
    2. hudson.remoting.JarCacheSupport$1.run(JarCacheSupport.java:64)
    2 frames
  4. Java RT
    FutureTask.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    2 frames
  5. Hudson :: Remoting Layer
    AtmostOneThreadExecutor$Worker.run
    1. hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
    1 frame
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame