Docker Container Error - Found two versions of the plugin SonarHTML

sonarqube
(Shawn) #1

I am working on creating a docker image from the main sonarqube image and am hitting an error when trying to run it.

Right now my Dockerfile looks like this

FROM sonarqube:latest

RUN find $SONARQUBE_HOME/extensions -ls

ENTRYPOINT ["./bin/run.sh"]

The output is

1043709      4 drwxr-xr-x   4 sonarqube sonarqube     4096 Mar 20 14:55 /opt/sonarqube/extensions
  1043713      4 drwxr-xr-x   2 sonarqube sonarqube     4096 Mar 20 14:55 /opt/sonarqube/extensions/plugins
  1043726   2692 -rw-r--r--   1 sonarqube sonarqube  2753233 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-python-plugin-1.13.0.2922.jar
  1043733   2192 -rw-r--r--   1 sonarqube sonarqube  2242738 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-xml-plugin-2.0.1.2020.jar
  1043732   2024 -rw-r--r--   1 sonarqube sonarqube  2069271 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-vbnet-plugin-7.11.0.8083.jar
  1043724    296 -rw-r--r--   1 sonarqube sonarqube   300503 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-ldap-plugin-2.2.0.608.jar
  1043716   5892 -rw-r--r--   1 sonarqube sonarqube  6031675 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-css-plugin-1.0.3.724.jar
  1043719   1688 -rw-r--r--   1 sonarqube sonarqube  1727846 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-html-plugin-3.1.0.1615.jar
  1043722   6712 -rw-r--r--   1 sonarqube sonarqube  6872614 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-javascript-plugin-5.1.1.7506.jar
  1043723   7420 -rw-r--r--   1 sonarqube sonarqube  7595999 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-kotlin-plugin-1.5.0.315.jar
  1043714      4 -rw-r--r--   1 sonarqube sonarqube      224 Mar 20 14:55 /opt/sonarqube/extensions/plugins/README.txt
  1043729   2564 -rw-r--r--   1 sonarqube sonarqube  2622236 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-scm-git-plugin-1.8.0.1574.jar
  1043718   3816 -rw-r--r--   1 sonarqube sonarqube  3904078 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-go-plugin-1.1.0.1612.jar
  1043717   1516 -rw-r--r--   1 sonarqube sonarqube  1551459 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-flex-plugin-2.4.0.1222.jar
  1043727   9804 -rw-r--r--   1 sonarqube sonarqube 10036210 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-ruby-plugin-1.5.0.315.jar
  1043730   7060 -rw-r--r--   1 sonarqube sonarqube  7229293 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-scm-svn-plugin-1.9.0.1295.jar
  1043731   2188 -rw-r--r--   1 sonarqube sonarqube  2239156 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-typescript-plugin-1.9.0.3766.jar
  1043725   4620 -rw-r--r--   1 sonarqube sonarqube  4730004 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-php-plugin-3.0.0.4537.jar
  1043720     16 -rw-r--r--   1 sonarqube sonarqube    14629 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-jacoco-plugin-1.0.1.143.jar
  1043715   2524 -rw-r--r--   1 sonarqube sonarqube  2582502 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-csharp-plugin-7.11.0.8083.jar
  1043721   8092 -rw-r--r--   1 sonarqube sonarqube  8283358 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-java-plugin-5.11.0.17289.jar
  1043728   8988 -rw-r--r--   1 sonarqube sonarqube  9202024 Mar 20 14:55 /opt/sonarqube/extensions/plugins/sonar-scala-plugin-1.5.0.315.jar
  1043710      4 drwxr-xr-x   3 sonarqube sonarqube     4096 Mar 20 14:55 /opt/sonarqube/extensions/jdbc-driver
  1043711      4 drwxr-xr-x   2 sonarqube sonarqube     4096 Mar 20 14:55 /opt/sonarqube/extensions/jdbc-driver/oracle
  1043712      4 -rw-r--r--   1 sonarqube sonarqube      249 Mar 20 14:55 /opt/sonarqube/extensions/jdbc-driver/oracle/README.txt
  
  
  sonarqube_1  | 2019.04.22 15:26:23 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
sonarqube_1  | 2019.04.22 15:26:24 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
sonarqube_1  | 2019.04.22 15:26:25 INFO  web[][o.e.p.PluginsService] no modules loaded
sonarqube_1  | 2019.04.22 15:26:25 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
sonarqube_1  | 2019.04.22 15:26:25 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
sonarqube_1  | 2019.04.22 15:26:25 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
sonarqube_1  | 2019.04.22 15:26:27 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
sonarqube_1  | 2019.04.22 15:26:27 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 7.7.0.23042 / 1dcac8b8de36b377a1810cc8f1c4c31744e12729
sonarqube_1  | 2019.04.22 15:26:27 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://db:5432/sonar
sonarqube_1  | 2019.04.22 15:26:28 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
sonarqube_1  | 2019.04.22 15:26:28 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
sonarqube_1  | 2019.04.22 15:26:29 ERROR web[][o.s.s.p.Platform] Web server startup failed: Found two versions of the plugin SonarHTML [web] in the directory extensions/plugins. Please remove one of sonar-html-plugin-3.0.1.1444.jar or sonar-html-plugin-3.1.0.1615.jar.
sonarqube_1  | 2019.04.22 15:26:29 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
sonarqube_1  | 2019.04.22 15:26:29 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
sonarqube_1  | 2019.04.22 15:26:29 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
sonarqube_1  | 2019.04.22 15:26:29 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped