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

Improve error message when server fails to startup for "good" reason

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: None
    • Labels:

      Description

      For instance, when a SonarQube 5.5 server is starting with the report plugin (which is no more compatible), here's the generated stacktrace :

      2016.03.25 14:51:27 INFO  web[o.s.p.ProcessEntryPoint] Starting web
      2016.03.25 14:51:27 INFO  web[o.s.s.a.TomcatContexts] Webapp directory: /Users/julienlancelot/Dev/Sandbox/temp/sonarqube/sonarqube-5.5-SNAPSHOT/web
      2016.03.25 14:51:28 INFO  web[o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-9000"]
      2016.03.25 14:51:28 INFO  web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
      2016.03.25 14:51:28 INFO  web[o.s.s.p.ServerImpl] SonarQube Server / 5.5-SNAPSHOT / 0f5f43571871287001367430663c28a0d8c1f3e3
      2016.03.25 14:51:28 INFO  web[o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://localhost:5432/sonar
      2016.03.25 14:51:30 INFO  web[o.s.s.p.DefaultServerFileSystem] SonarQube home: /Users/julienlancelot/Dev/Sandbox/temp/sonarqube/sonarqube-5.5-SNAPSHOT
      2016.03.25 14:51:30 INFO  web[o.e.plugins] [sonar-1458913881427] loaded [], sites []
      2016.03.25 14:51:30 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener
      org.sonar.api.utils.MessageException: Plugin 'report' is no more compatible with this version of SonarQube
      2016.03.25 14:51:30 ERROR web[o.a.c.c.StandardContext] One or more listeners failed to start. Full details will be found in the appropriate container log file
      2016.03.25 14:51:30 ERROR web[o.a.c.c.StandardContext] Context [] startup failed due to previous errors
      2016.03.25 14:51:30 INFO  web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-9000"]
      2016.03.25 14:51:30 INFO  web[o.s.s.a.TomcatAccessLog] Web server is started
      2016.03.25 14:51:30 INFO  web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
      2016.03.25 14:51:30 WARN  web[o.s.p.ProcessEntryPoint] Fail to start web
      java.lang.IllegalStateException: Webapp did not start
      	at org.sonar.server.app.EmbeddedTomcat.isUp(EmbeddedTomcat.java:84) ~[sonar-server-5.5-SNAPSHOT.jar:na]
      	at org.sonar.server.app.WebServer.isUp(WebServer.java:48) [sonar-server-5.5-SNAPSHOT.jar:na]
      	at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:104) ~[sonar-process-5.5-SNAPSHOT.jar:na]
      	at org.sonar.server.app.WebServer.main(WebServer.java:69) [sonar-server-5.5-SNAPSHOT.jar:na]
      2016.03.25 14:51:30 INFO  web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-0.0.0.0-9000"]
      2016.03.25 14:51:31 INFO  web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-0.0.0.0-9000"]
      2016.03.25 14:51:32 INFO  web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9000"]
      2016.03.25 14:51:32 INFO  web[o.s.s.a.TomcatAccessLog] Web server is stopped
      2016.03.25 14:51:32 INFO  app[o.s.p.m.Monitor] Process[es] is stopping
      2016.03.25 14:51:32 INFO   es[o.s.p.StopWatcher]  Stopping process
      2016.03.25 14:51:32 INFO   es[o.elasticsearch.node]  [sonar-1458913881427] stopping ...
      2016.03.25 14:51:32 INFO   es[o.elasticsearch.node]  [sonar-1458913881427] stopped
      2016.03.25 14:51:32 INFO   es[o.elasticsearch.node]  [sonar-1458913881427] closing ...
      2016.03.25 14:51:32 INFO   es[o.elasticsearch.node]  [sonar-1458913881427] closed
      2016.03.25 14:51:33 INFO  app[o.s.p.m.Monitor] Process[es] is stopped
      <-- Wrapper Stopped
      

      The error is hard to found, we should find a way to be able to quickly see the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sebastien.lesaint Sebastien Lesaint
                Reporter:
                julien.lancelot Julien Lancelot
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: