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

Add an Elasticsearch Checker to prevent starting Nuxeo if ES is not ready

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.10
    • Fix Version/s: 11.x
    • Component/s: Elasticsearch

      Description

      Since NXP-20418 Nuxeo will abort startup if Elasticsearch is not live or ready:

      ERROR [ComponentManager] Component service:org.nuxeo.elasticsearch.ElasticSearchComponent notification of application started failed: java.io.IOException: elasticsearch: Name or service not known
      nuxeo      | org.nuxeo.ecm.core.api.NuxeoException: java.io.IOException: elasticsearch: Name or service not known
      ..
      many NPE
      ...
      ======================================================================
      nuxeo      | = Component Loading Status: Pending: 0 / Missing: 0 / Unstarted: 3 / Total: 694
      nuxeo      |   - service:org.nuxeo.ecm.core.uidgen.UIDGeneratorService
      nuxeo      |   - service:org.nuxeo.ecm.platform.audit.service.NXAuditEventsService
      nuxeo      |   - service:org.nuxeo.elasticsearch.ElasticSearchComponent
      nuxeo      | ======================================================================
      [OSGiAdapter] Error during Framework Listener execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService
      nuxeo      | java.lang.IllegalStateException: Startup aborted due to previous failures (strict mode)
      

      Using a org.nuxeo.launcher.config.backingservices.BackingChecker will fail faster without producing too much errors and even in the --lenient mode is activated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bdelbosc Benoit Delbosc
                Reporter:
                bdelbosc Benoit Delbosc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.