Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-8425

nexus pro log may report nexus as unlicensed on startup even when it is

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.2, 3.0.0-m4
    • Fix Version/s: 2.11.3, 3.0.0-m4
    • Component/s: Licensing
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Sprint 41

      Description

      The 'licenseKey' in AbstractCommercialApplicationStatusSource is only initialized when a LicenseChangedEvent occurred. But this can only happen after NexusInitializedEvent, when the PeriodicLicenseValidator is started.

      Anything querying the commercial status before then, like the banner message that appears in the logs at the start of initialization, will assume no license is installed:

      "Initializing Sonatype Nexus PRO-UNLICENSED 3.0.0-SNAPSHOT"

      Note: this is only apparent after the recent change to log the edition here instead of the application name (which doesn't include license information). It also looks like this has been an issue for a while because Nx2 also logs the following during initialization:

      "WARN ... com.sonatype.nexus.licensing.ProfessionalApplicationStatusSource - No license installed"

      (this state is shortlived, as the PeriodicLicenseValidator is started shortly afterwards.)

        Attachments

          Activity

            People

            Assignee:
            jtom Joe Tom
            Reporter:
            mcculls Stuart McCulloch
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title