# Docker sonarqube:7.9.3-community - Não Inicializa

**URL:** <https://community.sonarsource.com/t/docker-sonarqube-7-9-3-community-nao-inicializa/26349>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [June 13, 2020, 1:43am UTC](https://community.sonarsource.com/t/docker-sonarqube-7-9-3-community-nao-inicializa/26349 "2020-06-13T01:43:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabiosantosfb](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/fabiosantosfb/32/12465_2.png) [@fabiosantosfb](https://community.sonarsource.com/u/fabiosantosfb)\
**Post date:** [June 13, 2020, 1:43am UTC](https://community.sonarsource.com/t/docker-sonarqube-7-9-3-community-nao-inicializa/26349/1 "2020-06-13T01:43:08Z")

</div>

Problema ao subir conteiner sonarqube:7.9.3-community com docker-compose, o mesmo após startar em alguns segundo ele fica em stop.  
**docker-compose:**

> sonar-qube:  
> container\_name: sonar-qube  
> image: sonarqube:7.9.3-community  
> ports:  
> - “9042:9000”  
> environment:  
> ES\_JAVA\_OPTS: -Xms512m -Xmx512m  
> sonar.jdbc.url: jdbc:postgresql://database-sonar/sonar  
> SONARQUBE\_JDBC\_USERNAME: sonar  
> SONARQUBE\_JDBC\_PASSWORD: sonar  
> depends\_on:  
> - database-sonar  
> volumes:  
> - sonarqube\_logs:/opt/sonarqube/logs  
> - sonarqube\_conf:/opt/sonarqube/conf  
> - sonarqube\_data:/opt/sonarqube/data  
> - sonarqube\_extensions:/opt/sonarqube/extensions  
> - sonarqube\_bundled-plugins:/opt/sonarqube/lib/bundled-plugins

**saida dos logs no inicio do conteiner:**

> $ docker logs -f sonar-qube  
> 2020.06.13 01:04:52 INFO es[o.e.n.Node] starting …  
> 2020.06.13 01:04:52 INFO es[o.e.t.TransportService] publish\_address {127.0.0.1:9001}, bound\_addresses {127.0.0.1:9001}  
> 2020.06.13 01:04:53 INFO es[o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks  
> 2020.06.13 01:04:53 ERROR es[o.e.b.Bootstrap] node validation exception  
> [1] bootstrap checks failed  
> [1]: max virtual memory areas vm.max\_map\_count [65530] is too low, increase to at least [262144]  
> 2020.06.13 01:04:53 INFO es[o.e.n.Node] stopping …  
> 2020.06.13 01:04:53 INFO es[o.e.n.Node] stopped  
> 2020.06.13 01:04:53 INFO es[o.e.n.Node] closing …  
> 2020.06.13 01:04:53 INFO es[o.e.n.Node] closed  
> 2020.06.13 01:27:15 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp  
> 2020.06.13 01:27:15 WARN app[o.s.a.c.CommandFactoryImpl] ES\_JAVA\_OPTS is defined but will be ignored. Use properties sonar.search.javaOpts and/or sonar.search.javaAdditionalOpts in sonar.properties to change SQ JVM processes options  
> 2020.06.13 01:27:15 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001  
> 2020.06.13 01:27:16 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch  
> 2020.06.13 01:27:16 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running  
> 2020.06.13 01:27:16 INFO app[o.e.p.PluginsService] no modules loaded  
> 2020.06.13 01:27:16 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]  
> OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.  
> 2020.06.13 01:27:19 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/sda2)]], net usable\_space [72.5gb], net total\_space [226.3gb], types [ext4]  
> 2020.06.13 01:27:19 INFO es[o.e.e.NodeEnvironment] heap size [494.9mb], compressed ordinary object pointers [true]  
> 2020.06.13 01:27:19 INFO es[o.e.n.Node] node name [sonarqube], node ID [yrXoIHZDR0mq5gqOfXzqtA]  
> 2020.06.13 01:27:19 INFO es[o.e.n.Node] version[6.8.0], pid[27], build[default/tar/65b6179/2019-05-15T20:06:13.172855Z], OS[Linux/4.15.0-106-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/11.0.7/11.0.7+10]  
> 2020.06.13 01:27:19 INFO es[o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=…/logs/es\_hs\_err\_pid%p.log, -Des.enforce.bootstrap.checks=true, -Xms512m, -Xmx512m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar]  
> 2020.06.13 01:27:20 INFO es[o.e.p.PluginsService] loaded module [analysis-common]  
> 2020.06.13 01:27:20 INFO es[o.e.p.PluginsService] loaded module [lang-painless]  
> 2020.06.13 01:27:20 INFO es[o.e.p.PluginsService] loaded module [mapper-extras]  
> 2020.06.13 01:27:20 INFO es[o.e.p.PluginsService] loaded module [parent-join]  
> 2020.06.13 01:27:20 INFO es[o.e.p.PluginsService] loaded module [percolator]  
> 2020.06.13 01:27:20 INFO es[o.e.p.PluginsService] loaded module [reindex]  
> 2020.06.13 01:27:20 INFO es[o.e.p.PluginsService] loaded module [repository-url]  
> 2020.06.13 01:27:20 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]  
> 2020.06.13 01:27:20 INFO es[o.e.p.PluginsService] no plugins loaded  
> 2020.06.13 01:27:23 WARN es[o.e.d.c.s.Settings] [http.enabled] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.  
> 2020.06.13 01:27:24 INFO es[o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]  
> 2020.06.13 01:27:25 INFO es[o.e.n.Node] initialized  
> 2020.06.13 01:27:25 INFO es[o.e.n.Node] starting …  
> 2020.06.13 01:27:25 INFO es[o.e.t.TransportService] publish\_address {127.0.0.1:9001}, bound\_addresses {127.0.0.1:9001}  
> 2020.06.13 01:27:25 INFO es[o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks  
> 2020.06.13 01:27:25 ERROR es[o.e.b.Bootstrap] node validation exception  
> [1] bootstrap checks failed  
> [1]: max virtual memory areas vm.max\_map\_count [65530] is too low, increase to at least [262144]  
> ERROR: [1] bootstrap checks failed  
> [1]: max virtual memory areas vm.max\_map\_count [65530] is too low, increase to at least [262144]  
> 2020.06.13 01:27:25 INFO es[o.e.n.Node] stopping …  
> 2020.06.13 01:27:25 INFO es[o.e.n.Node] stopped  
> 2020.06.13 01:27:25 INFO es[o.e.n.Node] closing …  
> 2020.06.13 01:27:25 INFO es[o.e.n.Node] closed  
> 2020.06.13 01:27:25 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 78  
> 2020.06.13 01:27:25 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped  
> 2020.06.13 01:27:25 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

Na docker hub fala sobre:  
sysctl -w vm.max\_map\_count=262144  
sysctl -w fs.file-max=65536  
ulimit -n 65536  
ulimit -u 4096  
mas não encontrei maneiras de levantar esse conteiner.

Ressaltando que, com a image sonarqube:6.7.6-community, ele sobe, porem as versões abaixo de 7.\*, não é possível instalar os plugns da linguagem para o quality.
