SonarQube - sonarqube:8.9.0-developer running on Fargate with Aurora Serverless Postgres

Hi I’m wondering if anyone has gotten the Developer edition working with Fargate and Aurora Serverless Postgres?

Here is what I’m getting in the logs:

2021-07-13T16:15:23.497000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:23 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2021-07-13T16:15:23.541000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:23 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:44725]
2021-07-13T16:15:23.635000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:23 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2021-07-13T16:15:23.687000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 warning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOME
2021-07-13T16:15:23.700000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:23 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2021-07-13T16:15:24.148000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
2021-07-13T16:15:24.169000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2021-07-13T16:15:27.786000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:27 INFO  es[][o.e.n.Node] version[7.12.1], pid[31], build[default/tar/3186837139b9c6b6d23c3200870651f10d3343b7/2021-04-20T20:56:39.040728659Z], OS[Linux/4.14.225-168.357.amzn2.x86_64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/11.0.11/11.0.11+9]
2021-07-13T16:15:27.791000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:27 INFO  es[][o.e.n.Node] JVM home [/opt/java/openjdk]
2021-07-13T16:15:27.799000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:27 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -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, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=COMPAT, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]
2021-07-13T16:15:28.755000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:28 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2021-07-13T16:15:28.756000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:28 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2021-07-13T16:15:28.756000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:28 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2021-07-13T16:15:28.757000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:28 INFO  es[][o.e.p.PluginsService] loaded module [percolator]
2021-07-13T16:15:28.758000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:28 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2021-07-13T16:15:28.759000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:28 INFO  es[][o.e.p.PluginsService] no plugins loaded
2021-07-13T16:15:28.851000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:28 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (overlay)]], net usable_space [17.7gb], net total_space [29.4gb], types [overlay]
2021-07-13T16:15:28.852000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:28 INFO  es[][o.e.e.NodeEnvironment] heap size [503.6mb], compressed ordinary object pointers [true]
2021-07-13T16:15:28.975000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:28 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [oIi61B6BT3qQRtXQenv18g], cluster name [sonarqube], roles [master, remote_cluster_client, data, ingest]
2021-07-13T16:15:34.459000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:34 INFO  es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=1mb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=false, g1gc_region_size=0b, heap_size=503.6mb}]
2021-07-13T16:15:34.631000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:34 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2021-07-13T16:15:35.227000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:35 INFO  es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
2021-07-13T16:15:35.681000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:35 INFO  es[][o.e.n.Node] initialized
2021-07-13T16:15:35.682000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:35 INFO  es[][o.e.n.Node] starting ...
2021-07-13T16:15:35.911000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:35 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:44725}, bound_addresses {127.0.0.1:44725}
2021-07-13T16:15:36.273000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:36 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2021-07-13T16:15:36.280000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
2021-07-13T16:15:36.280000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
2021-07-13T16:15:36.281000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 ERROR: Elasticsearch did not exit normally - check the logs at /opt/sonarqube/logs/sonarqube.log
2021-07-13T16:15:36.292000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:36 INFO  es[][o.e.n.Node] stopping ...
2021-07-13T16:15:36.307000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:36 INFO  es[][o.e.n.Node] stopped
2021-07-13T16:15:36.307000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:36 INFO  es[][o.e.n.Node] closing ...
2021-07-13T16:15:36.332000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:36 INFO  es[][o.e.n.Node] closed
2021-07-13T16:15:36.428000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:36 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 78
2021-07-13T16:15:36.430000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:36 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021-07-13T16:15:36.431000+00:00 ecs/sonarqube-container/990df6bbdbcc4a86a0d206dc487403f7 2021.07.13 16:15:36 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Hi,

Welcome to the community!

I guess you see the problem in your log, right? Can you adjust vm.max_map_count?

 
Ann