www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Munteanu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-8406) Install Xvfb plugin on Jenkins
Date Tue, 07 Oct 2014 08:55:34 GMT

    [ https://issues.apache.org/jira/browse/INFRA-8406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14161654#comment-14161654
] 

Robert Munteanu commented on INFRA-8406:
----------------------------------------

Thanks [~abayer] , the build now starts. However, it seems that more libraries are missing,
at least on H11 ( see below ). Should I report a new issue, or should I wait for the slave
rebuild?

{noformat}java.io.IOException: Remote call on Channel to Maven [/home/jenkins/tools/java/latest1.6/bin/java,
-XX:MaxPermSize=512m, -cp, /home/jenkins/jenkins-slave/maven3-agent.jar:/home/jenkins/jenkins-slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.0.5/boot/plexus-classworlds-2.4.jar,
org.jvnet.hudson.maven3.agent.Maven3Main, /home/jenkins/jenkins-slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.0.5,
/home/jenkins/jenkins-slave/slave.jar, /home/jenkins/jenkins-slave/maven3-interceptor.jar,
/home/jenkins/jenkins-slave/maven3-interceptor-commons.jar, 52920] failed
	at hudson.remoting.Channel.call(Channel.java:731)
	at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:160)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:843)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
	at hudson.model.Run.execute(Run.java:1676)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:231)
Caused by: java.lang.UnsatisfiedLinkError: /home/jenkins/tools/java/jdk1.6.0_45-32/jre/lib/i386/xawt/libmawt.so:
libXext.so.6: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
	at java.lang.Runtime.load0(Runtime.java:770)
	at java.lang.System.load(System.java:1003)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
	at java.lang.Runtime.loadLibrary0(Runtime.java:823)
	at java.lang.System.loadLibrary(System.java:1028)
	at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Toolkit.loadLibraries(Toolkit.java:1605)
	at java.awt.Toolkit.<clinit>(Toolkit.java:1627)
	at java.awt.Color.<clinit>(Color.java:263)
	at hudson.util.ColorPalette.<clinit>(ColorPalette.java:39)
	at hudson.model.BallColor.<clinit>(BallColor.java:56)
	at hudson.model.Result.<clinit>(Result.java:51)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:171)
	at com.sun.proxy.$Proxy7.<clinit>(Unknown Source)
	at sun.reflect.GeneratedSerializationConstructorAccessor44.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:919)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1759)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1969)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1775)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
	at java.util.HashMap.readObject(HashMap.java:1030)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1775)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1969)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1775)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
	at hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
	at hudson.remoting.UserRequest.perform(UserRequest.java:98)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:328)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:662)
Finished: FAILURE{noformat}

> Install Xvfb plugin on Jenkins
> ------------------------------
>
>                 Key: INFRA-8406
>                 URL: https://issues.apache.org/jira/browse/INFRA-8406
>             Project: Infrastructure
>          Issue Type: Wish
>          Components: Jenkins
>            Reporter: Robert Munteanu
>            Assignee: Andrew Bayer
>
> For the Sling IDE Tooling we're running Eclipse-based tests, which require a graphical
environment to run. The build fails with an error like
> !ENTRY org.eclipse.osgi 4 0 2014-09-30 07:49:39.001
> !MESSAGE Application error
> !STACK 1
> org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
> 	at org.eclipse.swt.SWT.error(SWT.java:4423)
> 	at org.eclipse.swt.widgets.Display.createDisplay(Display.java:925)
> 	at org.eclipse.swt.widgets.Display.create(Display.java:909)
> 	at org.eclipse.swt.graphics.Device.<init>(Device.java:156)
> 	at org.eclipse.swt.widgets.Display.<init>(Display.java:507)
> 	at org.eclipse.swt.widgets.Display.<init>(Display.java:498)
> 	at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)
> 	at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
> 	at org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31)
> 	at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:115)
> 	at org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
> Typically, this is done using Xvnc or Xvfb. I noticed that Xvfb is already installed
on the slaves, so I tried to configure our Maven job to take advantage of it. However, I can't
seem to propagate the DISPLAY variable to the Maven build. My configuration changes were
> 1. Add a shell pre-build step: Xvfb :8 -ac -screen 0 1024x768x8 &
> 2. Add a shell pre-build step: export DISPLAY=:8.0
> 3. Add a shell post-build: pkill Xvfb
> However, the shell variable from step 2 does not seem to be picked up by the Maven process.
> What I've used in the future was the Xvfb plugin [1], which worked nicely. And this would
also help prevent conflicts with other jobs on the same slave which use Xvfb.
> [1]: https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message