Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-2388

Investigate FirefoxDriver issue on docker slaves during integration tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Continuous Integration

      Description

      When running on slaves with the label SALVEPRIV&&DYNAMIC, some jobs using webdriver on firefox 42 are failing with the following error :

      00:02:36.127 [INFO]      [exec] org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host localhost on port 7055 after 45000 ms. Firefox console output:
      00:02:36.127 [INFO]      [exec] 625392775431636webdriver-profile/extensions/firebug@software.joehewitt.com","e":false,"v":"1.6.2","st":1531241321000,"mt":1531241321000},"fxdriver@googlecode.com":{"d":"/tmp/anonymous6430625392775431636webdriver-profile/extensions/fxdriver@googlecode.com","e":false,"v":"2.39.0","st":1531241321000,"mt":1531241321000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/opt/build/tools/firefox-42/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"42.0","st":1446160646000,"mt":1446160646000}}}
      ...
      00:02:36.131 [INFO]      [exec] (firefox:1267): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
      00:02:36.131 [INFO]      [exec] /usr/bin/dbus-launch terminated abnormally without any error message
      00:02:36.131 [INFO]      [exec] 	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
      00:02:36.131 [INFO]      [exec] 	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:250)
      00:02:36.131 [INFO]      [exec] 	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
      00:02:36.131 [INFO]      [exec] 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:195)
      00:02:36.131 [INFO]      [exec] 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190)
      00:02:36.131 [INFO]      [exec] 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:107)
      00:02:36.131 [INFO]      [exec] 	at org.nuxeo.functionaltests593.AbstractTest.initFirefoxDriver(AbstractTest.java:307)
      00:02:36.131 [INFO]      [exec] 	at org.nuxeo.functionaltests593.AbstractTest.initDriver(AbstractTest.java:198)
      00:02:36.131 [INFO]      [exec] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      00:02:36.131 [INFO]      [exec] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      00:02:36.131 [INFO]      [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      00:02:36.131 [INFO]      [exec] 	at java.lang.reflect.Method.invoke(Method.java:606)
      00:02:36.131 [INFO]      [exec] 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      00:02:36.131 [INFO]      [exec] 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      00:02:36.132 [INFO]      [exec] 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      00:02:36.132 [INFO]      [exec] 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
      00:02:36.132 [INFO]      [exec] 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      00:02:36.132 [INFO]      [exec] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      00:02:36.132 [INFO]      [exec] 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      00:02:36.132 [INFO]      [exec] 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      00:02:36.132 [INFO]      [exec] 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      00:02:36.132 [INFO]      [exec] 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      00:02:36.132 [INFO]      [exec] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      00:02:36.132 [INFO]      [exec] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      

      see https://qa.nuxeo.org/jenkins/job/Private/job/NOS/view/E-master/job/nos-app-studio-master-itests-5.6/352/console

      Investigation has shown that this is due to the missing dbus-x11 apt package, but installing this package seems not to be enough to resolve the problem, the tests still failed with a different error :

      [INFO]      [exec] org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
      [INFO]      [exec] rting provider: XPIProvider
      ...
      [INFO]      [exec] 1531388303125        addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
      [INFO]      [exec] Build info: version: '2.39.0', revision: '14fa800511cc5d66d426e08b0b2ab926c7ed7398', time: '2013-12-16 13:18:38'
      [INFO]      [exec] System info: host: 'd229cb62935e', ip: '172.17.0.30', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-92-generic', java.version: '1.8.0_77'
      [INFO]      [exec] Driver info: driver.version: FirefoxDriver
      [INFO]      [exec]      at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)
      [INFO]      [exec]      at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:250)
      [INFO]      [exec]      at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
      [INFO]      [exec]      at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:195)
      [INFO]      [exec]      at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190)
      [INFO]      [exec]      at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:107)
      [INFO]      [exec]      at org.nuxeo.functionaltests593.AbstractTest.initFirefoxDriver(AbstractTest.java:307)
      [INFO]      [exec]      at org.nuxeo.functionaltests593.AbstractTest.initDriver(AbstractTest.java:198)
      [INFO]      [exec]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [INFO]      [exec]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [INFO]      [exec]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [INFO]      [exec]      at java.lang.reflect.Method.invoke(Method.java:498)
      [INFO]      [exec]      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      [INFO]      [exec]      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      [INFO]      [exec]      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      [INFO]      [exec]      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
      [INFO]      [exec]      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      [INFO]      [exec]      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      [INFO]      [exec]      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      [INFO]      [exec]      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      [INFO]      [exec]      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      [INFO]      [exec]      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      [INFO]      [exec]      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      [INFO]      [exec]      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      [INFO]      [exec] Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host localhost on port 7055 after 45000 ms. Firefox console output:
      [INFO]      [exec] rting provider: XPIProvider
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: