{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/845","labels_url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/845/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/845/comments","events_url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/845/events","html_url":"https://github.com/thoughtbot/capybara-webkit/issues/845","id":109151135,"number":845,"title":"Capybara::Webkit::ConnectionError occurs intermittently","user":{"login":"tmertens","id":2243386,"avatar_url":"https://avatars.githubusercontent.com/u/2243386?v=3","gravatar_id":"","url":"https://api.github.com/users/tmertens","html_url":"https://github.com/tmertens","followers_url":"https://api.github.com/users/tmertens/followers","following_url":"https://api.github.com/users/tmertens/following{/other_user}","gists_url":"https://api.github.com/users/tmertens/gists{/gist_id}","starred_url":"https://api.github.com/users/tmertens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmertens/subscriptions","organizations_url":"https://api.github.com/users/tmertens/orgs","repos_url":"https://api.github.com/users/tmertens/repos","events_url":"https://api.github.com/users/tmertens/events{/privacy}","received_events_url":"https://api.github.com/users/tmertens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-30T18:25:32Z","updated_at":"2016-02-01T20:41:22Z","closed_at":null,"body":"We see intermittent failures due to `Capybara::Webkit::ConnectionError` (see stack trace below) in our CI environment (Solano).  It happens around 1:10 builds which is more like 1:160 or higher executions of rspec, since each build is split across 16 workers.  But, since it ultimately results in as much as 10% of our builds failing it's a fairly high visible issue for us.\r\n\r\nI benchmarked `discover_port` locally to see if it was just hitting close to the timeout but it was very fast: `0.000000   0.000000   0.000000 (  0.096527)`, so it's unclear why this would be timing out at all in CI.  I'm wondering if anyone can give insight into this issue and why it would hit the timeout if normal execution time is so fast?\r\n\r\n```\r\n     Failure/Error: Unable to find matching line from backtrace\r\n     Capybara::Webkit::ConnectionError:\r\n       /mnt/home/u5196/bundle/ruby/2.2.0/gems/capybara-webkit-1.7.0/bin/webkit_server failed to start after 15 seconds.\r\n     # /mnt/home/u5196/bundle/ruby/2.2.0/gems/capybara-webkit-1.7.0/lib/capybara/webkit/connection.rb:95:in `discover_port'\r\n     # /mnt/home/u5196/bundle/ruby/2.2.0/gems/capybara-webkit-1.7.0/lib/capybara/webkit/connection.rb:74:in `start_server'\r\n     # /mnt/home/u5196/bundle/ruby/2.2.0/gems/capybara-webkit-1.7.0/lib/capybara/webkit/connection.rb:31:in `initialize'\r\n     # /mnt/home/u5196/bundle/ruby/2.2.0/gems/capybara-webkit-1.7.0/lib/capybara/webkit/driver.rb:14:in `new'"},"comment":{"url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/comments/178178564","html_url":"https://github.com/thoughtbot/capybara-webkit/issues/845#issuecomment-178178564","issue_url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/845","id":178178564,"user":{"login":"iqnivek","id":396006,"avatar_url":"https://avatars.githubusercontent.com/u/396006?v=3","gravatar_id":"","url":"https://api.github.com/users/iqnivek","html_url":"https://github.com/iqnivek","followers_url":"https://api.github.com/users/iqnivek/followers","following_url":"https://api.github.com/users/iqnivek/following{/other_user}","gists_url":"https://api.github.com/users/iqnivek/gists{/gist_id}","starred_url":"https://api.github.com/users/iqnivek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iqnivek/subscriptions","organizations_url":"https://api.github.com/users/iqnivek/orgs","repos_url":"https://api.github.com/users/iqnivek/repos","events_url":"https://api.github.com/users/iqnivek/events{/privacy}","received_events_url":"https://api.github.com/users/iqnivek/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T20:41:22Z","updated_at":"2016-02-01T20:41:22Z","body":"Solano troubleshooting docs indicate that it could have something to do with the thin webserver: http://docs.solanolabs.com/HandlingFailures/browser-based-integration-tests/#capybara-hangs-when-using-capybara-webkit. I'll try using webrick to see if that changes anything."}}