Hi Life savers,
I am new to Sonar and I have installed Sonar CE 7.5 on the cloud. It was working good during a couple of days. Later on, I tried to install the plugins, but in vain. Then I read somewhere to start and stop the sonar service. After that, Sonar didn’t even start. Getting a 502 bad gateway nginx error as there is a reserve proxy. Nginx works well on port 80, thats no problem. While I was looking at the logs under /sonar dir, I checked upon es.logs and found that the memory has exceeded and after searching for a solution in google, I increased and still stuck the same problem.
Can someone please help me resolve this.
azuser@SonaQube:/opt/sonarqube/sonarqube-7.5/logs$ tail -f es.log
2020.11.24 13:28:18 INFO es[][o.e.p.PluginsService] loaded module [reindex]
2020.11.24 13:28:18 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2020.11.24 13:28:18 INFO es[][o.e.p.PluginsService] no plugins loaded
2020.11.24 13:28:19 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen]
2020.11.24 13:28:20 INFO es[][o.e.n.Node] initialized
2020.11.24 13:28:20 INFO es[][o.e.n.Node] starting ...
2020.11.24 13:28:20 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.11.24 13:28:23 INFO es[][o.e.c.s.ClusterService] new_master {sonarqube}{UMtEAq5dQim3rU3mPAZ5EA}{1O5j-FUeTaaMcJpIvcI30Q}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: zen-disco-elected-as-master ([0] nodes joined)
2020.11.24 13:28:23 INFO es[][o.e.n.Node] started
2020.11.24 13:28:23 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2020.11.24 13:28:29 INFO es[][o.e.n.Node] stopping ...
2020.11.24 13:28:29 INFO es[][o.e.n.Node] stopped
2020.11.24 13:28:29 INFO es[][o.e.n.Node] closing ...
2020.11.24 13:28:29 INFO es[][o.e.n.Node] closed
2020.11.24 13:28:35 INFO es[][o.e.n.Node] initializing ...
2020.11.24 13:28:36 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/sdb1)]], net usable_space [22.8gb], net total_space [28.9gb], spins? [possibly], types [ext4]
2020.11.24 13:28:36 INFO es[][o.e.e.NodeEnvironment] heap size [495.3mb], compressed ordinary object pointers [true]
2020.11.24 13:28:36 INFO es[][o.e.n.Node] node name [sonarqube], node ID [UMtEAq5dQim3rU3mPAZ5EA]
2020.11.24 13:28:36 INFO es[][o.e.n.Node] version[5.6.3], pid[7309], build[1a2f265/2017-10-06T20:33:39.012Z], OS[Linux/5.4.0-1031-azure/amd64], JVM[Ubuntu/OpenJDK 64-Bit Server VM/11.0.9.1/11.0.9.1+1-Ubuntu-0ubuntu1.18.04]
2020.11.24 13:28:36 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -Xms512m, -Xmx512m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/sonarqube-7.5/elasticsearch]
2020.11.24 13:28:36 INFO es[][o.e.p.PluginsService] loaded module [aggs-matrix-stats]
2020.11.24 13:28:36 INFO es[][o.e.p.PluginsService] loaded module [ingest-common]
2020.11.24 13:28:36 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2020.11.24 13:28:36 INFO es[][o.e.p.PluginsService] loaded module [percolator]
2020.11.24 13:28:36 INFO es[][o.e.p.PluginsService] loaded module [reindex]
2020.11.24 13:28:36 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2020.11.24 13:28:36 INFO es[][o.e.p.PluginsService] no plugins loaded
2020.11.24 13:28:37 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen]
2020.11.24 13:28:37 INFO es[][o.e.n.Node] initialized
2020.11.24 13:28:37 INFO es[][o.e.n.Node] starting ...
2020.11.24 13:28:38 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.11.24 13:28:41 INFO es[][o.e.c.s.ClusterService] new_master {sonarqube}{UMtEAq5dQim3rU3mPAZ5EA}{JLdz7znATtyXmLTEpHhdCg}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: zen-disco-elected-as-master ([0] nodes joined)
2020.11.24 13:28:41 INFO es[][o.e.n.Node] started
2020.11.24 13:28:41 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2020.11.24 13:28:47 INFO es[][o.e.n.Node] stopping ...
2020.11.24 13:28:47 INFO es[][o.e.n.Node] stopped
2020.11.24 13:28:47 INFO es[][o.e.n.Node] closing ...
2020.11.24 13:28:47 INFO es[][o.e.n.Node] closed
2020.11.24 13:28:53 INFO es[][o.e.n.Node] initializing ...
2020.11.24 13:28:53 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/sdb1)]], net usable_space [22.8gb], net total_space [28.9gb], spins? [possibly], types [ext4]
2020.11.24 13:28:53 INFO es[][o.e.e.NodeEnvironment] heap size [495.3mb], compressed ordinary object pointers [true]
2020.11.24 13:28:53 INFO es[][o.e.n.Node] node name [sonarqube], node ID [UMtEAq5dQim3rU3mPAZ5EA]
2020.11.24 13:28:53 INFO es[][o.e.n.Node] version[5.6.3], pid[7638], build[1a2f265/2017-10-06T20:33:39.012Z], OS[Linux/5.4.0-1031-azure/amd64], JVM[Ubuntu/OpenJDK 64-Bit Server VM/11.0.9.1/11.0.9.1+1-Ubuntu-0ubuntu1.18.04]
2020.11.24 13:28:53 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -Xms512m, -Xmx512m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/sonarqube-7.5/elasticsearch]
2020.11.24 13:28:53 INFO es[][o.e.p.PluginsService] loaded module [aggs-matrix-stats]
2020.11.24 13:28:53 INFO es[][o.e.p.PluginsService] loaded module [ingest-common]
2020.11.24 13:28:53 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2020.11.24 13:28:53 INFO es[][o.e.p.PluginsService] loaded module [percolator]
2020.11.24 13:28:53 INFO es[][o.e.p.PluginsService] loaded module [reindex]
2020.11.24 13:28:53 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2020.11.24 13:28:53 INFO es[][o.e.p.PluginsService] no plugins loaded
2020.11.24 13:28:55 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen]
2020.11.24 13:28:55 INFO es[][o.e.n.Node] initialized
2020.11.24 13:28:55 INFO es[][o.e.n.Node] starting ...
2020.11.24 13:28:55 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.11.24 13:28:58 INFO es[][o.e.c.s.ClusterService] new_master {sonarqube}{UMtEAq5dQim3rU3mPAZ5EA}{eFQiebENQfugirun0cVjuw}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: zen-disco-elected-as-master ([0] nodes joined)
2020.11.24 13:28:58 INFO es[][o.e.n.Node] started
2020.11.24 13:28:58 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
^C