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

log launcher properties and configuration on shutdown to aid next startup problem diagnosis

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.21.1
    • Fix Version/s: None
    • Component/s: Bootstrap
    • Labels:
    • Notability:
      n/a

      Description

      On startup, these things are logged and are very helpful to understand the core bootstrap settings NXRM is started with in case there is a problem on startup that needs to be diagnosed:

      2020-03-16 10:56:09,310-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - Properties:
      2020-03-16 10:56:09,310-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   application-host='0.0.0.0'
      2020-03-16 10:56:09,311-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   application-port='8081'
      2020-03-16 10:56:09,311-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   fabric.etc='/apps/nexus3/nexus-3.20.1-01/etc/fabric'
      2020-03-16 10:56:09,311-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   jetty.etc='/apps/nexus3/nexus-3.20.1-01/etc/jetty'
      2020-03-16 10:56:09,311-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   karaf.base='/apps/nexus3/nexus-3.20.1-01'
      2020-03-16 10:56:09,312-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   karaf.data='/data/nexus3'
      2020-03-16 10:56:09,312-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   karaf.etc='/apps/nexus3/nexus-3.20.1-01/etc/karaf'
      2020-03-16 10:56:09,312-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   karaf.home='/apps/nexus3/nexus-3.20.1-01'
      2020-03-16 10:56:09,312-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   karaf.instances='/data/nexus3/instances'
      2020-03-16 10:56:09,312-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   logback.etc='/apps/nexus3/nexus-3.20.1-01/etc/logback'
      2020-03-16 10:56:09,313-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   nexus-args='/apps/nexus3/nexus-3.20.1-01/etc/jetty/jetty.xml,/apps/nexus3/nexus-3.20.1-01/etc/jetty/jetty-http.xml,/apps/nexus3/nexus-3.20.1-01/etc/jetty/jetty-requestlog.xml'
      2020-03-16 10:56:09,313-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   nexus-context-path='/'
      2020-03-16 10:56:09,313-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   nexus-edition='nexus-pro-edition'
      2020-03-16 10:56:09,314-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   nexus-features='nexus-pro-feature'
      2020-03-16 10:56:09,314-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   nexus.hazelcast.discovery.isEnabled='true'
      2020-03-16 10:56:09,314-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder -   ssl.etc='/apps/nexus3/nexus-3.20.1-01/etc/ssl'
      2020-03-16 10:56:09,314-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.Launcher - Java: 1.8.0_242, OpenJDK 64-Bit Server VM, Oracle Corporation, 25.242-b08
      2020-03-16 10:56:09,315-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.Launcher - OS: Linux, 3.10.0-1062.12.1.el7.x86_64, amd64
      2020-03-16 10:56:09,315-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.Launcher - User: nexus, en, /home/nexus
      2020-03-16 10:56:09,315-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.Launcher - CWD: /apps/nexus3/nexus-3.20.1-01
      2020-03-16 10:56:09,317-0400 INFO  [FelixStartLevel]  *SYSTEM org.sonatype.nexus.bootstrap.Launcher - TMP: /data/nexus3/sonatype-work/nexus3/tmp
      

      Problem

      It turns out knowing these settings on shutdown could be equally valuable - especially in the case where the next startup is an upgrade that has failed for some reason.

      Expected

      Log the bootstrap and launcher configuration settings on shutdown as well as startup.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Wes Wannemacher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title