My sonarqube doesn’t start up and I keep on getting a 502 or 400 nginx error. I have JDK 11 and everything installed and I can’t seem to find the problem in the logs. I don’t know if the issue is with Java or nginx or sonarqube itself.
es.log:
2023.01.27 10:58:39 INFO es[][o.e.n.Node] version[7.9.3], pid[47598], build[oss/tar/c4138e51121ef06a6404866cddc601906fe5c868/2020-10-16T10:36:16.141335Z], OS[Linux/6.>
2023.01.27 10:58:39 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-11-openjdk-amd64]
2023.01.27 10:58:39 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io>
2023.01.27 10:58:40 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]
2023.01.27 10:58:40 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]
2023.01.27 10:58:40 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2023.01.27 10:58:40 INFO es[][o.e.p.PluginsService] loaded module [percolator]
2023.01.27 10:58:40 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2023.01.27 10:58:41 INFO es[][o.e.p.PluginsService] no plugins loaded
2023.01.27 10:58:41 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [42.9gb], net total_space [78.2gb], types [ext4]
2023.01.27 10:58:41 INFO es[][o.e.e.NodeEnvironment] heap size [495.3mb], compressed ordinary object pointers [true]
2023.01.27 10:58:41 WARN es[][o.e.d.c.s.Settings] [node.master] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking chan>
2023.01.27 10:58:41 WARN es[][o.e.d.c.s.Settings] [node.data] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking change>
2023.01.27 10:58:41 INFO es[][o.e.n.Node] node name [sonarqube], node ID [AMSlGyGQTgWwvRq78aVdog], cluster name [sonarqube]
2023.01.27 10:58:47 WARN es[][o.e.d.c.r.OperationRouting] searches will not be routed based on awareness attributes starting in version 8.0.0; to opt into this behavi>
2023.01.27 10:58:49 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=unpooled, factors={es.unsafe.use_unpooled_allocator=fals>
2023.01.27 10:58:50 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2023.01.27 10:58:51 WARN es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imp>
2023.01.27 10:58:51 INFO es[][o.e.n.Node] initialized
2023.01.27 10:58:51 INFO es[][o.e.n.Node] starting ...
2023.01.27 10:58:52 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:39879}, bound_addresses {127.0.0.1:39879}
2023.01.27 10:58:52 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2023.01.27 10:58:52 INFO es[][o.e.c.c.Coordinator] cluster UUID [VZtnXYVBTdqpaiXh8hM6jA]
2023.01.27 10:58:53 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{AMSlGyGQTgWwvRq78aVdog}{fpJWgQCCTya62AbPbg6XEQ}{127.0.0.1}{127.0>
2023.01.27 10:58:53 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{AMSlGyGQTgWwvRq78aVdog}{fpJWgQCCTya62AbPbg6XEQ}{12>
2023.01.27 10:58:53 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2023.01.27 10:58:53 INFO es[][o.e.n.Node] started
2023.01.27 10:58:53 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2023.01.27 10:58:56 INFO es[][o.e.n.Node] stopping ...
2023.01.27 10:58:56 INFO es[][o.e.n.Node] stopped
2023.01.27 10:58:56 INFO es[][o.e.n.Node] closing ...
2023.01.27 10:58:56 INFO es[][o.e.n.Node] closed
sonar log:
2023.01.27 10:51:07 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2023.01.27 10:51:07 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:34703]
2023.01.27 10:51:07 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonar>
2023.01.27 10:51:08 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2023.01.27 10:51:23 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2023.01.27 10:51:23 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /usr/lib/jvm/java-11-o>
2023.01.27 10:51:26 INFO app[][o.s.a.SchedulerImpl] Process[web] is stopped
2023.01.27 10:51:26 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2023.01.27 10:51:26 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
2023.01.27 10:51:26 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
web.log
023.01.27 11:38:16 WARN web[][o.s.p.ProcessEntryPoint] Fail to start web
java.lang.RuntimeException: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-9000]]
at com.google.common.base.Throwables.propagate(Throwables.java:241)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:70)
at org.sonar.server.app.WebServer.start(WebServer.java:52)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:97)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81)
at org.sonar.server.app.WebServer.main(WebServer.java:99)
Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-9000]]
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:848)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:440)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:66)
... 4 common frames omitted
2023.01.27 11:38:16 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process
Please help thank you