Jenkins EC2 issue

44 views
Skip to first unread message

j.smol...@exmachina.nl

unread,
May 8, 2015, 4:47:17 AM5/8/15
to jenkins...@googlegroups.com
I'm using Jenkins 1.612 with version 1.27 of the ec2 plugin. The slaves are based on Ubuntu Trusty.

On a certain fraction of slaves, all builds fail with below error. On other slaves, there is never a problem. This seems to be an issue with the bootstrapping process.

Does anyone have any ideas on how to solve this?

ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com
java.lang.IllegalArgumentException: /mnt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven doesn't have a 'lib' subdirectory - thus cannot be a valid maven installation!
	at hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:83)
	at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:188)
	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:70)
	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:42)
	at hudson.remoting.UserRequest.perform(UserRequest.java:121)
	at hudson.remoting.UserRequest.perform(UserRequest.java:49)
	at hudson.remoting.Request$2.run(Request.java:325)
	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)
	at ......remote call to EC2 Build Slave (i-d2b75378)(Native Method)
	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1361)
	at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
	at hudson.remoting.Channel.call(Channel.java:753)
	at hudson.FilePath.act(FilePath.java:1075)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:629)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
	at hudson.model.Run.execute(Run.java:1744)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:374)
project=hudson.maven.MavenModuleSet@16e1b652[exmachina-util-web_default]
project.getModules()=[]
project.getRootModule()=null
FATAL: /mnt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven doesn't have a 'lib' subdirectory - thus cannot be a valid maven installation!
java.lang.IllegalArgumentException: /mnt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven doesn't have a 'lib' subdirectory - thus cannot be a valid maven installation!
	at hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:83)
	at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:188)
	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:70)
	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:42)
	at hudson.remoting.UserRequest.perform(UserRequest.java:121)
	at hudson.remoting.UserRequest.perform(UserRequest.java:49)
	at hudson.remoting.Request$2.run(Request.java:325)
	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)
	at ......remote call to EC2 Build Slave (i-d2b75378)(Native Method)
	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1361)
	at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
	at hudson.remoting.Channel.call(Channel.java:753)
	at hudson.FilePath.act(FilePath.java:1075)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:629)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
	at hudson.model.Run.execute(Run.java:1744)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:374)
Finished: FAILURE
Reply all
Reply to author
Forward
0 new messages