Jenkins xvfb plugin issue: No display name received from Xvfb within 10 seconds

1,003 views
Skip to first unread message

Pooja Shah

unread,
Jul 18, 2014, 3:07:53 AM7/18/14
to jenkins...@googlegroups.com
Hi Team,
I'm facing an issue while configuring xvfb plugin, somehow its not finding my display name
Have added it in

1. job->configure->Xvfb specific display name --> 99
2. in Pre steps-> Execute shell--> export DISPLAY=:99
3. in manage jenkins-> manage nodes-> master-> configure-> added env variable name ="DISPLAY" value=":99"
4. added xvfb configuration directory

Is there anything I'm missing in configuration?
Here is the log:
Xvfb starting$ /usr/bin/X11/Xvfb -displayfd 2 -screen 0 1024x768x24 -fbdir /var/lib/jenkins/2014-07-18_11-51-132622983017347894755xvfb
ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
java.lang.IllegalStateException: No display name received from Xvfb within 10 seconds
	at org.jenkinsci.plugins.xvfb.AutoDisplayNameFilterStream.getDisplayNumber(AutoDisplayNameFilterStream.java:43)
	at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.launchXvfb(XvfbBuildWrapper.java:547)
	at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.setUp(XvfbBuildWrapper.java:594)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:653)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535)
	at hudson.model.Run.execute(Run.java:1732)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:234)
project=hudson.maven.MavenModuleSet@1352dbf[Trail-Web]
project.getModules()=[hudson.maven.MavenModule@1abe075[Trail-Web/Project:Project][Trail-Web/Project:Project][relativePath:Project]]
project.getRootModule()=hudson.maven.MavenModule@1abe075[Trail-Web/Project:Project][Trail-Web/Project:Project][relativePath:Project]
FATAL: No display name received from Xvfb within 10 seconds
java.lang.IllegalStateException: No display name received from Xvfb within 10 seconds
	at org.jenkinsci.plugins.xvfb.AutoDisplayNameFilterStream.getDisplayNumber(AutoDisplayNameFilterStream.java:43)
	at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.launchXvfb(XvfbBuildWrapper.java:547)
	at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.setUp(XvfbBuildWrapper.java:594)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:653)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535)
	at hudson.model.Run.execute(Run.java:1732)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:234)


It should some simple thing which I'm missing but didn't find any solution anywhere, Please suggest!
Regards,
pooja

Robert Mitwicki

unread,
Jul 21, 2015, 2:14:01 AM7/21/15
to jenkins...@googlegroups.com

Xvfb starting$ /usr/bin/X11/Xvfb -displayfd 2 -screen 0 1024x768x24 -fbdir /var/lib/jenkins/2014-07-18_11-51-132622983017347894755xvfb

Try to run it  directly on the server, then you should get some more verbose output. One of the common problem which can cause that error is for example missing libXfont package.
Or you can try to turn on option: "Log Xvfb output" in jenkins to get some more info.

Best regards
robert
Reply all
Reply to author
Forward
0 new messages