Good day,
I am trying to set up SonarQube on a RHEL 8 server. I am using the latest version 9.0.0.45539 which was downloaded this morning (although, I have had the same issue with an older version). I have updated java to 16.0.1 (2021-04-20):
./java -version
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+9-24)
OpenJDK 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)
As this is a 64-bit OS, I have increased the vm.max_map_count as per the config file directions:
cat /etc/sysctl.conf
#other sections removed...
vm.max_map_count=262144
In an effort to troubleshoot, I have increased the logging level in the wrapper.conf. The portions above the “do not edit” section are as follows:
# Path to JVM executable. By default it must be available in PATH.
wrapper.java.command=/usr/lib/jvm/jdk-16.0.1/bin/java
wrapper.debug=TRUE
From what I can tell, it seems to be starting the wrapper, but then fails to connect to it. Here is the sonar.log file (with debug output):
--> Wrapper Started as Console
Using tick timer.
server listening on port 32000.
Command[0] : /usr/lib/jvm/jdk-16.0.1/bin/java
Command[1] : -Dsonar.wrapped=true
Command[2] : -Djava.awt.headless=true
Command[3] : -Xms8m
Command[4] : -Xmx32m
Command[5] : -Djava.library.path=./lib
Command[6] : -classpath
Command[7] : ../../lib/sonar-application-9.0.0.45539.jar:../../lib/jsw/wrapper-3.2.3.jar:../../lib/sonar-shutdowner-9.0.0.45539.jar
Command[8] : -Dwrapper.key=hEaM8IAFWHXOeD5Q
Command[9] : -Dwrapper.port=32000
Command[10] : -Dwrapper.jvm.port.min=31000
Command[11] : -Dwrapper.jvm.port.max=31999
Command[12] : -Dwrapper.debug=TRUE
Command[13] : -Dwrapper.pid=99542
Command[14] : -Dwrapper.version=3.2.3
Command[15] : -Dwrapper.native_library=wrapper
Command[16] : -Dwrapper.cpu.timeout=10
Command[17] : -Dwrapper.jvmid=1
Command[18] : org.tanukisoftware.wrapper.WrapperSimpleApp
Command[19] : org.sonar.application.App
Launching a JVM...
WrapperManager class initialized by thread: main Using classloader: jdk.internal.loader.ClassLoaders$AppClassLoader@443b7951
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 : 16.0.1+9-24 OpenJDK 64-Bit Server VM
Java VM Vendor : Oracle Corporation
Startup runner thread started.
Control event monitor thread started.
WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@6d03e736, args[]) called by thread: main
Communications runner thread started.
Open socket to wrapper...Wrapper-Connection
Startup failed: Timed out waiting for a signal from the JVM.
JVM did not exit on request, terminated
JVM exited on its own while waiting to kill the application.
Signal trapped. Details:
signal number=17 (SIGCHLD), source="unknown"
Received SIGCHLD, checking JVM process status.
JVM exited in response to signal SIGKILL (9).
JVM process exited with a code of 1, setting the wrapper exit code to 1.
JVM Restarts disabled. Shutting down.
<-- Wrapper Stopped
As shown above, it seems to be terminating on Startup failed: Timed out waiting for a signal from the JVM.
. I have previously attempted to increase the timeouts for the wrapper with no success, although I have not tried it with this version of SonarQube.
I’d appreciate any insights as I am lost as how to proceed at this point.
Thanks!