Upgrading SonarQube 7.1 to 7.9.3

Hello,

Im tryinig to upgrade from 7.1 to 7.9
OS- Ubuntu 16.04
I did check all the prerequisites to have my latest version running but still it is failing for some reason and i’m unable to find it

sysctl -w vm.max_map_count=262144
sysctl -w fs.file-max=65536
ulimit -n 65536
ulimit -u 4096

updated tis file /etc/sysctl.d/99-sonarqube.conf

sonarqube   -   nofile   65536
sonarqube   -   nproc    4096

I have set sonar.sh as RUN_AS_USER=sonar, i tried running this script from user “sonar” and from user “root”… My old version 7.1 runs perfectly even if i run the script with the users “root”

Ownership of all the files of sonarqube7.9.3 are set to sonar:sonar

changes are already done to sonar.properties as similar as old sonar.properties and wrapper.conf

This is installed
openjdk version “11.0.5” 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-2ubuntu116.04)
OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-2ubuntu116.04, mixed mode, sharing)

Here are the sonar logs:-

--> 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.

2020.07.05 12:59:11 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube-7.9.3/temp
2020.07.05 12:59:11 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.07.05 12:59:12 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]]                                                                      from [/opt/sonarqube-7.9.3/elasticsearch]: /opt/sonarqube-7.9.3/elasticsearch/bin/elasticsearch
2020.07.05 12:59:12 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.
2020.07.05 12:59:13 INFO  app[][o.e.p.PluginsService] no modules loaded
2020.07.05 12:59:13 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [force_merge], size [1], queue size [unbound                                                                     ed]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [fetch_shard_started], core [1], max [4], ke                                                                     ep alive [5m]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [listener], size [1], queue size [unbounded]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [index], size [2], queue size [200]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [refresh], core [1], max [1], keep alive [5m                                                                     ]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [generic], core [4], max [128], keep alive [                                                                     30s]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [warmer], core [1], max [1], keep alive [5m]
2020.07.05 12:59:13 DEBUG app[][o.e.c.u.c.QueueResizingEsThreadPoolExecutor] thread pool [_client_/search] will adjust q                                                                     ueue by [50] when determining automatic queue size
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [search], size [4], queue size [1k]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [flush], core [1], max [1], keep alive [5m]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [fetch_shard_store], core [1], max [4], keep                                                                      alive [5m]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [management], core [1], max [5], keep alive                                                                      [5m]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [get], size [2], queue size [1k]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [analyze], size [1], queue size [16]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [write], size [2], queue size [200]
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [snapshot], core [1], max [1], keep alive [5                                                                     m]
2020.07.05 12:59:13 DEBUG app[][o.e.c.u.c.QueueResizingEsThreadPoolExecutor] thread pool [_client_/search_throttled] wil                                                                     l adjust queue by [50] when determining automatic queue size
2020.07.05 12:59:13 DEBUG app[][o.e.t.ThreadPool] created thread pool: name [search_throttled], size [1], queue size [10                                                                     0]
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent0] -Dio.netty.noUnsafe: false
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent0] Java version: 11
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent0] sun.misc.Unsafe.theUnsafe: available
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent0] sun.misc.Unsafe.copyMemory: available
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent0] java.nio.Buffer.address: available
2020.07.05 12:59:13 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)
        at io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:218)
        at io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:212)
        at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:80)
        at io.netty.util.ConstantPool.<init>(ConstantPool.java:32)
        at io.netty.util.AttributeKey$1.<init>(AttributeKey.java:27)
        at io.netty.util.AttributeKey.<clinit>(AttributeKey.java:27)
        at org.elasticsearch.transport.netty4.Netty4Transport.<clinit>(Netty4Transport.java:219)
        at org.elasticsearch.transport.Netty4Plugin.getSettings(Netty4Plugin.java:57)
        at org.elasticsearch.plugins.PluginsService.lambda$getPluginSettings$0(PluginsService.java:89)
        at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
        at org.elasticsearch.plugins.PluginsService.getPluginSettings(PluginsService.java:89)
        at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:147)
        at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:277)
        at org.sonar.application.es.EsConnectorImpl$MinimalTransportClient.<init>(EsConnectorImpl.java:103)
        at org.sonar.application.es.EsConnectorImpl.buildTransportClient(EsConnectorImpl.java:89)
        at org.sonar.application.es.EsConnectorImpl.getTransportClient(EsConnectorImpl.java:74)
        at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:61)
        at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:88)
        at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:73)
        at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:58)
        at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:201)
        at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:258)
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent0] java.nio.Bits.unaligned: available, true
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent0] jdk.internal.misc.Unsafe.allocateUninitializedArray(int): un                                                                     available
java.lang.IllegalAccessException: class io.netty.util.internal.PlatformDependent0$6 cannot access class jdk.internal.mis                                                                     c.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)
        at io.netty.util.internal.PlatformDependent0$6.run(PlatformDependent0.java:334)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:325)
        at io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:212)
        at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:80)
        at io.netty.util.ConstantPool.<init>(ConstantPool.java:32)
        at io.netty.util.AttributeKey$1.<init>(AttributeKey.java:27)
        at io.netty.util.AttributeKey.<clinit>(AttributeKey.java:27)
        at org.elasticsearch.transport.netty4.Netty4Transport.<clinit>(Netty4Transport.java:219)
        at org.elasticsearch.transport.Netty4Plugin.getSettings(Netty4Plugin.java:57)
        at org.elasticsearch.plugins.PluginsService.lambda$getPluginSettings$0(PluginsService.java:89)
        at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
        at org.elasticsearch.plugins.PluginsService.getPluginSettings(PluginsService.java:89)
        at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:147)
        at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:277)
        at org.sonar.application.es.EsConnectorImpl$MinimalTransportClient.<init>(EsConnectorImpl.java:103)
        at org.sonar.application.es.EsConnectorImpl.buildTransportClient(EsConnectorImpl.java:89)
        at org.sonar.application.es.EsConnectorImpl.getTransportClient(EsConnectorImpl.java:74)
        at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:61)
        at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:88)
        at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:73)
        at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:58)
        at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:201)
        at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:258)
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent0] java.nio.DirectByteBuffer.<init>(long, int): unavailable
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent] sun.misc.Unsafe: available
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent] maxDirectMemory: 33554432 bytes (maybe)
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent] -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent] -Dio.netty.bitMode: 64 (sun.arch.data.model)
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent] -Dio.netty.maxDirectMemory: -1 bytes
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent] -Dio.netty.uninitializedArrayAllocationThreshold: -1
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.CleanerJava9] java.nio.ByteBuffer.cleaner(): available
2020.07.05 12:59:13 DEBUG app[][i.n.u.i.PlatformDependent] -Dio.netty.noPreferDirect: false
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Module execution: 161ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] TypeListeners creation: 6ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Scopes creation: 19ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Converters creation: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Binding creation: 10ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Private environment creation: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Injector construction: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Binding initialization: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Binding indexing: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Collecting injection requests: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Binding validation: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Static validation: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Instance member validation: 8ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Provider verification: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Static member injection: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Instance injection: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.i.i.Stopwatch] Preloading singletons: 0ms
2020.07.05 12:59:16 DEBUG app[][o.e.c.t.TransportClientNodesService] node_sampler_interval[5s]
2020.07.05 12:59:16 DEBUG app[][i.n.c.MultithreadEventLoopGroup] -Dio.netty.eventLoopThreads: 4
2020.07.05 12:59:16 DEBUG app[][i.n.c.n.NioEventLoop] -Dio.netty.noKeySetOptimization: false
2020.07.05 12:59:16 DEBUG app[][i.n.c.n.NioEventLoop] -Dio.netty.selectorAutoRebuildThreshold: 512
2020.07.05 12:59:16 DEBUG app[][i.n.u.i.PlatformDependent] org.jctools-core.MpscChunkedArrayQueue: available
2020.07.05 12:59:16 DEBUG app[][o.e.c.t.TransportClientNodesService] adding address [{#transport#-1}{8Uhl3nWDTfq1CnBhOuw                                                                     SAg}{127.0.0.1}{127.0.0.1:9001}]
2020.07.05 12:59:16 DEBUG app[][i.n.c.DefaultChannelId] -Dio.netty.processId: 14515 (auto-detected)
2020.07.05 12:59:16 DEBUG app[][i.netty.util.NetUtil] -Djava.net.preferIPv4Stack: false
2020.07.05 12:59:16 DEBUG app[][i.netty.util.NetUtil] -Djava.net.preferIPv6Addresses: false
2020.07.05 12:59:16 DEBUG app[][i.netty.util.NetUtil] Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
2020.07.05 12:59:16 DEBUG app[][i.netty.util.NetUtil] /proc/sys/net/core/somaxconn: 128
2020.07.05 12:59:16 DEBUG app[][i.n.c.DefaultChannelId] -Dio.netty.machineId: 00:50:56:ff:fe:a5:c2:db (auto-detected)
2020.07.05 12:59:16 DEBUG app[][i.n.u.i.InternalThreadLocalMap] -Dio.netty.threadLocalMap.stringBuilder.initialSize: 102                                                                     4
2020.07.05 12:59:16 DEBUG app[][i.n.u.i.InternalThreadLocalMap] -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
2020.07.05 12:59:16 DEBUG app[][i.n.u.ResourceLeakDetector] -Dio.netty.leakDetection.level: simple
2020.07.05 12:59:16 DEBUG app[][i.n.u.ResourceLeakDetector] -Dio.netty.leakDetection.targetRecords: 4
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.numHeapArenas: 0
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.numDirectArenas: 0
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.pageSize: 8192
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.maxOrder: 11
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.chunkSize: 16777216
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.tinyCacheSize: 512
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.smallCacheSize: 256
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.normalCacheSize: 64
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.maxCachedBufferCapacity: 32768
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.cacheTrimInterval: 8192
2020.07.05 12:59:16 DEBUG app[][i.n.b.PooledByteBufAllocator] -Dio.netty.allocator.useCacheForAllThreads: true
2020.07.05 12:59:16 DEBUG app[][i.n.b.ByteBufUtil] -Dio.netty.allocator.type: pooled
2020.07.05 12:59:16 DEBUG app[][i.n.b.ByteBufUtil] -Dio.netty.threadLocalDirectBufferSize: 0
2020.07.05 12:59:16 DEBUG app[][i.n.b.ByteBufUtil] -Dio.netty.maxThreadLocalCharBufferSize: 16384
2020.07.05 12:59:16 DEBUG app[][o.e.c.t.TransportClientNodesService] failed to connect to node [{#transport#-1}{8Uhl3nWD                                                                     Tfq1CnBhOuwSAg}{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
2020.07.05 12:59:16 DEBUG app[][o.s.a.e.EsConnectorImpl] Connected to Elasticsearch node: [127.0.0.1:9001]
2020.07.05 12:59:21 DEBUG app[][o.e.c.t.TransportClientNodesService] failed to connect to node [{#transport#-1}{8Uhl3nWD                                                                     Tfq1CnBhOuwSAg}{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
2020.07.05 12:59:26 DEBUG app[][i.n.b.AbstractByteBuf] -Dio.netty.buffer.checkAccessible: true
2020.07.05 12:59:26 DEBUG app[][i.n.b.AbstractByteBuf] -Dio.netty.buffer.checkBounds: true
2020.07.05 12:59:26 DEBUG app[][i.n.u.ResourceLeakDetectorFactory] Loaded default ResourceLeakDetector: io.netty.util.Re                                                                     sourceLeakDetector@6a5626de
2020.07.05 12:59:26 DEBUG app[][i.n.util.Recycler] -Dio.netty.recycler.maxCapacityPerThread: 4096
2020.07.05 12:59:26 DEBUG app[][i.n.util.Recycler] -Dio.netty.recycler.maxSharedCapacityFactor: 2
2020.07.05 12:59:26 DEBUG app[][i.n.util.Recycler] -Dio.netty.recycler.linkCapacity: 16
2020.07.05 12:59:26 DEBUG app[][i.n.util.Recycler] -Dio.netty.recycler.ratio: 8
2020.07.05 12:59:26 DEBUG app[][o.e.t.ConnectionManager] connected to node [{sonarqube}{XaTKXjoOSuON4-0p-YY8sg}{TLOKdX-Q                                                                     SSqmRVhTn0eCig}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}]
2020.07.05 12:59:26 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2020.07.05 12:59:26 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]                                                                     ] from [/opt/sonarqube-7.9.3]: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-                                                                     8 -Djava.io.tmpdir=/opt/sonarqube-7.9.3/temp --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang                                                                     =ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Xmx512m -Xms1                                                                     28m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*:/opt/sonarqube-7.9.3/l                                                                     ib/jdbc/postgresql/postgresql-42.2.5.jar org.sonar.server.app.WebServer /opt/sonarqube-7.9.3/temp/sq-process659126101558                                                                     238383properties
2020.07.05 12:59:34 DEBUG app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [web]: 0
2020.07.05 12:59:34 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2020.07.05 12:59:35 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2020.07.05 12:59:35 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.07.05 12:59:35 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2020.07.05 12:59:35 DEBUG app[][o.s.a.SchedulerImpl] Stopping [ce]...
2020.07.05 12:59:35 DEBUG app[][o.s.a.SchedulerImpl] Stopping [web]...
2020.07.05 12:59:35 DEBUG app[][o.s.a.SchedulerImpl] Stopping [es]...
2020.07.05 12:59:36 DEBUG app[][o.e.c.t.TransportClientNodesService] failed to connect to node [{#transport#-1}{8Uhl3nWD                                                                     Tfq1CnBhOuwSAg}{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
<-- Wrapper Stopped

Hi,

I know you turned on debug logging to get more information to debug your problem, but the extra stacktraces we’re seeing as a result are actually benign (in the sense that a strange lump on your neck can be benign - unfortunate but harmless). You need to check your other server logs to find the problem (most likely candidate is web.log, followed by ce.log). In doing so, I think you’ll find that your life is simpler if you tune logging back to info first.

 
Ann

Hello,

Thanks for the response. Just now I checked my mail and your reply. Last late night it was resolved and now it is moved from 7.1 to 7.9 although data migration took more than hour but everything is good now.

I removed the existing new setup of 7.9 and restarted the whole steps from the start and it worked by this i realized i had messed up with ownership and with user=sonar in sonar.sh script…

Things are now good, thanks @Cameron & @Quentin for formatting my query correctly, i’m very bad in that.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.