Hello, I am using Sonarqube in ubuntu server 17.10, I downloaded Sonarqube 6.7 and configure the file sonar.properties, like this:
the other lines are commented.
# Path to JVM executable. By default it must be available in PATH.
# Can be an absolute path, for example:
#wrapper.java.command=/path/to/my/jdk/bin/java
#wrapper.java.command=java
wrapper.java.command=/usr/lib/jvm/jdk1.8.0_161/bin/java
#
# DO NOT EDIT THE FOLLOWING SECTIONS
#
#********************************************************************
# Wrapper Java
#********************************************************************
wrapper.java.additional.1=-Dsonar.wrapped=true
wrapper.java.additional.2=-Djava.awt.headless=true
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper.java.classpath.1=../../lib/jsw/*.jar
wrapper.java.classpath.2=../../lib/common/*.jar
wrapper.java.classpath.3=../../lib/*.jar
wrapper.java.library.path.1=./lib
wrapper.java.initmemory=8
wrapper.java.maxmemory=32
#********************************************************************
# Wrapper Logs
#********************************************************************
wrapper.console.format=PM
wrapper.console.loglevel=DEBUG
wrapper.logfile=../../logs/sonar.log
wrapper.logfile.format=M
wrapper.logfile.loglevel=DEBUG
# Maximum size that the log file will be allowed to grow to before
# the log is rolled. Size is specified in bytes. The default value
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
# 'm' (mb) suffix. For example: 10m = 10 megabytes.
#wrapper.logfile.maxsize=0
# Maximum number of rolled log files which will be allowed before old
# files are deleted. The default value of 0 implies no limit.
#wrapper.logfile.maxfiles=0
# Log Level for sys/event log output. (See docs for log levels)
wrapper.syslog.loglevel=NONE
#********************************************************************
# Wrapper Windows Properties
#********************************************************************
# Title to use when running as a console
wrapper.console.title=SonarQube
# Disallow start of multiple instances of an application at the same time on Windows
wrapper.single_invocation=true
#********************************************************************
# Wrapper Windows NT/2000/XP Service Properties
#********************************************************************
# WARNING - Do not modify any of these properties when an application
# using this configuration file has been installed as a service.
# Please uninstall the service before modifying this section. The
# service can then be reinstalled.
# Name of the service
# Display name of the service
wrapper.ntservice.displayname=SonarQube
# Description of the service
wrapper.ntservice.description=SonarQube
# Service dependencies. Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=
# Mode in which the service is installed. AUTO_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START
# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false
#********************************************************************
# Forking Properties
#********************************************************************
wrapper.disable_restarts=TRUE
wrapper.ping.timeout=0
wrapper.shutdown.timeout=300
wrapper.jvm_exit.timeout=300
Spawning intermediate process...
Spawning daemon process...
--> Wrapper Started as Daemon
Using tick timer.
server listening on port 32000.
Command[0] : /usr/lib/jvm/jdk1.8.0_161/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/jsw/wrapper-3.2.3.jar:../../lib/common/elasticsearch-rest-client-5.6.3.jar:../../lib/common/securesm-1.1.jar:../../lib/common/lucene-join-6.6.1.jar:../../lib/common/jackson-dataformat-yaml-2.8.6.jar:../../lib/common/lucene-queries-6.6.1.jar:../../lib/common/netty-buffer-4.1.13.Final.jar:../../lib/common/hppc-0.7.1.jar:../../lib/common/lucene-analyzers-common-6.6.1.jar:../../lib/common/jackson-dataformat-cbor-2.8.6.jar:../../lib/common/httpclient-4.5.2.jar:../../lib/common/guava-18.0.jar:../../lib/common/HdrHistogram-2.1.9.jar:../../lib/common/joda-time-2.9.5.jar:../../lib/common/slf4j-api-1.7.25.jar:../../lib/common/lucene-memory-6.6.1.jar:../../lib/common/lucene-spatial-extras-6.6.1.jar:../../lib/common/transport-netty4-client-5.6.3.jar:../../lib/common/lucene-spatial3d-6.6.1.jar:../../lib/common/netty-codec-http-4.1.13.Final.jar:../../lib/common/sonar-main-6.7.jar:../../lib/common/httpcore-nio-4.4.5.jar:../../lib/common/jna-4.4.0-1.jar:../../lib/common/httpcore-4.4.5.jar:../../lib/common/netty-handler-4.1.13.Final.jar:../../lib/common/netty-transport-4.1.13.Final.jar:../../lib/common/lucene-suggest-6.6.1.jar:../../lib/common/jopt-simple-5.0.2.jar:../../lib/common/logback-core-1.2.3.jar:../../lib/common/lucene-queryparser-6.6.1.jar:../../lib/common/jackson-core-2.6.6.jar:../../lib/common/lucene-spatial-6.6.1.jar:../../lib/common/jul-to-slf4j-1.7.25.jar:../../lib/common/lucene-misc-6.6.1.jar:../../lib/common/jackson-dataformat-smile-2.8.6.jar:../../lib/common/commons-io-2.4.jar:../../lib/common/lucene-highlighter-6.6.1.jar:../../lib/common/httpasyncclient-4.1.2.jar:../../lib/common/snakeyaml-1.15.jar:../../lib/common/parent-join-client-5.6.3.jar:../../lib/common/transport-5.6.3.jar:../../lib/common/lucene-sandbox-6.6.1.jar:../../lib/common/elasticsearch-5.6.3.jar:../../lib/common/percolator-client-5.6.3.jar:../../lib/common/log4j-to-slf4j-2.8.2.jar:../../lib/common/netty-common-4.1.13.Final.jar:../../lib/common/logback-classic-1.2.3.jar:../../lib/common/hazelcast-3.8.6.jar:../../lib/common/log4j-api-2.8.2.jar:../../lib/common/log4j-core-2.8.2.jar:../../lib/common/lucene-core-6.6.1.jar:../../lib/common/commons-codec-1.8.jar:../../lib/common/commons-lang-2.6.jar:../../lib/common/lucene-grouping-6.6.1.jar:../../lib/common/commons-logging-1.1.3.jar:../../lib/common/netty-resolver-4.1.13.Final.jar:../../lib/common/t-digest-3.0.jar:../../lib/common/reindex-client-5.6.3.jar:../../lib/common/lucene-backward-codecs-6.6.1.jar:../../lib/common/hazelcast-client-3.8.6.jar:../../lib/common/sonar-process-6.7.jar:../../lib/common/netty-codec-4.1.13.Final.jar:../../lib/sonar-application-6.7.jar
Command[8] : -Dwrapper.key=_lo1JGuKDSY2y5vt
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=22831
Command[14] : -Dwrapper.version=3.2.3
Command[15] : -Dwrapper.native_library=wrapper
Command[16] : -Dwrapper.service=TRUE
Command[17] : -Dwrapper.cpu.timeout=10
Command[18] : -Dwrapper.jvmid=1
Command[19] : org.tanukisoftware.wrapper.WrapperSimpleApp
Launching a JVM...
WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@33909752
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
Loaded native library: libwrapper.so
Calling native initialization method.
Inside native WrapperManager initialization method
Java Version : 1.8.0_161-b12 Java HotSpot(TM) 64-Bit Server VM
Java VM Vendor : Oracle Corporation
Control event monitor thread started.
Startup runner thread started.
WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@20ad9418, 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 : _lo1JGuKDSY2y5vt
handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) accepted a socket from 127.0.0.1 on port 31000
read a packet KEY : _lo1JGuKDSY2y5vt
Got key from JVM: _lo1JGuKDSY2y5vt
send a packet LOW_LOG_LEVEL : 1
send a packet PING_TIMEOUT : 0
send a packet PROPERTIES : (Property Values)
Start Application.
send a packet START : start
Received a packet LOW_LOG_LEVEL : 1
Wrapper Manager: LowLogLevel from Wrapper is 1
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
16:24:58.089 [WrapperSimpleAppMain] WARN org.sonar.application.config.JdbcSettings - JDBC URL is recommended to have the property 'useConfigs=maxPerformance'
2018.01.25 16:24:58 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /home/user/sonarqube-6.7/temp
2018.01.25 16:24:58 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001 2018.01.25 16:24:58 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/home/user/sonarqube-6.7/elasticsearch]: /home/user/sonarqube-6.7/elasticsearch/bin/elasticsearch -Epath.conf=/home/user/sonarqube-6.7/temp/conf/es
2018.01.25 16:24:58 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2018.01.25 16:24:58 INFO app[][o.e.p.PluginsService] no modules loaded
2018.01.25 16:24:58 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
Send a packet START_PENDING : 5000
read a packet START_PENDING : 5000
JVM signalled a start pending with waitHint of 5000 millis.
2018.01.25 16:24:59 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2018.01.25 16:24:59 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
read a packet STOP : 0
JVM requested a shutdown. (0)
wrapperStopProcess(0) called.
Sending stop signal to JVM
send a packet STOP : NULL
Startup runner thread stopped.
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 :
Received a packet STOP :
read a packet START_PENDING : 5000
JVM signalled a start pending with waitHint of 5000 millis.
read a packet STARTED :
JVM signalled that it was started.
send a packet STOP : NULL
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
read a packet STOPPED : 0
JVM signalled that it was stopped.
Closing socket.
socket read no code (closed?).
server listening on port 32001.
Wrapper Manager: ShutdownHook complete
Server daemon shut down
JVM exited normally.
Signal trapped. Details:
signal number=17 (SIGCHLD), source="unknown"
Received SIGCHLD, checking JVM process status.
JVM process exited with a code of 0, leaving the wrapper exit code set to 0.
<-- Wrapper Stopped