Error opening security policy file when running webdriver tests in headless mode on debian lenny box

377 views
Skip to first unread message

Rivlin Pereira

unread,
Nov 21, 2011, 4:35:18 PM11/21/11
to webdriver
Hi All,

I am using jenkins to run webdriver tests headless on a debian lenny
box and I am getting this error. Also i dont have a xserver directory
as the error points out. Any help on this would be greatly
appreciated.

Mon Nov 21 15:08:58 2011
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5939
vncext: created VNC server for screen 0
error opening security policy file /etc/X11/xserver/SecurityPolicy
Could not init font path element /usr/share/fonts/X11/Speedo/,
removing from list!
Could not init font path element /usr/share/fonts/X11/CID/, removing
from list!
Could not init font path element /usr/share/fonts/X11/75dpi/, removing
from list!
Could not init font path element /usr/share/fonts/X11/100dpi/,
removing from list!
Buildfile: build.xml

Thanks,
Rivlin

Rivlin Pereira

unread,
Nov 23, 2011, 12:03:25 AM11/23/11
to webd...@googlegroups.com
Hi All,

I forgot to mention that I use the xvnc plugin in jenkins. After getting past the above error now i am getting this error -
No emails were triggered.
Starting xvnc
[workspace] $ vncserver :50

You will require a password to access your desktops.

getpassword error: Invalid argument
Password:Starting xvnc
[workspace] $ vncserver :51

You will require a password to access your desktops.

getpassword error: Invalid argument
Password:Starting xvnc
[workspace] $ vncserver :52

You will require a password to access your desktops.

getpassword error: Invalid argument
Password:Starting xvnc
[workspace] $ vncserver :53

You will require a password to access your desktops.

getpassword error: Invalid argument
Password:FATAL: Failed to run 'vncserver :53' (exit code 1), blacklisting display #53; consider checking the "Clean up before start" option
java.io.IOException: Failed to run 'vncserver :53' (exit code 1), blacklisting display #53; consider checking the "Clean up before start" option
	at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:100)
	at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98)
	at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98)
	at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98)
	at hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:73)
	at hudson.model.Build$RunnerImpl.doRun(Build.java:133)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:459)
	at hudson.model.Run.run(Run.java:1389)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:230)

I did set the password for the first time but still its giving me the same error.

Rivlin Pereira

unread,
Nov 23, 2011, 9:06:10 AM11/23/11
to webd...@googlegroups.com
Hi All,

If anyone is running webdriver tests using jenkins on debian lenny I wanted to know what you guys have set in xstartup file found at home/username/.vnc/xstartup

my file looks like this -

#!/bin/sh

# Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

I get error in log when i start vncserver that command twn not found and password required error when i run my test using jenkins on debian lenny.

Any help on this would be greatly appreciated




--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/4EcsqcB2xgIJ.

To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

Rivlin Pereira

unread,
Nov 28, 2011, 5:12:07 PM11/28/11
to webd...@googlegroups.com
Hi All,

I am still getting this error -

At revision 17
no revision recorded for svn+ssh://svn.xxxxxxxx.com/svn/qa/xxxxxx-xxxxxxx in the previous build
No emails were triggered.
$ pkill Xvnc
pkill: 30088 - Operation not permitted
$ pkill Xrealvnc
$ sh -c "rm -f /tmp/.X*-lock /tmp/.X11-unix/X*"
rm: cannot remove `/tmp/.X15-lock': Operation not permitted
rm: cannot remove `/tmp/.X19-lock': Operation not permitted
rm: cannot remove `/tmp/.X5-lock': Operation not permitted
rm: cannot remove `/tmp/.X11-unix/X0': Operation not permitted
rm: cannot remove `/tmp/.X11-unix/X15': Operation not permitted
rm: cannot remove `/tmp/.X11-unix/X19': Operation not permitted
rm: cannot remove `/tmp/.X11-unix/X5': Operation not permitted
Starting xvnc
[workspace] $ sh -c "USER=xxxxxx HOME=/var/lib/jenkins vncserver :0 -geometry 1024x768 -depth 16"
[core-publisher] $ ant test makexsltreports

You will require a password to access your desktops.

getpassword error: Invalid argument
Password:Buildfile: build.xml

compile:
     [echo] compiling tests

test:
     [echo] running tests
   [testng] [TestNG] Running:
   [testng]   /var/lib/jenkins/jobs/xxxx-xxxxx-xxxxxx/workspace/xxxx-xxxxx/testng.xml
   [testng] 
   [testng] org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
   [testng] Error: cannot open display: :0


I am passing this on the command line for the xvnc plugin that i am using with jenkins -
sh -c "USER=xxxxxx HOME=/var/lib/jenkins vncserver :0 -geometry 1024x768 -depth 16

Still it is giving me error saying
Reply all
Reply to author
Forward
0 new messages