zregvart commented on Improvement JENKINS-21548

Richard, thanks the detailed steps needed to reproduce this. I'm getting more or less the same output on my test setup but unlike in your case the build fails. This is what I got:

Building remotely on ubuntu
Xvfb starting$ /usr/bin/Xvfb :1111 -screen 0 1024x768x24 -fbdir /tmp/jenkins/2014-02-03_20-51-241837796366101415022xvfb
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE) 
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) 
unlink: No such file or directory
unlink  failed, Invalid argument
ERROR: Xvfb failed to start, consult the lines above for errors
Finished: FAILURE

I'm running this slave on Ubuntu 13.10 with Xvfb from x.org/freedesktop.org version 1.14.3.

I did notice that your last console log does not contain the "ERROR: Xvfb failed to start, consult the lines above for errors" line, was it missing from the output?

The way the plugin checks if Xvfb started successfully is to see if the Xvfb process is alive, it could be that in your case there is a race condition between this check and the Xvfb terminating. To help with these situations you have an option to set the timeout value (the "Timeout in seconds" option in the advanced settings), where 0 is no timeout. Try setting timeout to 1 or 2 seconds and see if the launch failure of Xvfb is properly detected.

Another alternative would be to let Xvfb choose its own display number, the way it does this is to try and find a free port to listen on, so it would not start on the same port as another X server.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to