Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7142

Cannot restart server after wiping out Server ID fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.6, 5.2, 5.3
    • Fix Version/s: 5.6
    • Component/s: None
    • Labels:

      Description

      Once a Server ID is generated, if I wipe out any of the Organisation or 'Fixed IP Address' fields and then restart my server, startup fails with a NullPointerException.

      Reproduction (summary screenshot attached @ serverid_restart.png ):

      • start server and generate Server ID in Settings - Licenses
      • wipe out Organisation and/or 'Fixed IP Address' field(s), click Generate ID
      • restart your server, observe the stack trace
      java.lang.NullPointerException: null
      	at org.sonar.server.startup.LogServerId.addQuotedValue(LogServerId.java:66) ~[sonar-server-5.3-RC1.jar:na]
      	at org.sonar.server.startup.LogServerId.logServerId(LogServerId.java:56) ~[sonar-server-5.3-RC1.jar:na]
      	at org.sonar.server.startup.LogServerId.start(LogServerId.java:41) ~[sonar-server-5.3-RC1.jar:na]
      [...]
      

      Workaround:
      None, need to go remove the leftover sonar.server_id in the database with DELETE FROM properties where prop_key = 'sonar.server_id';

        Attachments

          Activity

            People

            Assignee:
            simon.brandhof Simon Brandhof (Inactive)
            Reporter:
            nicolas.bontoux Nicolas Bontoux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: