Headless gem: webkit_server: cannot connect to X server

Posted by 23tux on Stack Overflow See other posts from Stack Overflow or by 23tux
Published on 2012-07-12T09:27:49Z Indexed on 2012/08/30 21:38 UTC
Read the original article Hit count: 342

I've got some problems running capybara-webkit with the Headless gem, Xvfb and our ci server. We use this setup for automatic integration testing and javascript testing of our Ruby on Rails 3.2 app. During the tests it complains that

webkit_server: cannot connect to X server

But when I ps aux | grep Xvfb

deploy    1602  0.0  0.1  61696  1912 pts/2    S+   Jul10   0:00 /usr/bin/Xvfb :99 -screen 0 1280x1024x24 -ac

I see the Xvfb running. If I run the tests with --trace it also only shows the error log above and I can't debug the error.

Any ideas how I could get some more information, or even a solution?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby