Unable to start sonarqube 8.9.1


I am facing the below error while starting sonar 8.9.1 and unable to start it

→ Wrapper Started as Daemon
Launching a JVM…
WrapperManager class initialized by thread: main Using classloader: jdk.internal.loader.ClassLoaders$AppClassLoader@4b85612c
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org

  • Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.*

Wrapper Manager: JVM #1
Running a 64-bit JVM.
Wrapper Manager: Registering shutdown hook
Wrapper Manager: Using wrapper
Load native library. One or more attempts may fail if platform specific libraries do not exist.
Loading native library failed: libwrapper-linux-x86-64.so Cause: java.lang.UnsatisfiedLinkError: no wrapper-linux-x86-64 in java.library.path: [./lib]
Loaded native library: libwrapper.so
Calling native initialization method.
Inside native WrapperManager initialization method
Java Version : 11.0.11+9-LTS-194 Java HotSpot™ 64-Bit Server VM
Java VM Vendor : Oracle Corporation

Control event monitor thread started.
Startup runner thread started.
WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@55f3ddb1, args[]) called by thread: main
Communications runner thread started.
Open socket to wrapper…Wrapper-Connection
Opened Socket from 31000 to 32000
Send a packet KEY : B1hKGFQK6013o97j
Received a packet LOW_LOG_LEVEL : 0
Wrapper Manager: LowLogLevel from Wrapper is 0
Received a packet PING_TIMEOUT : 0
PingTimeout from Wrapper is 0
Received a packet PROPERTIES : (Property Values)
Received a packet START : start
calling WrapperListener.start()
Waiting for WrapperListener.start runner thread to complete.
WrapperListener.start runner thread started.
WrapperSimpleApp: start(args) Will wait up to 2 seconds for the main method to complete.
WrapperSimpleApp: invoking main method
2021.06.22 14:43:10 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/apps/Sonar_New/sonarqube891/temp
2021.06.22 14:43:10 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP:, TCP:]
2021.06.22 14:43:10 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/apps/Sonar_New/sonarqube891/elasticsearch]: /opt/apps/Sonar_New/sonarqube891/elasticsearch/bin/elasticsearch
warning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOME
2021.06.22 14:43:10 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Send a packet START_PENDING : 5000
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
Java HotSpot™ 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Send a packet START_PENDING : 5000
WrapperSimpleApp: start(args) end. Main Completed=false, exitCode=null
WrapperListener.start runner thread stopped.
returned from WrapperListener.start()
Send a packet STARTED :
Startup runner thread stopped.
Received a packet PING : ping
Send a packet PING : ok
Received a packet PING : ping
Send a packet PING : ok
Received a packet PING : ping
Send a packet PING : ok
ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: Elasticsearch did not exit normally - check the logs at /opt/apps/Sonar_New/sonarqube891/logs/sonarqube.log
2021.06.22 14:43:21 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 78
2021.06.22 14:43:21 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.06.22 14:43:21 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
Wrapper Manager: ShutdownHook started
WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook
Send a packet STOP : 0
Received a packet STOP :
Thread, Wrapper-Shutdown-Hook, handling the shutdown process.
calling listener.stop()
WrapperSimpleApp: stop(0)
returned from listener.stop() → 0
shutdownJVM(0) Thread:Wrapper-Shutdown-Hook
Send a packet STOPPED : 0
Closing socket.
Wrapper Manager: ShutdownHook complete
Server daemon shut down
← Wrapper Stopped


Hi @mtyagadurgam ,

can you check the file permissions of you sonarqube installation folder? it looks like the user who tries to start sonarqube is not allowed to read the lib folder to find a native library required by the wrapper to run. the owner of the sonarqube installation folder should be the same one as the user who starts sonarqube.

apart from that you can skip the wrapper on linux completely if you call the sonar-application.jar directly via systemd. here is some documentation on how to write the service file to do that.

hope that helps

I was able to start it after increasing the vm.max_map_count.

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

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