Elastic Error upgrading

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this
    Hi all,

I’ve tried upgrading from sonarqube-8.9.1.44547 to sonarqube-9.4.0.54424 as detailed on the documents (Upgrade Guide | SonarQube Docs) but I’m getting the following error:

--> Wrapper Started as Service
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2022.04.28 14:23:40 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Program Files\sonarqube-9.4.0.54424\temp
2022.04.28 14:23:40 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9002, TCP: 127.0.0.1:50433]
2022.04.28 14:23:40 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\Program Files\sonarqube-9.4.0.54424\elasticsearch]: C:\Program Files\Java\jdk-11.0.5\bin\java -XX:+UseG1GC -Djava.io.tmpdir=C:\Program Files\sonarqube-9.4.0.54424\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djna.tmpdir=C:\Program Files\sonarqube-9.4.0.54424\temp -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j2.formatMsgNoLookups=true -Djava.locale.providers=COMPAT -Dcom.redhat.fips=false -Des.enforce.bootstrap.checks=true -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\Program Files\sonarqube-9.4.0.54424\elasticsearch -Des.path.conf=C:\Program Files\sonarqube-9.4.0.54424\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2022.04.28 14:23:40 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/common/util/concurrent/ConcurrentCollections
	at org.elasticsearch.common.util.StringLiteralDeduplicator.<init>(StringLiteralDeduplicator.java:23)
	at org.elasticsearch.common.settings.Settings.<clinit>(Settings.java:1510)
	at org.elasticsearch.cli.EnvironmentAwareCommand.createEnv(EnvironmentAwareCommand.java:82)
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
	at org.elasticsearch.cli.Command.main(Command.java:77)
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122)
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.common.util.concurrent.ConcurrentCollections
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 8 more
2022.04.28 14:23:41 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2022.04.28 14:23:41 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2022.04.28 14:23:41 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
Exception in thread "EventWatcher[ElasticSearch]" java.lang.NoClassDefFoundError: com/carrotsearch/hppc/ObjectContainer
	at org.elasticsearch.Version.<clinit>(Version.java:171)
	at org.elasticsearch.ElasticsearchException.<clinit>(ElasticsearchException.java:54)
	at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2695)
	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171)
	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2137)
	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2105)
	at org.elasticsearch.client.ClusterClient.health(ClusterClient.java:151)
	at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:64)
	at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:97)
	at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:82)
	at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:67)
	at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:223)
	at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:288)
Caused by: java.lang.ClassNotFoundException: com.carrotsearch.hppc.ObjectContainer
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 13 more
<-- Wrapper Stopped

Could you please provide any tip about this?

Thanks

Hi,

What shows up in es.log in your server logs?

 
Ann