# Unable to start sonarQube after upgrade

**URL:** <https://community.sonarsource.com/t/unable-to-start-sonarqube-after-upgrade/69413>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube, java\
**Created:** [August 6, 2022, 5:01pm UTC](https://community.sonarsource.com/t/unable-to-start-sonarqube-after-upgrade/69413 "2022-08-06T17:01:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![syedsfayaz](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/syedsfayaz/32/24289_2.png) [@syedsfayaz](https://community.sonarsource.com/u/syedsfayaz)\
**Post date:** [August 6, 2022, 5:01pm UTC](https://community.sonarsource.com/t/unable-to-start-sonarqube-after-upgrade/69413/1 "2022-08-06T17:01:45Z")

</div>

Must-share information (formatted with [Markdown](https://commonmark.org/help/)):

- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)  
– Upgrading SonarQube 7.5 → 7.9.1  
– openjdk version “11.0.13” 2021-10-19  
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)  
– Postgres database 9.1

- what are you trying to achieve  
I am upgrading sonarQube to 1.9.1.

- what have you tried so far to achieve this  
I have unpacked the 7.9.1 and updated the wrapper.conf to point to OpenJDK11. Updated sonar.properties to point to database. When I run the sonar.sh start as a non root user. Service does not start and I am seeing below errors.

```auto
> Launching a JVM...
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
> Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
> 
> 2022.08.06 09:52:39 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /appl/sonar/sonarqube-7.9.6/temp
> 2022.08.06 09:52:39 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
> 2022.08.06 09:52:39 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/appl/sonar/sonarqube-7.9.6/elasticsearch]: /appl/sonar/sonarqube-7.9.6/elasticsearch/bin/elasticsearch
> 2022.08.06 09:52:39 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
> 2022.08.06 09:52:39 INFO app[][o.e.p.PluginsService] no modules loaded
> 2022.08.06 09:52:39 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
> OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
> [0.001s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/appl/sonar/sonarqube-7.9.6/logs/sonarqube-search-gc.log instead.
> Unrecognized VM option 'UseGCLogFileRotation'
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> 2022.08.06 09:52:39 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
> 2022.08.06 09:52:39 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
> 2022.08.06 09:52:39 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
> 2022.08.06 09:52:40 INFO app[][o.e.c.t.TransportClientNodesService] failed to get node info for {#transport#-1}{3HSQxfzaQvK6gAKlpoyaLw}{127.0.0.1}{127.0.0.1:9001}, disconnecting...
> java.lang.IllegalStateException: Future got interrupted
> at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:60)
> at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:34)
> at org.elasticsearch.transport.ConnectionManager.internalOpenConnection(ConnectionManager.java:209)
> at org.elasticsearch.transport.ConnectionManager.openConnection(ConnectionManager.java:80)
> at org.elasticsearch.transport.TransportService.openConnection(TransportService.java:367)
> at org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler.doSample(TransportClientNodesService.java:411)
> at org.elasticsearch.client.transport.TransportClientNodesService$NodeSampler.sample(TransportClientNodesService.java:362)
> at org.elasticsearch.client.transport.TransportClientNodesService.addTransportAddresses(TransportClientNodesService.java:201)
> at org.elasticsearch.client.transport.TransportClient.addTransportAddress(TransportClient.java:342)
> at org.sonar.application.es.EsConnectorImpl$MinimalTransportClient.<init>(EsConnectorImpl.java:108)
> 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)
> Caused by: java.lang.InterruptedException: null
> at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1343)
> at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:251)
> at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:94)
> at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:57)
> ... 17 common frames omitted
> <-- Wrapper Stopped

```

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [August 8, 2022, 8:21am UTC](https://community.sonarsource.com/t/unable-to-start-sonarqube-after-upgrade/69413/2 "2022-08-08T08:21:50Z")

</div>

Here’s the issue:

> [@syedsfayaz](#):
>
> ```auto
> > OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
> > [0.001s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/appl/sonar/sonarqube-7.9.6/logs/sonarqube-search-gc.log instead.
> > Unrecognized VM option 'UseGCLogFileRotation'
> > Error: Could not create the Java Virtual Machine.
> > Error: A fatal exception has occurred. Program will exit.
> 
> ```

Did you copy any other information from your _warpper.conf_ or _sonar.properties_ file, such as Java options?

---

<div class="post-metadata">

**Author:** ![syedsfayaz](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/syedsfayaz/32/24289_2.png) [@syedsfayaz](https://community.sonarsource.com/u/syedsfayaz)\
**Post date:** [August 8, 2022, 9:29pm UTC](https://community.sonarsource.com/t/unable-to-start-sonarqube-after-upgrade/69413/3 "2022-08-08T21:29:03Z")

</div>

Yes, I had these options enabled in my previous version that I did copy. I figured out that these are not supported by java 11.

```auto
sonar.ce.javaOpts=-Xmx4096m -Xms512m -verbose:gc -Xloggc:/appl/sonar/sonarqube-7.9.6/logs/sonarqube-ce-gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCCause -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/appl/sonar/heapdumps/ce

sonar.web.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=~/heapdumps/sonar.web.hprof -Xloggc:/appl/sonar/sonarqube-7.9.6/logs/sonarqube-web-gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M

sonar.web.javaOpts=-Xmx512m -Xms128m -verbose:gc -Xloggc:/appl/sonar/sonarqube-7.9.6/logs/sonarqube-web-gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCCause -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/appl/sonar/heapdumps/web

```
