Dr. No
Dr. No

Reputation: 1336

Jenkins can't connect to window server - not enough permissions

I've just installed at local a Jenkins server in order to execute some tests using Selenium Webdriver.

When I execute the tests, the initial steps are executing well (maven calls, access to repo,...) but when the first selenium step have to be executed, I get this error:

(java.lang.InternalError: Can't connect to window server - not enough permissions.)

What permissions are refered?

I'm executing from my main user in my computer in a MacOSX. I've looked information in jenkins site and google, but I can get anything.

Upvotes: 5

Views: 5622

Answers (2)

plsgogame
plsgogame

Reputation: 1344

Add JVM options -Djava.awt.headless=true

On the instance I use, the "JVM Options" field is only visible from the "Advanced..." button under the Launch Method sub-heading.

Upvotes: 10

Alex Nelson
Alex Nelson

Reputation: 1252

Have you tried adding a different JDK to your box and using that for your build? I had a similar issue with a Jenkins build job on my mac and was able to correct it: Jenkins build failed on OSX

Upvotes: 1

Related Questions