protractor: Error forwarding the new session Empty pool of VM for setup Capabi lities [{count=1, browserName=chrome}]

Server runs fine: getting response in the Chrome when navigated to the http://localhost:4444/wd/hub

However when trying to run conf.js: exports.config = { seleniumAddress: ‘http://localhost:4444/wd/hub’, specs: [‘integration/buildingCodes/buildingCodesTest.js’] } getting the exception below:

node_modules\protractor\bin>node protractor std\winplatform\platform8\engineandcloud\trunk\Axon\Axon.Portal\UnitTests\conf.j s Using the selenium server at http://localhost:4444/wd/hub

node_modules\protractor\node_modules\selenium-webdriver\lib\at oms\error.js:109 var template = new Error(this.message); ^ UnknownError: Error forwarding the new session Empty pool of VM for setup Capabi lities [{count=1, browserName=chrome}] at new bot.Error (node_modules\protractor\node_modules\sel enium-webdriver\lib\atoms\error.js:109:18) at Object.bot.response.checkResponse (node_modules\protrac tor\node_modules\selenium-webdriver\lib\atoms\response.js:106:9) at node_modules\protractor\node_modules\selenium-webdriver \lib\webdriver\webdriver.js:134:24 at node_modules\protractor\node_modules\selenium-webdriver \lib\goog\base.js:1243:15 at webdriver.promise.ControlFlow.runInNewFrame_ (node_modu les\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:1539:20)

at notify (node_modules\protractor\node_modules\selenium-w

ebdriver\lib\webdriver\promise.js:362:12) at notifyAll (node_modules\protractor\node_modules\seleniu m-webdriver\lib\webdriver\promise.js:331:7) at resolve (node_modules\protractor\node_modules\selenium- webdriver\lib\webdriver\promise.js:309:7) at fulfill (node_modules\protractor\node_modules\selenium- webdriver\lib\webdriver\promise.js:429:5) at node_modules\protractor\node_modules\selenium-webdriver \lib\goog\base.js:1243:15 ==== async task ==== WebDriver.createSession() at Function.webdriver.WebDriver.acquireSession_ (node_modu les\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:131:49 ) at Function.webdriver.WebDriver.createSession (node_module s\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:111:30) at Builder.build (node_modules\protractor\node_modules\sel enium-webdriver\builder.js:106:20) at HostedDriverProvider.getDriver (node_modules\protractor \lib\driverProviders\hosted.js:54:9) at node_modules\protractor\lib\runner.js:221:35 at _fulfilled (node_modules\protractor\node_modules\q\q.js :797:54) at self.promiseDispatch.done (node_modules\protractor\node _modules\q\q.js:826:30) at Promise.promise.promiseDispatch (node_modules\protracto r\node_modules\q\q.js:759:13) at node_modules\protractor\node_modules\q\q.js:525:49

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 16 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Ah! You don’t want that -role hub part. Get rid of it and try again.

After some more investigation, i found this info.

That exception “Error forwarding the new session Empty pool of VM” means that your Selenium Grid doesn’t have any node available with a browser that has the desired capabilities.

If you’re running Selenium Grid as a hub on your machine (-role hub) make sure that at least one node which provides the desired browser is connected to that hub. Check out http://localhost:4444/grid/console to see whether any nodes are connected to your hub.