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

Ensure server stops when startup fails on windows

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: NXFT-1.7.1
    • Component/s: nuxeo-ftest
    • Environment:
      Windows
    • Tags:
    • Backlog priority:
      500

      Description

      When the following happens, a server was started but not properly detected. So, the test fails, leaking a running server.

      From http://qa.nuxeo.org/jenkins/job/FT-nuxeo-master-selenium-dam-tomcat-windows/label=hudson-7/267/console:

      start-windows:
           [exec] Found NUXEO_CONF = D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\bin\nuxeo.conf
           [exec] Found JAVA_HOME = c:\Program Files\Java\jdk1.6.0_24
           [exec] Using JAVA = c:\Program Files\Java\jdk1.6.0_24\bin\java.exe
           [exec] 
           [exec] D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium>"c:\Program Files\Java\jdk1.6.0_24\bin\java.exe"  -Dlauncher.java.opts="-Xms512m -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=UTF-8" -Dnuxeo.home="D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat" -Dnuxeo.conf="D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\bin\nuxeo.conf" -Dnuxeo.log.dir="D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\log" -Dlog.id="-Wed04042012_16224833" -jar "D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\bin\nuxeo-launcher.jar" --gui=false start         
           [exec] Nuxeo home:          D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat
           [exec] Nuxeo configuration: D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\bin\nuxeo.conf
           [exec] Include template: D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\templates\common
           [exec] Include template: D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\templates\default
           [exec] Detected Tomcat server.
           [exec] No current configuration, generating files...
           [exec] Configuration files generated.
           [exec] Adding setupWizardDownloads/35e5cdf6fdc32587780ff5588454d408
           [exec] Updating nuxeo-content-browser-1.0.0
           [exec] Adding setupWizardDownloads/8256c8d454b64ac98aecd77c3e3ffedd
           [exec] Updating nuxeo-dam-5.6.0-SNAPSHOT
           [exec] Nuxeo home:          D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat
           [exec] Nuxeo configuration: D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\bin\nuxeo.conf
           [exec] Include template: D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\templates\common
           [exec] Include template: D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\templates\default
           [exec] Include template: D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\tomcat\templates\dam
           [exec] Detected Tomcat server.
           [exec] Configuration files generation (nuxeo.force.generation=true)...
           [exec] Configuration files generated.
           [exec] Server started with process ID 3140.
           [exec] ......................................................................................................................................................
           [exec] Starting process is taking too long - giving up.
      
      BUILD FAILED
      D:\hudson\workspace\FT-nuxeo-master-selenium-dam-tomcat-windows\label\hudson-7\nuxeo-distribution-dam\ftest\selenium\target\nuxeo-ftest.xml:966: exec returned: 1
      
      Total time: 5 minutes 38 seconds
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jcarsique Julien Carsique
                Reporter:
                jcarsique Julien Carsique
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified