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

Fix Nuxeo shutdown on Windows slave

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 8.10
    • Component/s: Infrastructure, Tests

      Description

      When launching a nuxeo tomcat to run functional tests (selenium, webdriver, etc.) on windows slave, it does not shut down properly.

      As a result, next build on the same slave cannot start its tomcat with errors:

      Could not run configuration: Address already in use: JVM_Bind: /0.0.0.0:8080
      

      and

      Windows startup failed!
      

      Full stack is:

      00:01:17.472 integration-tests.start-windows:
      00:01:17.472 [INFO]      [exec] Found NUXEO_CONF = C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\bin\nuxeo.conf
      00:01:17.472 [INFO]      [exec] Found in path : C:\Program Files\Java\jdk1.7.0_17\bin\java.exe
      00:01:17.472 [INFO]      [exec] Using JAVA = C:\Program Files\Java\jdk1.7.0_17\bin\java.exe
      00:01:18.585 [INFO]      [exec]         1 file(s) copied.
      00:01:18.586 [INFO]      [exec] C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver>"C:\Program Files\Java\jdk1.7.0_17\bin\java.exe"  -Dlauncher.java.opts=" -Xms512m -Xmx1024m -XX:MaxPermSize=512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=UTF-8  -Dmail.mime.decodeparameters=true  -Djava.util.Arrays.useLegacyMergeSort=true" -Dnuxeo.home="C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat" -Dnuxeo.conf="C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\bin\nuxeo.conf" -Dnuxeo.log.dir="C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\log" -Dlog.id="-Wed04092014_19215253" -jar "C:\Users\nuxeo\AppData\Local\Temp\nuxeo-launcher-472.jar" --gui=false start --force        
      00:01:20.523 [INFO]      [exec] Detected Tomcat server.
      00:01:20.523 [INFO]      [exec] Nuxeo home:          C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat
      00:01:20.523 [INFO]      [exec] Nuxeo configuration: C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\bin\nuxeo.conf
      00:01:20.536 [INFO]      [exec] Include template: C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\templates\common-base
      00:01:20.536 [INFO]      [exec] Include template: C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\templates\common
      00:01:20.536 [INFO]      [exec] Include template: C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\templates\postgresql
      00:01:21.200 [INFO]      [exec] No current configuration, generating files...
      00:01:21.922 [INFO]      [exec] Configuration files generated.
      00:01:21.922 [INFO]      [exec] Could not run configuration: Address already in use: JVM_Bind: /0.0.0.0:8080
      00:01:21.922 [INFO]      [exec] Some commands failed:
      00:01:21.944 [ERROR]      [exec] Result: 6
      00:01:21.976 [INFO] Managed version set on org.nuxeo:nuxeo-ftest:zip:1.7.14
      00:01:21.980 [INFO]     [unzip] Expanding: C:\.m2\repository\org\nuxeo\nuxeo-ftest\1.7.14\nuxeo-ftest-1.7.14.zip into C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target
      00:01:22.027 
      00:01:22.027 integration-tests.stop-windows-iffailed:
      00:01:22.027 [INFO] Managed version set on org.nuxeo:nuxeo-ftest:zip:1.7.14
      00:01:22.028 [INFO]     [unzip] Expanding: C:\.m2\repository\org\nuxeo\nuxeo-ftest\1.7.14\nuxeo-ftest-1.7.14.zip into C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target
      00:01:22.179 
      00:01:22.179 integration-tests.stop-windows:
      00:01:22.179 [INFO]      [exec] Found NUXEO_CONF = C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\bin\nuxeo.conf
      00:01:22.180 [INFO]      [exec] Found in path : C:\Program Files\Java\jdk1.7.0_17\bin\java.exe
      00:01:22.180 [INFO]      [exec] Using JAVA = C:\Program Files\Java\jdk1.7.0_17\bin\java.exe
      00:01:23.085 [INFO]      [exec]         1 file(s) copied.
      00:01:23.086 [INFO]      [exec] C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver>"C:\Program Files\Java\jdk1.7.0_17\bin\java.exe"  -Dlauncher.java.opts=" -Xms512m -Xmx1024m -XX:MaxPermSize=512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=UTF-8  -Dmail.mime.decodeparameters=true  -Djava.util.Arrays.useLegacyMergeSort=true" -Dnuxeo.home="C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat" -Dnuxeo.conf="C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\bin\nuxeo.conf" -Dnuxeo.log.dir="C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\log" -Dlog.id="-Wed04092014_19215722" -jar "C:\Users\nuxeo\AppData\Local\Temp\nuxeo-launcher-489.jar" --gui=false stop         
      00:01:24.019 [INFO]      [exec] Detected Tomcat server.
      00:01:24.019 [INFO]      [exec] Nuxeo home:          C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat
      00:01:24.019 [INFO]      [exec] Nuxeo configuration: C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\bin\nuxeo.conf
      00:01:24.020 [INFO]      [exec] Include template: C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\templates\common-base
      00:01:24.021 [INFO]      [exec] Include template: C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\templates\common
      00:01:24.021 [INFO]      [exec] Include template: C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\tomcat\templates\postgresql
      00:01:24.653 [INFO]      [exec] Server is not running.
      00:01:24.669 [ERROR] 
      00:01:24.669 BUILD FAILED - at 4/9/14 7:21 PM
      00:01:24.669 C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\nuxeo-ftest.xml:1446: The following error occurred while executing this line:
      00:01:24.669 C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\nuxeo-ftest.xml:1451: Windows startup failed!
      00:01:24.669 
      00:01:24.669 Total time: 22 seconds
      00:01:24.671 [INFO] ------------------------------------------------------------------------
      00:01:24.671 [INFO] BUILD FAILURE
      00:01:24.671 [INFO] ------------------------------------------------------------------------
      00:01:24.672 [INFO] Total time: 1:08.310s
      00:01:24.672 [INFO] Finished at: Wed Apr 09 19:21:59 CEST 2014
      00:01:25.957 [INFO] Final Memory: 63M/618M
      00:01:25.957 [INFO] ------------------------------------------------------------------------
      00:01:25.959 [ERROR] Failed to execute goal org.nuxeo.build:ant-assembly-maven-plugin:2.0.1:build (start-tomcat) on project nuxeo-distribution-dm-webdriver-tests: Error occurred while running C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\itests.xml@1446:47
      00:01:25.959 [ERROR] The following error occurred while executing this line:
      00:01:25.959 [ERROR] C:\Jenkins\workspace\FT-nuxeo-master-webdriver-dm-tomcat-multiosdb\Slave\MULTIDB_WINDOWS\dbprofile\pgsql\jdk\openjdk-7-jdk\nuxeo-distribution-dm\ftest\webdriver\target\nuxeo-ftest.xml:1451: Windows startup failed!
      00:01:25.960 [ERROR] -> [Help 1]
      00:01:25.960 [ERROR] 
      00:01:25.961 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      00:01:25.961 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      00:01:25.961 [ERROR] 
      00:01:25.962 [ERROR] For more information about the errors and possible solutions, please read the following articles:
      00:01:25.962 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified