Ar eyou using the xvfb plugin for jenkins as well ?

IIRC, someone made it work with xvfb plugin, I'd hav eto search my IRC
logs, but we debugged one case where jenkins selenium was used with xvfb
jenkins...

Maybe it would be just a matter of setting the DISPLAY variable so xvfb can
set that up on the machine...

Just a thought as I didn't use it myself, in the end iirc it was only a
matter of driver problems or something like that ... I'll check if I can't
find the logs.

Richard

On Mon, Feb 6, 2012 at 6:33 PM, Michael Higgins <mhigg...@puppetlabs.com>wrote:

> On Mon, 6 Feb 2012 16:33:42 -0500
> Richard Lavoie <lavoie.rich...@gmail.com> wrote:
>
> > If you are using ssh -Y to redirect the display, then it's not
> > surprising that it doesn't work with jenkins standalone.  Since the
> > jenkins process doesn't know where to redirect the display, the
> > launch of the browser will likely to fail.  You need an X server or
> > something to handle the graphical part to launch the different
> > browsers. doing ssh -Y solves the problem because the session handles
> > the redirection through your ssh connection which is not the case
> > through jenkins.
> >
>
> Ah. I thought having xvfb installed was enough. Just installed
> xorg-server, restarted Jenkins. Same errors... but this was spammed to
> the open terminal when I ran the jenkins job:
>
> X11 connection rejected because of wrong authentication."
>
> So I logged into the machine, ssh -Y jenkins@machine, which created a
> new .Xauthority file. Then I ran the test in Jenkins. A browser came up
> IN MY LOCAL MACHINE, and the test (finally) passes.
>
> That can't be right, no?
>
> So now what?
>
> X :0
> X: user not authorized to run the X server, aborting.
>
> Ah. dpkg-reconfigure x11-common allow for 'anybody'
>
> Restart Jenkins.
>
> Still no joy.
>
> [ more time passes ]
>
> So, what *seems* to work is this:
>
>  cat .profile
> [ -e /tmp/.X100-lock ] &&  rm -f /tmp/.X100-lock
> Xvfb :100 -ac 2>/dev/null &
> export DISPLAY=:100.0
>
> ... in my $JENKINS_HOME
>
> HTH someone else.
>
> Thanks Richard for your thoughtful replies.
>
> Cheers,
>
> --
> Michael Higgins
> QA Intern, PuppetLabs
> mhigg...@puppetlabs.com
>



-- 
Richard Lavoie
IT consultant / consultant en informatique

Reply via email to