[JIRA] (JENKINS-36947) Failed to write into slave jar cache

50 views
Skip to first unread message

ogondza@gmail.com (JIRA)

unread,
Jul 26, 2016, 6:40:03 AM7/26/16
to jenkinsc...@googlegroups.com
Oliver Gondža created an issue
 
Jenkins / Bug JENKINS-36947
Failed to write into slave jar cache
Issue Type: Bug Bug
Assignee: Unassigned
Components: remoting
Created: 2016/Jul/26 10:39 AM
Priority: Major Major
Reporter: Oliver Gondža

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

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
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

ogondza@gmail.com (JIRA)

unread,
Jul 27, 2016, 8:10:01 AM7/27/16
to jenkinsc...@googlegroups.com
Oliver Gondža started work on Bug JENKINS-36947
 
Change By: Oliver Gondža
Status: Open In Progress

scm_issue_link@java.net (JIRA)

unread,
Aug 5, 2016, 4:23:02 AM8/5/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-36947
 
Re: Failed to write into slave jar cache

Code changed in jenkins
User: Oliver Gondža
Path:
pom.xml
src/main/java/hudson/remoting/FileSystemJarCache.java
src/main/java/hudson/remoting/InitializeJarCacheMain.java
src/main/java/hudson/remoting/Util.java
src/test/java/hudson/remoting/FileSystemJarCacheTest.java
src/test/java/hudson/remoting/UtilTest.java
http://jenkins-ci.org/commit/remoting/62aad35f64c46d0c41a5d464ccba8c78b784f9d7
Log:
Improve diagnostics for JarCache write errors (JENKINS-36947) (#91)

Improve diagnostics for JarCache write errors (related to JENKINS-36947)

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 6, 2017, 4:34:01 AM3/6/17
to jenkinsc...@googlegroups.com

Oliver Gondža I suppose it's a diagnostics issue, and JENKINS-37057 represents the real cause. Right?

This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

ogondza@gmail.com (JIRA)

unread,
Mar 6, 2017, 4:45:01 AM3/6/17
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 6, 2017, 4:49:01 AM3/6/17
to jenkinsc...@googlegroups.com

So this one can be closed, I suppose

ogondza@gmail.com (JIRA)

unread,
Mar 6, 2017, 5:05:02 AM3/6/17
to jenkinsc...@googlegroups.com

Yes, we will fix the causes as they appear.

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 6, 2017, 5:55:02 AM3/6/17
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
 
Jenkins / Improvement JENKINS-36947
Change By: Oleg Nenashev
Issue Type: Bug Improvement
Reply all
Reply to author
Forward
0 new messages