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 jenkinsci-us...@googlegroups.comjava.lang.IllegalArgumentException <http://stacktrace.jenkins-ci.org/search?query=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) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenEmbedderUtils.buildClassRealm&entity=method> > at > hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:188) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenEmbedderUtils.getMavenVersion&entity=method> > at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:70) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenVersionCallable.call&entity=method> > at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:42) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenVersionCallable.call&entity=method> > at hudson.remoting.UserRequest.perform(UserRequest.java:121) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method> > at hudson.remoting.UserRequest.perform(UserRequest.java:49) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method> > at hudson.remoting.Request$2.run(Request.java:325) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.run&entity=method> > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) > > <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.call&entity=method> > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method> > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > > <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker&entity=method> > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > > <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method> > at java.lang.Thread.run(Thread.java:745) > <http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method> > 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 > <http://stacktrace.jenkins-ci.org/search?query=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) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenEmbedderUtils.buildClassRealm&entity=method> > at > hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:188) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenEmbedderUtils.getMavenVersion&entity=method> > at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:70) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenVersionCallable.call&entity=method> > at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:42) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenVersionCallable.call&entity=method> > at hudson.remoting.UserRequest.perform(UserRequest.java:121) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method> > at hudson.remoting.UserRequest.perform(UserRequest.java:49) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method> > at hudson.remoting.Request$2.run(Request.java:325) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.run&entity=method> > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) > > <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.call&entity=method> > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method> > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > > <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker&entity=method> > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > > <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method> > at java.lang.Thread.run(Thread.java:745) > <http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method> > 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 > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0672146b-9373-4ae4-b16b-f47dbefd426d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
