Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27961

Fix server ftests randomly failing with "Error: cannot open display"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: CI/CD
    • Team:
      PLATFORM
    • Sprint:
      nxplatform 11.1.18, nxplatform 11.1.19, nxplatform 11.1.20, nxplatform 11.1.30, nxplatform 11.1.31, nxplatform 11.1.32, nxplatform 11.1.33
    • Story Points:
      1

      Description

      For instance:

      [2019-08-30T11:05:48.480Z] [INFO] -------------------------------------------------------
      [2019-08-30T11:05:48.480Z] [INFO]  T E S T S
      [2019-08-30T11:05:48.480Z] [INFO] -------------------------------------------------------
      [2019-08-30T11:06:35.170Z] org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
      [2019-08-30T11:06:35.170Z] Error: cannot open display: :1
      [2019-08-30T11:06:35.170Z] 
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:128)
      [2019-08-30T11:06:35.171Z] 	at org.nuxeo.functionaltests.drivers.FirefoxDriverProvider.init(FirefoxDriverProvider.java:140)
      [2019-08-30T11:06:35.171Z] 	at org.nuxeo.functionaltests.AbstractTest.initFirefoxDriver(AbstractTest.java:236)
      [2019-08-30T11:06:35.171Z] 	at org.nuxeo.functionaltests.AbstractTest.initDriver(AbstractTest.java:216)
      [2019-08-30T11:06:35.171Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [2019-08-30T11:06:35.171Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [2019-08-30T11:06:35.171Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [2019-08-30T11:06:35.171Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      [2019-08-30T11:06:35.171Z] 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      [2019-08-30T11:06:35.171Z] 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      [2019-08-30T11:06:35.171Z] 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.Suite.runChild(Suite.java:128)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.Suite.runChild(Suite.java:27)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      [2019-08-30T11:06:35.171Z] [INFO] Running org.nuxeo.ftest.wizard.ITPack
      [2019-08-30T11:06:35.171Z] [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.009 s <<< FAILURE! - in org.nuxeo.ftest.wizard.ITPack
      [2019-08-30T11:06:35.171Z] [ERROR] org.nuxeo.ftest.wizard.ITPack  Time elapsed: 0.009 s  <<< ERROR!
      [2019-08-30T11:06:35.171Z] org.openqa.selenium.WebDriverException: 
      [2019-08-30T11:06:35.171Z] Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows: 
      [2019-08-30T11:06:35.171Z] Error: cannot open display: :1
      [2019-08-30T11:06:35.171Z] 
      [2019-08-30T11:06:35.171Z] Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      [2019-08-30T11:06:35.171Z] System info: host: 'nuxeo-platform-11-qw8zp', ip: '10.60.88.50', os.name: 'Linux', os.arch: 'amd64', os.version: '4.14.127+', java.version: '11.0.4'
      [2019-08-30T11:06:35.171Z] Driver info: driver.version: FirefoxDriver
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:125)
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:128)
      [2019-08-30T11:06:35.171Z] 	at org.nuxeo.functionaltests.drivers.FirefoxDriverProvider.init(FirefoxDriverProvider.java:140)
      [2019-08-30T11:06:35.171Z] 	at org.nuxeo.functionaltests.AbstractTest.initFirefoxDriver(AbstractTest.java:236)
      [2019-08-30T11:06:35.171Z] 	at org.nuxeo.functionaltests.AbstractTest.initDriver(AbstractTest.java:216)
      [2019-08-30T11:06:35.171Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [2019-08-30T11:06:35.171Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [2019-08-30T11:06:35.171Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [2019-08-30T11:06:35.171Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      [2019-08-30T11:06:35.171Z] 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      [2019-08-30T11:06:35.171Z] 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      [2019-08-30T11:06:35.171Z] 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.Suite.runChild(Suite.java:128)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.Suite.runChild(Suite.java:27)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      [2019-08-30T11:06:35.171Z] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      [2019-08-30T11:06:35.171Z] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      [2019-08-30T11:06:35.171Z] Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
      [2019-08-30T11:06:35.171Z] Error: cannot open display: :1
      [2019-08-30T11:06:35.171Z] 
      [2019-08-30T11:06:35.171Z] 	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
      [2019-08-30T11:06:35.171Z] 	... 36 more
      [2019-08-30T11:06:35.171Z] 
      [2019-08-30T11:06:35.171Z] [INFO] 
      [2019-08-30T11:06:35.171Z] [INFO] Results:
      [2019-08-30T11:06:35.171Z] [INFO] 
      [2019-08-30T11:06:35.171Z] [ERROR] Errors: 
      [2019-08-30T11:06:35.171Z] [ERROR]   ITPack>AbstractTest.initDriver:216->AbstractTest.initFirefoxDriver:236 ยป WebDriver
      [2019-08-30T11:06:35.171Z] [INFO] 
      [2019-08-30T11:06:35.171Z] [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 5 hours
                  3d 5h