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

nuxeoctl --strict does not work with startbg

    XMLWordPrintable

    Details

    • Release Notes Summary:
      The nuxeoctl --strict option can be used when starting Nuxeo in background mode.
    • Tags:
    • Backlog priority:
      500
    • Upgrade notes:
      Hide

      Nuxeo Server will stop correctly in strict mode when startup failed.

      Show
      Nuxeo Server will stop correctly in strict mode when startup failed.
    • Sprint:
      NOS 10.1.4, NOS 10.1.5, NOS 10.1.6
    • Story Points:
      3

      Description

      nuxeoctl --strict startbg

      does not work.
      Whereas

      nuxeoctl --strict start

      does.

      This is an issue since failed component start will not shutdown the server when run as a service (using the startbg option instead of start).

      This is also confirmed in the NuxeoLauncher class:
      https://github.com/nuxeo/nuxeo/blob/master/nuxeo-distribution/nuxeo-launcher/src/main/java/org/nuxeo/launcher/NuxeoLauncher.java
      where the strict option is taken into account here (in the waitForEffectiveStart method):

                      if (strict) {
                          errorValue = EXIT_CODE_ERROR;
                          log.error("Shutting down because of unstarted component in strict mode...");
                          stop();
                          return false;
                      }

      https://github.com/nuxeo/nuxeo/blob/master/nuxeo-distribution/nuxeo-launcher/src/main/java/org/nuxeo/launcher/NuxeoLauncher.java#L1990
      But not in the doStart one.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 4 days
                  4d