As a brand new SonarQube user with a fresh install of SonarQube 7.8 on RHEL 7 with OpenJDK 11, my instance dies with no information. As far as I can tell I have configured everything carefully according to the documentation. Even with DEBUG logging, I see nothing very useful to act on. It would appear Elasticsearch quietly goes down.
sonar.log shows some random things I have no control over:
…
2019.06.25 17:22:01 DEBUG app[][i.n.u.i.PlatformDependent0] direct buffer constructor: unavailable
java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
at io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31)
at io.netty.util.internal.PlatformDependent0$4.run(PlatformDependent0.java:224)
at java.base/java.security.AccessController.doPrivileged(Native Method)
…
2019.06.25 17:22:01 DEBUG app[][i.n.u.i.PlatformDependent0] jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable
java.lang.IllegalAccessException: class io.netty.util.internal.PlatformDependent0$6 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @64a294a6
at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
at java.base/java.lang.reflect.Method.invoke(Method.java:558)
…
2019.06.25 17:22:04 DEBUG app[][o.s.a.e.EsConnectorImpl] Connected to Elasticsearch node: [127.0.0.1:9001]
2019.06.25 17:22:08 DEBUG app[][o.e.c.t.TransportClientNodesService] failed to connect to node [{#transport#-1}{3Ll-Xv3BQs6TbwzpmYB2xg}{127.0.0.1}{127.0.0.1:9001}], ignoring...
org.elasticsearch.transport.ConnectTransportException: [][127.0.0.1:9001] connect_exception
at org.elasticsearch.transport.TcpTransport$ChannelsConnectedListener.onFailure(TcpTransport.java:1309)
at org.elasticsearch.action.ActionListener.lambda$toBiConsumer$2(ActionListener.java:100)
at org.elasticsearch.common.concurrent.CompletableContext.lambda$addListener$0(CompletableContext.java:42)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
at org.elasticsearch.common.concurrent.CompletableContext.completeExceptionally(CompletableContext.java:57)
at org.elasticsearch.transport.netty4.Netty4TcpChannel.lambda$new$1(Netty4TcpChannel.java:72)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:511)
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:504)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:483)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:424)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:121)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:327)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:343)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:591)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:508)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:470)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /127.0.0.1:9001
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:327)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340)
... 6 common frames omitted
Caused by: java.net.ConnectException: Connection refused
... 10 common frames omitted
es.log shows things just quietly going away:
…
2019.06.25 17:22:14 DEBUG es[][o.e.c.s.MasterService] processing [local-gateway-elected-state]: execute
2019.06.25 17:22:14 DEBUG es[][o.e.c.s.MasterService] cluster state updated, version [2], source [local-gateway-elected-state]
2019.06.25 17:22:14 DEBUG es[][o.e.c.s.MasterService] publishing cluster state version [2]
2019.06.25 17:22:14 DEBUG es[][o.e.c.s.ClusterApplierService] processing [apply cluster state (from master [master {sonarqube}{G2fGoHHIQDOrSBnCEL8thA}{D4Tkc8gpRSuQuC3TRjJlXQ}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube} committed version [2] source [local-gateway-elected-state]])]: execute
2019.06.25 17:22:14 DEBUG es[][o.e.c.s.ClusterApplierService] cluster state updated, version [2], source [apply cluster state (from master [master {sonarqube}{G2fGoHHIQDOrSBnCEL8thA}{D4Tkc8gpRSuQuC3TRjJlXQ}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube} committed version [2] source [local-gateway-elected-state]])]
2019.06.25 17:22:14 DEBUG es[][o.e.c.s.ClusterApplierService] applying cluster state version 2
2019.06.25 17:22:14 DEBUG es[][o.e.c.s.ClusterApplierService] apply cluster state with version 2
2019.06.25 17:22:14 DEBUG es[][o.e.c.s.ClusterApplierService] set locally applied cluster state to version 2
2019.06.25 17:22:14 DEBUG es[][o.e.c.s.ClusterApplierService] processing [apply cluster state (from master [master {sonarqube}{G2fGoHHIQDOrSBnCEL8thA}{D4Tkc8gpRSuQuC3TRjJlXQ}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube} committed version [2] source [local-gateway-elected-state]])]: took [7ms] done applying updated cluster state (version: 2, uuid: NSLXok60TV-CHMwMWPIpFw)
2019.06.25 17:22:14 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2019.06.25 17:22:14 DEBUG es[][o.e.c.s.MasterService] processing [local-gateway-elected-state]: took [10ms] done publishing updated cluster state (version: 2, uuid: NSLXok60TV-CHMwMWPIpFw)
2019.06.25 17:22:19 INFO es[][o.e.n.Node] stopping ...
2019.06.25 17:22:19 INFO es[][o.e.n.Node] stopped
2019.06.25 17:22:19 INFO es[][o.e.n.Node] closing ...
2019.06.25 17:22:19 INFO es[][o.e.n.Node] closed