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

Improve startup error message when the TCP port is already taken

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.7
    • Component/s: None
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      When starting SonarQube with the web TCP port already taken, the error message say nothing about it. We should specify what is the web TCP port, and that we failed because another process on the OS is already listening to that port.

       

      ==> /Users/pierre/IdeaProjects/sonar-enterprise/sonar-application/build/distributions/sonarqube-8.1-SNAPSHOT/logs/web.log <==
      2019.12.04 10:34:33 INFO web[][o.s.p.ProcessEntryPoint] Starting web
      2019.12.04 10:34:34 ERROR web[][o.s.s.a.EmbeddedTomcat] Fail to start web server
      org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
       at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
       at org.apache.catalina.startup.Tomcat.start(Tomcat.java:427)
       at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:65)
       at org.sonar.server.app.WebServer.start(WebServer.java:52)
       at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:97)
       at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81)
       at org.sonar.server.app.WebServer.main(WebServer.java:99)
      Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardService[Tomcat]]
       at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
       at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
       at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
       ... 7 common frames omitted
      Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-9000]]
       at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
       at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
       ... 9 common frames omitted
      2019.12.04 10:34:34 WARN web[][o.s.p.ProcessEntryPoint] Fail to start web
      java.lang.RuntimeException: org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
       at com.google.common.base.Throwables.propagate(Throwables.java:241)
       at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:69)
       at org.sonar.server.app.WebServer.start(WebServer.java:52)
       at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:97)
       at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81)
       at org.sonar.server.app.WebServer.main(WebServer.java:99)
      Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
       at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
       at org.apache.catalina.startup.Tomcat.start(Tomcat.java:427)
       at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:65)
       ... 4 common frames omitted
      Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardService[Tomcat]]
       at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
       at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
       at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
       ... 7 common frames omitted
      Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-9000]]
       at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
       at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
       ... 9 common frames omitted

       

        Attachments

          Activity

            People

            Assignee:
            pierre.guillot Pierre Guillot
            Reporter:
            pierre.guillot Pierre Guillot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: