Version of Sonarqube: 6.7.4
Error Message: [o.e.c.t.TransportClientNodesService] failed to connect to node [{#transport#-1}
I’m trying to get Sonarqube up and running on a staging server (linux) but when I try to get it started, I get the following error. I’ve tried Googling and Binging but I can’t find someone with a relatable issue. Here is the full log of the error:
2020.12.10 09:41:29 DEBUG app[i.netty.util.NetUtil] Loopback interface: lo (lo, 127.0.0.1)
2020.12.10 09:41:29 DEBUG app[i.netty.util.NetUtil] /proc/sys/net/core/somaxconn: 128
2020.12.10 09:41:29 DEBUG app[i.n.c.DefaultChannelId] -Dio.netty.machineId: 00:50:56:ff:fe:bc:4a:ac (auto-detected)
2020.12.10 09:41:29 DEBUG app[i.n.u.ResourceLeakDetector] -Dio.netty.leakDetection.level: simple
2020.12.10 09:41:29 DEBUG app[i.n.u.ResourceLeakDetector] -Dio.netty.leakDetection.maxRecords: 4
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.numHeapArenas: 0
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.numDirectArenas: 0
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.pageSize: 8192
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.maxOrder: 11
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.chunkSize: 16777216
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.tinyCacheSize: 512
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.smallCacheSize: 256
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.normalCacheSize: 64
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.maxCachedBufferCapacity: 32768
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.cacheTrimInterval: 8192
2020.12.10 09:41:29 DEBUG app[i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.useCacheForAllThreads: true
2020.12.10 09:41:29 DEBUG app[i.n.b.ByteBufUtil] -Dio.netty.allocator.type: pooled
2020.12.10 09:41:29 DEBUG app[i.n.b.ByteBufUtil] -Dio.netty.threadLocalDirectBufferSize: 65536
2020.12.10 09:41:29 DEBUG app[i.n.b.ByteBufUtil] -Dio.netty.maxThreadLocalCharBufferSize: 16384
2020.12.10 09:41:30 DEBUG app[o.e.c.t.TransportClientNodesService] failed to connect to node [{#transport#-1}{tcgudRnZSe-1bOquypwwtg}{127.0.0.1}{127.0.0.1:9001}], ignoring…
org.elasticsearch.transport.ConnectTransportException: [127.0.0.1:9001] connect_timeout[30s]
at org.elasticsearch.transport.netty4.Netty4Transport.connectToChannels(Netty4Transport.java:362)
at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:570)
at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:117)
at org.elasticsearch.transport.TransportService.openConnection(TransportService.java:351)
at org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler.doSample(TransportClientNodesService.java:407)
at org.elasticsearch.client.transport.TransportClientNodesService$NodeSampler.sample(TransportClientNodesService.java:357)
at org.elasticsearch.client.transport.TransportClientNodesService.addTransportAddresses(TransportClientNodesService.java:198)
at org.elasticsearch.client.transport.TransportClient.addTransportAddress(TransportClient.java:319)
at org.sonar.application.process.EsProcessMonitor.addHostToClient(EsProcessMonitor.java:186)
at org.sonar.application.process.EsProcessMonitor.buildTransportClient(EsProcessMonitor.java:177)
at org.sonar.application.process.EsProcessMonitor.getTransportClient(EsProcessMonitor.java:160)
at org.sonar.application.process.EsProcessMonitor.checkStatus(EsProcessMonitor.java:134)
at org.sonar.application.process.EsProcessMonitor.checkOperational(EsProcessMonitor.java:93)
at org.sonar.application.process.EsProcessMonitor.isOperational(EsProcessMonitor.java:78)
at org.sonar.application.process.SQProcess.refreshState(SQProcess.java:162)
at org.sonar.application.process.SQProcess$EventWatcher.run(SQProcess.java:221)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /127.0.0.1:9001
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:352)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:632)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused
… 10 common frames omitted