sonar failed

Jasmin shahrzad
Jasmin shahrzad used Ask the Experts™
on
i have sonar 7.7-community docker on postgres 11.0.3
this my compose file:

------------------
version: "2"
services:
  db:
    image: postgres:11.3
    user: "${UID}:${GID}"
    restart: unless-stopped
    container_name: sonar-postgresql
    ports:
     - 5430:5432
    environment:
      POSTGRES_DB: sonar
      POSTGRES_USER: sonar
      POSTGRES_PASSWORD: Sonar
    volumes:
      - /containers/postgres/sonar/sonar_data:/var/lib/postgresql/data
    restart: always
    ulimits:
      nproc: 65535
      nofile:
        soft: 32000
        hard: 40000
  sonarqube:
    image: pf-sonar:1.0
    restart: unless-stopped
    container_name: PF-sonar
    ports:
      - 9100:9000
      - 9092:9092
    volumes:
      - /containers/sonar/sonarqube_conf:/opt/sonarqube/conf
      - /containers/sonar/sonarqube_data:/opt/sonarqube/data
      - /containers/sonar/sonarqube_extensions:/opt/sonarqube/extensions
      - /containers/sonar/sonarqube_plugins:/opt/sonarqube/lib/bundled-plugins
    environment:
      - sonar.jdbc.url=jdbc:postgresql://db:5432/sonar
      - DB_TYPE=postgresql
      - DB_USER=sonar
      - DB_PASSWORD=Sonar
#    restart: always
    ulimits:
      nproc: 65535
      nofile:
        soft: 32000
        hard: 40000
----------------

it try to use port 9000 and then try port 9100  i have error

2019.05.22 18:12:20 ERROR web[][o.s.s.a.EmbeddedTomcat] Fail to start web server
PF-sonar     | org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
PF-sonar     |  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
PF-sonar     |  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
PF-sonar     |  at org.apache.catalina.startup.Tomcat.start(Tomcat.java:427)
PF-sonar     |  at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:61)
PF-sonar     |  at org.sonar.server.app.WebServer.start(WebServer.java:51)
PF-sonar     |  at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:113)
PF-sonar     |  at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:100)
PF-sonar     |  at org.sonar.server.app.WebServer.main(WebServer.java:91)
PF-sonar     | Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardService[Tomcat]]
PF-sonar     |  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
PF-sonar     |  at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
PF-sonar     |  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
PF-sonar     |  ... 7 common frames omitted
PF-sonar     | Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-9000]]
PF-sonar     |  at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
PF-sonar     |  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
PF-sonar     |  ... 9 common frames omitted
PF-sonar     | 2019.05.22 18:12:20 WARN  web[][o.s.p.ProcessEntryPoint] Fail to start web
PF-sonar     | java.lang.RuntimeException: org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
PF-sonar     |  at com.google.common.base.Throwables.propagate(Throwables.java:160)
PF-sonar     |  at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:65)
PF-sonar     |  at org.sonar.server.app.WebServer.start(WebServer.java:51)
PF-sonar     |  at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:113)
PF-sonar     |  at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:100)
PF-sonar     |  at org.sonar.server.app.WebServer.main(WebServer.java:91)
PF-sonar     | Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
PF-sonar     |  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
PF-sonar     |  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
PF-sonar     |  at org.apache.catalina.startup.Tomcat.start(Tomcat.java:427)
PF-sonar     |  at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:61)
PF-sonar     |  ... 4 common frames omitted
PF-sonar     | Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardService[Tomcat]]
PF-sonar     |  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
PF-sonar     |  at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
PF-sonar     |  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
PF-sonar     |  ... 7 common frames omitted
PF-sonar     | Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-9000]]
PF-sonar     |  at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
PF-sonar     |  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial