Wrapper stopped

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    version- 8.1 community edition

  • what are you trying to achieve
    install in win10

  • what have you tried so far to achieve this
    wrapper stoped

wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM…
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 |
jvm 1 | WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11 to run
jvm 1 | java.lang.IllegalStateException: SonarQube requires Java 11 to run
jvm 1 | at com.google.common.base.Preconditions.checkState(Preconditions.java:508)
jvm 1 | at org.sonar.application.App.checkJavaVersion(App.java:92)
jvm 1 | at org.sonar.application.App.start(App.java:57)
jvm 1 | at org.sonar.application.App.main(App.java:96)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
jvm 1 | at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1 | at java.lang.Thread.run(Unknown Source)
wrapper | <-- Wrapper Stopped

Here is the reason why your instance is failing.

1 Like

Hi,
I am using the latest version of community edition v8.1 (Java v13.0.1) and trying to install Sonar on Windows 10. I get the following error when sonar is started:

C:\Sonar\sonarqube-8.1.0.31237\bin\windows-x86-64>StartSonar.bat
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM…
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2020.02.07 13:20:32 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Sonar\sonarqube-8.1.0.31237\temp
jvm 1 | 2020.02.07 13:20:32 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1 | 2020.02.07 13:20:32 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [C:\Sonar\sonarqube-8.1.0.31237\elasticsearch]: C:\Program Files\Java\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=C:\Sonar\sonarqube-8.1.0.31237\temp -XX:ErrorFile=…/logs/es_hs_err_pid%p.log -Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\Sonar\sonarqube-8.1.0.31237\elasticsearch -Des.path.conf=C:\Sonar\sonarqube-8.1.0.31237\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
jvm 1 | 2020.02.07 13:20:32 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | Java HotSpot™ 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
jvm 1 | 2020.02.07 13:20:33 INFO app[o.e.p.PluginsService] no modules loaded
jvm 1 | 2020.02.07 13:20:33 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1 | 2020.02.07 13:20:34 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
jvm 1 | 2020.02.07 13:20:34 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1 | 2020.02.07 13:20:34 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
jvm 1 | 2020.02.07 13:20:35 INFO app[o.e.c.t.TransportClientNodesService] failed to get node info for {#transport#-1}{H03rIsIkRviikSSdRP4HkA}{127.0.0.1}{127.0.0.1:9001}, disconnecting…
jvm 1 | java.lang.IllegalStateException: Future got interrupted
jvm 1 | at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:60)
jvm 1 | at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:34)
jvm 1 | at org.elasticsearch.transport.ConnectionManager.internalOpenConnection(ConnectionManager.java:209)
jvm 1 | at org.elasticsearch.transport.ConnectionManager.openConnection(ConnectionManager.java:80)
jvm 1 | at org.elasticsearch.transport.TransportService.openConnection(TransportService.java:367)
jvm 1 | at org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler.doSample(TransportClientNodesService.java:411)
jvm 1 | at org.elasticsearch.client.transport.TransportClientNodesService$NodeSampler.sample(TransportClientNodesService.java:362)
jvm 1 | at org.elasticsearch.client.transport.TransportClientNodesService.addTransportAddresses(TransportClientNodesService.java:201)
jvm 1 | at org.elasticsearch.client.transport.TransportClient.addTransportAddress(TransportClient.java:342)
jvm 1 | at org.sonar.application.es.EsConnectorImpl$MinimalTransportClient.(EsConnectorImpl.java:108)
jvm 1 | at org.sonar.application.es.EsConnectorImpl.buildTransportClient(EsConnectorImpl.java:89)
jvm 1 | at org.sonar.application.es.EsConnectorImpl.getTransportClient(EsConnectorImpl.java:74)
jvm 1 | at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:61)
jvm 1 | at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:88)
jvm 1 | at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:73)
jvm 1 | at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:58)
jvm 1 | at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:220)
jvm 1 | at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:285)
jvm 1 | Caused by: java.lang.InterruptedException: null
jvm 1 | at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1343)
jvm 1 | at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:251)
jvm 1 | at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:94)
jvm 1 | at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:57)
jvm 1 | … 17 common frames omitted
wrapper | <-- Wrapper Stopped

Welcome :slight_smile:

this error is ES related

we need to check the %SONARQUBE_HOME%\logs\es.log to get more details, use loglevel Debug.

Gilbert

The log looks like this (failed to obtain node locks):
2020.02.07 13:20:24 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[(C:)]], net usable_space [417.9gb], net total_space [476.6gb], types [NTFS]
2020.02.07 13:20:24 INFO es[o.e.e.NodeEnvironment] heap size [494.9mb], compressed ordinary object pointers [true]
2020.02.07 13:20:24 INFO es[o.e.n.Node] node name [sonarqube], node ID [l3nE-5ZHQ1GxjgZ-TbV96w]
2020.02.07 13:20:24 INFO es[o.e.n.Node] version[6.8.4], pid[5288], build[unknown/unknown/bca0c8d/2019-10-16T06:19:49.319352Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot™ 64-Bit Server VM/13.0.1/13.0.1+9]
2020.02.07 13:20:24 INFO es[o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -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, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Sonar\sonarqube-8.1.0.31237\temp, -XX:ErrorFile=…/logs/es_hs_err_pid%p.log, -Xmx512m, -Xms512m, -XX:+HeapDumpOnOutOfMemoryError, -Delasticsearch, -Des.path.home=C:\Sonar\sonarqube-8.1.0.31237\elasticsearch, -Des.path.conf=C:\Sonar\sonarqube-8.1.0.31237\temp\conf\es]
2020.02.07 13:20:24 INFO es[o.e.p.PluginsService] loaded module [analysis-common]
2020.02.07 13:20:24 INFO es[o.e.p.PluginsService] loaded module [lang-painless]
2020.02.07 13:20:24 INFO es[o.e.p.PluginsService] loaded module [mapper-extras]
2020.02.07 13:20:24 INFO es[o.e.p.PluginsService] loaded module [parent-join]
2020.02.07 13:20:24 INFO es[o.e.p.PluginsService] loaded module [percolator]
2020.02.07 13:20:24 INFO es[o.e.p.PluginsService] loaded module [reindex]
2020.02.07 13:20:24 INFO es[o.e.p.PluginsService] loaded module [repository-url]
2020.02.07 13:20:24 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]
2020.02.07 13:20:24 INFO es[o.e.p.PluginsService] no plugins loaded
2020.02.07 13:20:25 WARN es[o.e.d.c.s.Settings] [http.enabled] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
2020.02.07 13:20:26 INFO es[o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2020.02.07 13:20:26 INFO es[o.e.n.Node] initialized
2020.02.07 13:20:26 INFO es[o.e.n.Node] starting …
2020.02.07 13:20:27 INFO es[o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.02.07 13:20:30 INFO es[o.e.c.s.MasterService] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {sonarqube}{l3nE-5ZHQ1GxjgZ-TbV96w}{B1UJ_o9CTLCIYmdZlgTHtA}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}
2020.02.07 13:20:30 INFO es[o.e.c.s.ClusterApplierService] new_master {sonarqube}{l3nE-5ZHQ1GxjgZ-TbV96w}{B1UJ_o9CTLCIYmdZlgTHtA}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: apply cluster state (from master [master {sonarqube}{l3nE-5ZHQ1GxjgZ-TbV96w}{B1UJ_o9CTLCIYmdZlgTHtA}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
2020.02.07 13:20:30 INFO es[o.e.n.Node] started
2020.02.07 13:20:30 INFO es[o.e.g.GatewayService] recovered [0] indices into cluster_state
2020.02.07 13:20:34 ERROR es[o.e.b.Bootstrap] Exception
java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\Sonar\sonarqube-8.1.0.31237\data\es6]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:300) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.node.Node.(Node.java:296) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.node.Node.(Node.java:266) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) [elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.8.4.jar:6.8.4]
2020.02.07 13:20:34 WARN es[o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\Sonar\sonarqube-8.1.0.31237\data\es6]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.8.4.jar:6.8.4]
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\Sonar\sonarqube-8.1.0.31237\data\es6]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:300) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.node.Node.(Node.java:296) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.node.Node.(Node.java:266) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.4.jar:6.8.4]
… 6 more
2020.02.07 13:20:36 INFO es[o.e.c.m.MetaDataCreateIndexService] [metadatas] creating index, cause [api], templates , shards [1]/[0], mappings
2020.02.07 13:20:37 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[metadatas][0]] …]).
2020.02.07 13:20:37 INFO es[o.e.c.m.MetaDataMappingService] [metadatas/OKoFb55mTqGU8brDDajBbg] create_mapping [metadata]
2020.02.07 13:20:37 INFO es[o.e.c.m.MetaDataCreateIndexService] [components] creating index, cause [api], templates , shards [5]/[0], mappings
2020.02.07 13:20:37 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[components][4]] …]).
2020.02.07 13:20:37 INFO es[o.e.c.m.MetaDataMappingService] [components/VjWttrZsT6Kb5uWd9YRDxg] create_mapping [auth]
2020.02.07 13:20:37 INFO es[o.e.c.m.MetaDataCreateIndexService] [projectmeasures] creating index, cause [api], templates , shards [5]/[0], mappings
2020.02.07 13:20:37 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[projectmeasures][4]] …]).
2020.02.07 13:20:37 INFO es[o.e.c.m.MetaDataMappingService] [projectmeasures/hIdkURYrRa2GxqgmveHuyg] create_mapping [auth]
2020.02.07 13:20:37 INFO es[o.e.c.m.MetaDataCreateIndexService] [rules] creating index, cause [api], templates , shards [2]/[0], mappings
2020.02.07 13:20:38 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[rules][0]] …]).
2020.02.07 13:20:38 INFO es[o.e.c.m.MetaDataMappingService] [rules/nNUruWVoQFWnAjgXfuCoBw] create_mapping [rule]
2020.02.07 13:20:38 INFO es[o.e.c.m.MetaDataCreateIndexService] [issues] creating index, cause [api], templates , shards [5]/[0], mappings
2020.02.07 13:20:38 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[issues][4]] …]).
2020.02.07 13:20:38 INFO es[o.e.c.m.MetaDataMappingService] [issues/LL0ijqThTyidzWhqU9L6Ww] create_mapping [auth]
2020.02.07 13:20:38 INFO es[o.e.c.m.MetaDataCreateIndexService] [users] creating index, cause [api], templates , shards [1]/[0], mappings
2020.02.07 13:20:38 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[users][0]] …]).
2020.02.07 13:20:38 INFO es[o.e.c.m.MetaDataMappingService] [users/UYvtcFRISq2_q-YPUSerkw] create_mapping [user]
2020.02.07 13:20:38 INFO es[o.e.c.m.MetaDataCreateIndexService] [views] creating index, cause [api], templates , shards [5]/[0], mappings
2020.02.07 13:20:38 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[views][4]] …]).
2020.02.07 13:20:38 INFO es[o.e.c.m.MetaDataMappingService] [views/uAf6ZvERS0eQDfiuYyUJfg] create_mapping [view]
2020.02.07 13:20:53 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [30s] to [-1]
2020.02.07 13:20:53 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [30s] to [-1]
2020.02.07 13:20:53 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [-1] to [30s]
2020.02.07 13:20:53 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [-1] to [30s]
2020.02.07 13:20:53 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [30s] to [-1]
2020.02.07 13:20:53 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [30s] to [-1]
2020.02.07 13:20:53 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [-1] to [30s]
2020.02.07 13:20:53 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [-1] to [30s]

AFAIK, Sonarqube is not Java13 ready yet.
Try with Java 11 instead.

Get the same error when I try with JAVA 11.0.6 as well.

Please increase the loglevel to debug and attach the es.log - that’s better as
putting the log content inline.

Did you check the write permissions ?
Is there enough free disc space available ?

There’s plenty of free disk space. And I do have write permissions on the folder. The error seems to be different now.
–> Wrapper Started as Console
wrapper | Launching a JVM…
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2020.02.07 16:05:47 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Sonar\sonarqube-8.1.0.31237\temp
jvm 1 |
jvm 1 | WrapperSimpleApp: Encountered an error running main: java.nio.file.FileSystemException: C:\Sonar\sonarqube-8.1.0.31237\temp\ce-exploded-plugins\csharp\sonar-csharp-plugin-8.1.0.13383.jar: The process cannot access the file because it is being used by another process.
jvm 1 |
jvm 1 | java.nio.file.FileSystemException: C:\Sonar\sonarqube-8.1.0.31237\temp\ce-exploded-plugins\csharp\sonar-csharp-plugin-8.1.0.13383.jar: The process cannot access the file because it is being used by another process.
jvm 1 |
jvm 1 | at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
jvm 1 | at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
jvm 1 | at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
jvm 1 | at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
jvm 1 | at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
jvm 1 | at java.base/java.nio.file.Files.delete(Files.java:1145)
jvm 1 | at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:192)
jvm 1 | at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:186)
jvm 1 | at java.base/java.nio.file.Files.walkFileTree(Files.java:2803)
jvm 1 | at java.base/java.nio.file.Files.walkFileTree(Files.java:2875)
jvm 1 | at org.sonar.process.FileUtils2.deleteDirectoryImpl(FileUtils2.java:148)
jvm 1 | at org.sonar.process.FileUtils2.deleteDirectory(FileUtils2.java:121)
jvm 1 | at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.visitFile(AppFileSystem.java:117)
jvm 1 | at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.visitFile(AppFileSystem.java:101)
jvm 1 | at java.base/java.nio.file.Files.walkFileTree(Files.java:2803)
jvm 1 | at org.sonar.application.AppFileSystem.createOrCleanTempDirectory(AppFileSystem.java:96)
jvm 1 | at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:62)
jvm 1 | at org.sonar.application.App.start(App.java:63)
jvm 1 | at org.sonar.application.App.main(App.java:96)
jvm 1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jvm 1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jvm 1 | at java.base/java.lang.reflect.Method.invoke(Method.java:567)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1 | at java.base/java.lang.Thread.run(Thread.java:830)
wrapper | <-- Wrapper Stopped

I’ve got it to work, finally… Thanks for all your help!

Would you mind posting your solution ?
Might help others with similar problems.

Sure. Here are the steps I followed.

  1. Check the JAVA version (as you indicated, version 13 may be an issue though I am able to get it to run without any problem on version 12). For now, to be safe, I’ve reverted back to version 11.x of Java.
  2. I changed the wrapper.config setting to point to the full-path of the JAVA_HOME (e.g. ‘wrapper.java.command=C:\Program Files\Java\bin\java’) instead of simply having ‘java’
  3. Then I was making the mistake of starting the NT service before I started sonar which suggests (rightly so) that another process is using the csharp plugin file. Instead, simply run ‘StartSonar.bat’ from command-line and everything works just fine.

Thanks!

Thanks.
For production instance i recommend running Sonarqube via service, it’s easier for
monitoring … etc.
If you’re also use Apache reverse proxy running as service, then use windows service startup type
Automatic = will start at boot time for Apache service
Automatic delayed = will start after boot time for Sonarqube service

Thanks for the info, Gilbert.

Best

  1. I have the JAVA 11.0.7 version.
  2. Set the env variable
  3. changed wrapper.conf to C:\Program Files\Java\jdk-11.0.7\bin
  4. Ran “StartSonar.bat”

But still seeing the Wrapper Stopped error. could someone please help?

Hi Rashmi,

I had the same issue, I realized that it is because of fail connection to the db, a correct connection string is not enough, in the case of MS SQL must enable the Named Pipes and TCP/IP protocols (these 2 protocols disabled by default):

image

Hope this help.

Tried installing this is the error message i got. Need help please.
.java:591)
jvm 1 | at java.base/java.lang.Thread.run(Thread.java:834)
jvm 1 | uncaught exception in thread [main]
jvm 1 | BindHttpException[Failed to bind to 127.0.0.1:9001]; nested: BindException[Address already in use: bind];
jvm 1 | Likely root cause: java.net.BindException: Address already in use: bind
jvm 1 | at java.base/sun.nio.ch.Net.bind0(Native Method)
jvm 1 | at java.base/sun.nio.ch.Net.bind(Net.java:459)
jvm 1 | at java.base/sun.nio.ch.Net.bind(Net.java:448)
jvm 1 | at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
jvm 1 | at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
jvm 1 | at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:562)
jvm 1 | at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506)
jvm 1 | at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491)
jvm 1 | at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973)
jvm 1 | at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:260)
jvm 1 | at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356)
jvm 1 | at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
jvm 1 | at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
jvm 1 | at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
jvm 1 | at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
jvm 1 | at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
jvm 1 | at java.base/java.lang.Thread.run(Thread.java:834)
jvm 1 | For complete error details, refer to the log at C:\sonarqube-8.9.10.61524\logs\sonarqube.log
jvm 1 | 2023.08.30 07:24:24 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
jvm 1 | 2023.08.30 07:24:24 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1 | 2023.08.30 07:24:24 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | ← Wrapper Stopped

Welcome :slight_smile:

don’t hijack threads 3 years old!

the problem is

see Installation error - #4 by Rebse

Gilbert

hi
i did the same
i installed jdk 11.0.12 version
sonar sonarqube-8.9.10.61524

but still facing the same.
also update the wrapper config