Selenium driver fails to start WebDriver session for non-root user with Firefox -


i have gocd (thoughtworks) agent running end-to-end tests using selenium , protractor on dedicated server through grunt automated task headless firefox on xvfb.

if run task root (mind files , folders on directory owned go user), runs fine.

if run task go user (which 1 runs automated tests), following error:

16:37:42.357 running "protractor:ci" (protractor) task 16:37:42.573 starting selenium standalone server... 16:37:42.581 [launcher] running 1 instances of webdriver 16:37:43.194 selenium standalone server started @ http://xx.xx.xx.54:48234/wd/hub 16:37:45.385 error - unable start webdriver session. 16:37:45.393  16:37:45.394 /var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113 16:37:45.394   var template = new error(this.message); 16:37:45.394                  ^ 16:37:45.394 unknownerror: bad request 16:37:45.394 command duration or timeout: 166 milliseconds 16:37:45.394 build info: version: '2.47.0', revision: '0e4837e', time: '2015-07-29 22:56:05' 16:37:45.394 system info: host: 'myhostname', ip: 'xx.xx.xx.54', os.name: 'linux', os.arch: 'amd64', os.version: '3.14.32-xxxx-grs-ipv6-64', java.version: '1.7.0_95' 16:37:45.394 driver info: org.openqa.selenium.firefox.firefoxdriver 16:37:45.394     @ new bot.error (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113:18) 16:37:45.394     @ object.bot.response.checkresponse (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/response.js:106:9) 16:37:45.394     @ /var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:152:24 16:37:45.394     @ /var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1582:15 16:37:45.394     @ [object object].webdriver.promise.controlflow.runinnewframe_ (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1654:20) 16:37:45.394     @ notify (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:465:12) 16:37:45.394     @ notifyall (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:442:7) 16:37:45.394     @ resolve (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:420:7) 16:37:45.394     @ fulfill (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:535:5) 16:37:45.394     @ /var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1582:15 16:37:45.394 ==== async task ==== 16:37:45.394 webdriver.createsession() 16:37:45.395     @ function.webdriver.webdriver.acquiresession_ (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:149:22) 16:37:45.395     @ function.webdriver.webdriver.createsession (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:123:30) 16:37:45.395     @ builder.build (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/builder.js:294:22) 16:37:45.395     @ driverprovider.getnewdriver (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/lib/driverproviders/driverprovider.js:38:7) 16:37:45.395     @ runner.createbrowser (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/lib/runner.js:180:37) 16:37:45.395     @ /var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/lib/runner.js:257:21 16:37:45.395     @ _fulfilled (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/q/q.js:797:54) 16:37:45.395     @ self.promisedispatch.done (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/q/q.js:826:30) 16:37:45.395     @ promise.promise.promisedispatch (/var/lib/go-agent/pipelines/development/e2e_tests/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/q/q.js:759:13) 16:37:45.395 [launcher] process exited error code 1 16:37:45.397 >>  16:37:45.397 fatal error: protractor exited code: 1 16:37:45.414 [go] current job status: failed. 

what preventing go user starting server?

thanks feedback, best regards,

rafa.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -