nosetests: cannot connect to X server
My tcp connection is enabled, when I run netstat -nal | grep 6000 the output is:
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp6 0 0 :::6000 :::* LISTEN
and also in terminal I typed:
xhost localhost
I don't Know what should i do, please help me.
Thanks
nosetests: cannot connect to X server
I'm not using Xvnc plugin.

Starting xvnc
[workspace] $ vncserver :52 -localhost -nolisten tcp
FATAL: Cannot run program "vncserver" (in directory "/var/lib/jenkins/jobs/Python-test-poc/workspace"): java.io.IOException: error=2, No such file or directory
java.io.IOException: Cannot run program "vncserver" (in directory "/var/lib/jenkins/jobs/Python-test-poc/workspace"): java.io.IOException: error=2, No such file or directory
and some else.--
FATAL: Cannot run program "vncserver"
--
Actually I didn't install vncserver on the machine that can run the test.I'm new in jenkins and need your help.
--
I think you probably want to discover why your build is hanging. That might be simplest to do if you connect to the x server the job is using and look for any windows which may be open on the screen. From my Windows computer, I connect to the x server with ultraVNC.
If that doesn't work for you, then you could try increasing the amount of logging done by your build so that it will better show you exactly which step is hanging. If that doesn't help, you could check with the previous person who ran the build to understand the specific details of the build.
Mark Waite
Hi,Although i read your useful training but I can't still run my tests, so I go to /var/lib/jenkins/jobs/My-job in terminal to test if all things working well.then I run "nosetests -v"
it has some errror that I think they don't allow build my job, the errors are:
(process:4928): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
(process:4928): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
(process:4928): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
QGtkStyle was unable to detect the current GTK+ theme.
Qt: Session management error: None of the authentication protocols specified are supported
ERRORI also should say unfortunately I'm new in debian and jenkins. I try and searched a lot but with no success.