Tomcat errors when setting up web component

Must-share information (formatted with Markdown):
Version

  • SonarQube 7.9.1
    What am I trying to Do?
  • Trying to set up SonarQube running on a Unix server
    What have I done so far
  • Follow the step-by-step process defined in the documentation
  • Fix issues in the logs
  • Point to a different port
  • Ensure port is not in use
Error Message
2019.09.12 10:27:19 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-9001]]
        at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
        ... 9 common frames omitted

Hello,
Can you confirm that you changed the sonar.web.port to 9001 ?
If so, you have to choose another port because this one is the default elastic search port.
Alternatively you can change the sonar.search.port to something else than 9001 and keep your web server listening on 9001.
Alex.

Hi Alex,

I tried using several different ports (9000, 8080, 9001, 9002), and get the same result. It seems to be something to do with the host I’m setting in the properties file. If I don;t set a host it works fine, but if I set a host to my own IP it fails.

Hugh.

Hi Alex,

Do you have any more suggestions? I’d like to get this set up ASAP.

Regards,
Hugh