Sonarqube starts and stops within few seconds without any apparent user

5,890 views
Skip to first unread message

Subodh

unread,
Oct 23, 2017, 2:16:16 AM10/23/17
to SonarQube
Hi,

 I am new to sonarQube. I have installed sonarQube 5.6 on ubuntu VM. I am using mariadb. It looks like I am finished with the installation and whenever I start the sonarQube, it starts, runs for few seconds and ten stops without any apparent reason. I have already checked that mariaDB is running and sonar.properties is pointing to right username and password. I am posting my sonar. properties and sonar.log file for reference.

Thanks in advance :-)

//sonar.properties

Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2017.10.19 15:19:37 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp $
2017.10.19 15:19:42 INFO  app[][o.s.a.p.JavaProcessLauncherImpl] Launch process$
OpenJDK 64-Bit Server VM warning: Option UseParNewGC was deprecated in version $
2017.10.19 15:19:56 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2017.10.19 15:19:56 INFO  app[][o.s.a.p.JavaProcessLauncherImpl] Launch process$
2017.10.19 15:20:07 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
2017.10.19 15:20:07 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
2017.10.19 15:20:07 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2017.10.19 15:22:31 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp $
2017.10.19 15:22:36 INFO  app[][o.s.a.p.JavaProcessLauncherImpl] Launch process$
                               [ Read 251 lines ]
^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line
The program 'nmap' is currently not installed. You can install it by typing:
sudo apt install nmap
cruse@sonarqube:/opt/sonar/conf$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd bin/
cruse@sonarqube:/opt/sonar/bin$ ls
jsw-license  linux-x86-32  linux-x86-64
cruse@sonarqube:/opt/sonar/bin$ cd linux-x86-64/
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh start
Starting SonarQube...
Started SonarQube.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ cd ..
cruse@sonarqube:/opt/sonar/bin$ ls
jsw-license  linux-x86-32  linux-x86-64
cruse@sonarqube:/opt/sonar/bin$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd logs
cruse@sonarqube:/opt/sonar/logs$ ls
access.log  es.2017-10-19.log  es.log  sonar.log  web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo nano access.log
cruse@sonarqube:/opt/sonar/logs$ ls
access.log  es.2017-10-19.log  es.log  sonar.log  web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo nano sonar.log
cruse@sonarqube:/opt/sonar/logs$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd bin/
cruse@sonarqube:/opt/sonar/bin$ ls
jsw-license  linux-x86-32  linux-x86-64
cruse@sonarqube:/opt/sonar/bin$ cd linux-x86-64
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ ls
lib  sonar.sh  wrapper
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh stop
Stopping SonarQube...
SonarQube was not running.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh start
Starting SonarQube...
Started SonarQube.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh stop
Stopping SonarQube...
Stopped SonarQube.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ cd ..
cruse@sonarqube:/opt/sonar/bin$ ;s
-bash: syntax error near unexpected token `;'
cruse@sonarqube:/opt/sonar/bin$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd bin/
cruse@sonarqube:/opt/sonar/bin$ ls
jsw-license  linux-x86-32  linux-x86-64
cruse@sonarqube:/opt/sonar/bin$ cd linux-x86-32
cruse@sonarqube:/opt/sonar/bin/linux-x86-32$ sudo ./sonar.sh start
Starting SonarQube...
./sonar.sh: 1: eval: /opt/sonar/bin/linux-x86-32/./wrapper: not found
Failed to start SonarQube.
cruse@sonarqube:/opt/sonar/bin/linux-x86-32$ cd ..
cruse@sonarqube:/opt/sonar/bin$ cd linux-x86-64
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh start
Starting SonarQube...
Started SonarQube.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ cd ..
cruse@sonarqube:/opt/sonar/bin$ ls
jsw-license  linux-x86-32  linux-x86-64
cruse@sonarqube:/opt/sonar/bin$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd conf/
cruse@sonarqube:/opt/sonar/conf$ ls
sonar.properties  wrapper.conf
cruse@sonarqube:/opt/sonar/conf$ sudo nano sonar.properties
cruse@sonarqube:/opt/sonar/conf$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd bin
cruse@sonarqube:/opt/sonar/bin$ ls
jsw-license  linux-x86-32  linux-x86-64
cruse@sonarqube:/opt/sonar/bin$ cd linux-x86-64
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh stop
Stopping SonarQube...
SonarQube was not running.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh start
Starting SonarQube...
Started SonarQube.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh stop
Stopping SonarQube...
Stopped SonarQube.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh start
Starting SonarQube...
Started SonarQube.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh stop
Stopping SonarQube...
SonarQube was not running.
  GNU nano 2.5.3

2017.10.23 14:04:07 WARN  web[][o.a.c.l.WebappClassLoaderBase] The web applicati
 sun.nio.ch.EPollArrayWrapper.epollWait(java.base@9-internal/Native Method)
 sun.nio.ch.EPollArrayWrapper.poll(java.base@9-internal/EPollArrayWrapper.java:2
 sun.nio.ch.EPollSelectorImpl.doSelect(java.base@9-internal/EPollSelectorImpl.ja
 sun.nio.ch.SelectorImpl.lockAndDoSelect(java.base@9-internal/SelectorImpl.java:
 sun.nio.ch.SelectorImpl.select(java.base@9-internal/SelectorImpl.java:97)
 org.jboss.netty.channel.socket.nio.SelectorUtil.select(SelectorUtil.java:68)
 org.jboss.netty.channel.socket.nio.AbstractNioSelector.select(AbstractNioSelect
 org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.
 org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
 org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108
 org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.jav
 java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-internal/ThreadPo
 java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-internal/ThreadP
 java.lang.Thread.run(java.base@9-internal/Thread.java:804)
2017.10.23 14:04:07 WARN  web[][o.a.c.l.WebappClassLoaderBase] The web applicati
 java.lang.Thread.sleep(java.base@9-internal/Native Method)
 org.jboss.netty.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.j
 org.jboss.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:364)
 org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108
 java.lang.Thread.run(java.base@9-internal/Thread.java:804)
2017.10.23 14:04:08 WARN  web[][o.a.c.l.WebappClassLoaderBase] The web applicati
 jdk.internal.misc.Unsafe.park(java.base@9-internal/Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(java.base@9-internal/LockSuppo
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ cd ..
cruse@sonarqube:/opt/sonar/bin$ ls
jsw-license  linux-x86-32  linux-x86-64
cruse@sonarqube:/opt/sonar/bin$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd conf/
cruse@sonarqube:/opt/sonar/conf$ ls
sonar.properties  wrapper.conf
cruse@sonarqube:/opt/sonar/conf$ cd logs
-bash: cd: logs: No such file or directory
  GNU nano 2.5.3            File: sonar.properties

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_$

#------------------------------------------------------------------------------$
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for$
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microso$

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC us$
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).
                               [ Read 353 lines ]
^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line
  GNU nano 2.5.3            File: sonar.properties

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_$

#------------------------------------------------------------------------------$
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for$
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microso$

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC us$
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).
# Only the bundled driver is supported. It can not be changed.

^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line
  GNU nano 2.5.3                                             File: sonar.properties                                                                             # Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_J# - be encrypted. See https://redirect.sonarsource.com/doc/settings-encryption.html
#-------------------------------------------------------------------------------# DATABASE---------
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for # production use. Supported databases are MySQL, Oracle, PostgreSQL and Microsoft SQLServer.
# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC use# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).
# Only the bundled driver is supported. It can not be changed.
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncodi# - The JDBC driver must be copied into the directory extensions/jdbc-driver/ora# - If you need to set the schema, please refer to http://jira.sonarsource.com/b# If you don't use the schema named "public", please refer to http://jira.sonars# A database named sonar must exist and its collation must be case-sensitive (CS^G Get Help     ^O Write Out    ^W Where Is     ^K Cut Text     ^J Justify      ^C Cur Pos                                                                      ^Y Prev Page    M-\ First Line  M-W WhereIs Next^^ Mark Text    M-} Indent Text
  GNU nano 2.5.3                                             File: sonar.properties                                                                             # Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_J# - be encrypted. See https://redirect.sonarsource.com/doc/settings-encryption.html
#-------------------------------------------------------------------------------# DATABASE---------
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for   GNU nano 2.5.3                                             File: sonar.propert

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_J

#-------------------------------------------------------------------------------
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microsof

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC use
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).
# Only the bundled driver is supported. It can not be changed.
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncodi
  GNU nano 2.5.3            File: sonar.properties

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_$

#------------------------------------------------------------------------------$
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for$
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microso$

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC us$
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).

^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line
  GNU nano 2.5.3

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_J

#-------------------------------------------------------------------------------
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microsof

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC use
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).
# Only the bundled driver is supported. It can not be changed.
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncodi
  GNU nano 2.5.3            File: sonar.properties

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_$

#------------------------------------------------------------------------------$
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for$
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microso$

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC us$
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).

^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line
  GNU nano 2.5.3

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_J

#-------------------------------------------------------------------------------
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microsof

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC use
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).
# Only the bundled driver is supported. It can not be changed.
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncodi
  GNU nano 2.5.3            File: sonar.properties

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_$

#------------------------------------------------------------------------------$
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for$
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microso$

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC us$
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).

^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line
  GNU nano 2.5.3

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_J

#-------------------------------------------------------------------------------
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microsof

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC use
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).
# Only the bundled driver is supported. It can not be changed.
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncodi
  GNU nano 2.5.3            File: sonar.properties

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_$

#------------------------------------------------------------------------------$
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for$
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microso$

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC us$
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).

^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line
cruse@sonarqube:/opt/sonar/conf$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd logs/
cruse@sonarqube:/opt/sonar/logs$ ls
access.log  es.2017-10-19.log  es.log  sonar.log  web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo nano sonar.log
cruse@sonarqube:/opt/sonar/logs$ ls
access.log  es.2017-10-19.log  es.log  sonar.log  web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo na
namei   nameif  nano    nawk
cruse@sonarqube:/opt/sonar/logs$ sudo nano web.
web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo nano web.log
cruse@sonarqube:/opt/sonar/logs$ cd ..
cruse@sonarqube:/opt/sonar$ sl
The program 'sl' is currently not installed. You can install it by typing:
sudo apt install sl
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd conf/
cruse@sonarqube:/opt/sonar/conf$ ls
sonar.properties  wrapper.conf
cruse@sonarqube:/opt/sonar/conf$ sudo nano sonar.properties
[sudo] password for cruse:
cruse@sonarqube:/opt/sonar/conf$ sudo apt install oracle-java8-installer
[sudo] password for cruse:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package oracle-java8-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'oracle-java8-installer' has no installation candidate
cruse@sonarqube:/opt/sonar/conf$ sudo add-apt-repository ppa:webupd8team/java
sudo: add-apt-repository: command not found
cruse@sonarqube:/opt/sonar/conf$ sudo apt-get update
Get:2 http://au.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://au.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 306 kB in 10s (28.9 kB/s)
Reading package lists... Done
W: The repository 'http://downloads.sourceforge.net/project/sonar-pkg/deb binary/ Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
cruse@sonarqube:/opt/sonar/conf$ sudo apt install oracle-java8-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package oracle-java8-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'oracle-java8-installer' has no installation candidate
cruse@sonarqube:/opt/sonar/conf$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
cruse@sonarqube:/opt/sonar/conf$ sudo nano sonar.properties
cruse@sonarqube:/opt/sonar/conf$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd ..
cruse@sonarqube:/opt$ sudo apt-get -y install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 ssl-cert
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 ssl-cert
0 to upgrade, 10 to newly install, 0 to remove and 4 not to upgrade.
Need to get 1,557 kB of archives.
After this operation, 6,432 kB of additional disk space will be used.
Get:1 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libapr1 amd64 1.5.2-3 [86.0 kB]
Get:2 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libaprutil1 amd64 1.5.4-1build1 [77.1 kB]
Get:3 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libaprutil1-dbd-sqlite3 amd64 1.5.4-1build1 [10.6 kB]
Get:4 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libaprutil1-ldap amd64 1.5.4-1build1 [8,720 B]
Get:5 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 liblua5.1-0 amd64 5.1.5-8ubuntu1 [102 kB]
Get:6 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-bin amd64 2.4.18-2ubuntu3.5 [925 kB]
Get:7 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-utils amd64 2.4.18-2ubuntu3.5 [82.3 kB]
Get:8 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-data all 2.4.18-2ubuntu3.5 [162 kB]
Get:9 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2 amd64 2.4.18-2ubuntu3.5 [86.7 kB]
Get:10 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 ssl-cert all 1.0.37 [16.9 kB]
Fetched 1,557 kB in 1s (1,293 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libapr1:amd64.
(Reading database ... 62216 files and directories currently installed.)
Preparing to unpack .../libapr1_1.5.2-3_amd64.deb ...
Unpacking libapr1:amd64 (1.5.2-3) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../libaprutil1_1.5.4-1build1_amd64.deb ...
Unpacking libaprutil1:amd64 (1.5.4-1build1) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../libaprutil1-dbd-sqlite3_1.5.4-1build1_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.4-1build1) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../libaprutil1-ldap_1.5.4-1build1_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.5.4-1build1) ...
Selecting previously unselected package liblua5.1-0:amd64.
Preparing to unpack .../liblua5.1-0_5.1.5-8ubuntu1_amd64.deb ...
Unpacking liblua5.1-0:amd64 (5.1.5-8ubuntu1) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../apache2-bin_2.4.18-2ubuntu3.5_amd64.deb ...
Unpacking apache2-bin (2.4.18-2ubuntu3.5) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../apache2-utils_2.4.18-2ubuntu3.5_amd64.deb ...
Unpacking apache2-utils (2.4.18-2ubuntu3.5) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.18-2ubuntu3.5_all.deb ...
Unpacking apache2-data (2.4.18-2ubuntu3.5) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.18-2ubuntu3.5_amd64.deb ...
Unpacking apache2 (2.4.18-2ubuntu3.5) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../ssl-cert_1.0.37_all.deb ...
Unpacking ssl-cert (1.0.37) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Setting up libapr1:amd64 (1.5.2-3) ...
Setting up libaprutil1:amd64 (1.5.4-1build1) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.5.4-1build1) ...
Setting up libaprutil1-ldap:amd64 (1.5.4-1build1) ...
Setting up liblua5.1-0:amd64 (5.1.5-8ubuntu1) ...
Setting up apache2-bin (2.4.18-2ubuntu3.5) ...
Setting up apache2-utils (2.4.18-2ubuntu3.5) ...
Setting up apache2-data (2.4.18-2ubuntu3.5) ...
Setting up apache2 (2.4.18-2ubuntu3.5) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Setting up ssl-cert (1.0.37) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
cruse@sonarqube:/opt$ ls
sonar
cruse@sonarqube:/opt$ sudo apt-get install openjdk-8-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libasyncns0 libflac8 libice-dev libpthread-stubs0-dev libpulse0 libsm-dev libsndfile1 libvorbisenc2 libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxt-dev openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
  libice-doc pulseaudio libsm-doc libxcb-doc libxt-doc openjdk-8-demo openjdk-8-source visualvm icedtea-8-plugin openjdk-8-jre-jamvm libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
  libasyncns0 libflac8 libice-dev libpthread-stubs0-dev libpulse0 libsm-dev libsndfile1 libvorbisenc2 libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxt-dev openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev
0 to upgrade, 23 to newly install, 0 to remove and 4 not to upgrade.
Need to get 39.7 MB of archives.
After this operation, 161 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libasyncns0 amd64 0.8-5build1 [12.3 kB]
Get:2 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre-headless amd64 8u131-b11-2ubuntu1.16.04.3 [27.0 MB]
Get:3 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libflac8 amd64 1.3.1-4 [210 kB]
Get:4 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 xorg-sgml-doctools all 1:1.11-1 [12.9 kB]
Get:5 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 x11proto-core-dev all 7.0.31-1~ubuntu16.04.2 [254 kB]
Get:6 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libice-dev amd64 2:1.0.9-1 [44.9 kB]
Get:7 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libpthread-stubs0-dev amd64 0.3-4 [4,068 B]
Get:8 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libvorbisenc2 amd64 1.3.5-3 [70.7 kB]
Get:9 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsndfile1 amd64 1.0.25-10ubuntu0.16.04.1 [138 kB]
Get:10 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpulse0 amd64 1:8.0-0ubuntu3.4 [249 kB]
Get:11 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libsm-dev amd64 2:1.2.2-1 [16.2 kB]
Get:12 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libxau-dev amd64 1:1.0.8-1 [11.1 kB]
Get:13 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libxdmcp-dev amd64 1:1.1.2-1.1 [25.1 kB]
Get:14 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-input-dev all 2.3.1-1 [118 kB]
Get:15 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-kb-dev all 1.0.7-0ubuntu1 [224 kB]
Get:16 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 xtrans-dev all 1.3.5-1 [70.5 kB]
Get:17 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libxcb1-dev amd64 1.11.1-1ubuntu1 [74.2 kB]
Get:18 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libx11-dev amd64 2:1.6.3-1ubuntu2 [642 kB]
Get:19 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libx11-doc all 2:1.6.3-1ubuntu2 [1,465 kB]
Get:20 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 libxt-dev amd64 1:1.1.5-0ubuntu1 [394 kB]
Get:21 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre amd64 8u131-b11-2ubuntu1.16.04.3 [69.5 kB]
Get:22 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk-headless amd64 8u131-b11-2ubuntu1.16.04.3 [8,188 kB]
Get:23 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk amd64 8u131-b11-2ubuntu1.16.04.3 [451 kB]
Fetched 39.7 MB in 21s (1,837 kB/s)
Selecting previously unselected package libasyncns0:amd64.
(Reading database ... 62907 files and directories currently installed.)
Preparing to unpack .../libasyncns0_0.8-5build1_amd64.deb ...
Unpacking libasyncns0:amd64 (0.8-5build1) ...
Selecting previously unselected package openjdk-8-jre-headless:amd64.
Preparing to unpack .../openjdk-8-jre-headless_8u131-b11-2ubuntu1.16.04.3_amd64.deb ...
Unpacking openjdk-8-jre-headless:amd64 (8u131-b11-2ubuntu1.16.04.3) ...
Selecting previously unselected package libflac8:amd64.
Preparing to unpack .../libflac8_1.3.1-4_amd64.deb ...
Unpacking libflac8:amd64 (1.3.1-4) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../xorg-sgml-doctools_1%3a1.11-1_all.deb ...
Unpacking xorg-sgml-doctools (1:1.11-1) ...
Selecting previously unselected package x11proto-core-dev.
Preparing to unpack .../x11proto-core-dev_7.0.31-1~ubuntu16.04.2_all.deb ...
Unpacking x11proto-core-dev (7.0.31-1~ubuntu16.04.2) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../libice-dev_2%3a1.0.9-1_amd64.deb ...
Unpacking libice-dev:amd64 (2:1.0.9-1) ...
Selecting previously unselected package libpthread-stubs0-dev:amd64.
Preparing to unpack .../libpthread-stubs0-dev_0.3-4_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.3-4) ...
Selecting previously unselected package libvorbisenc2:amd64.
Preparing to unpack .../libvorbisenc2_1.3.5-3_amd64.deb ...
Unpacking libvorbisenc2:amd64 (1.3.5-3) ...
Selecting previously unselected package libsndfile1:amd64.
Preparing to unpack .../libsndfile1_1.0.25-10ubuntu0.16.04.1_amd64.deb ...
Unpacking libsndfile1:amd64 (1.0.25-10ubuntu0.16.04.1) ...
Selecting previously unselected package libpulse0:amd64.
Preparing to unpack .../libpulse0_1%3a8.0-0ubuntu3.4_amd64.deb ...
Unpacking libpulse0:amd64 (1:8.0-0ubuntu3.4) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../libsm-dev_2%3a1.2.2-1_amd64.deb ...
Unpacking libsm-dev:amd64 (2:1.2.2-1) ...
Selecting previously unselected package libxau-dev:amd64.
Preparing to unpack .../libxau-dev_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau-dev:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp-dev:amd64.
Preparing to unpack .../libxdmcp-dev_1%3a1.1.2-1.1_amd64.deb ...
Unpacking libxdmcp-dev:amd64 (1:1.1.2-1.1) ...
Selecting previously unselected package x11proto-input-dev.
Preparing to unpack .../x11proto-input-dev_2.3.1-1_all.deb ...
Unpacking x11proto-input-dev (2.3.1-1) ...
Selecting previously unselected package x11proto-kb-dev.
Preparing to unpack .../x11proto-kb-dev_1.0.7-0ubuntu1_all.deb ...
Unpacking x11proto-kb-dev (1.0.7-0ubuntu1) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../xtrans-dev_1.3.5-1_all.deb ...
Unpacking xtrans-dev (1.3.5-1) ...
Selecting previously unselected package libxcb1-dev:amd64.
Preparing to unpack .../libxcb1-dev_1.11.1-1ubuntu1_amd64.deb ...
Unpacking libxcb1-dev:amd64 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libx11-dev:amd64.
Preparing to unpack .../libx11-dev_2%3a1.6.3-1ubuntu2_amd64.deb ...
Unpacking libx11-dev:amd64 (2:1.6.3-1ubuntu2) ...
Selecting previously unselected package libx11-doc.
Preparing to unpack .../libx11-doc_2%3a1.6.3-1ubuntu2_all.deb ...
Unpacking libx11-doc (2:1.6.3-1ubuntu2) ...
Selecting previously unselected package libxt-dev:amd64.
Preparing to unpack .../libxt-dev_1%3a1.1.5-0ubuntu1_amd64.deb ...
Unpacking libxt-dev:amd64 (1:1.1.5-0ubuntu1) ...
Selecting previously unselected package openjdk-8-jre:amd64.
Preparing to unpack .../openjdk-8-jre_8u131-b11-2ubuntu1.16.04.3_amd64.deb ...
Unpacking openjdk-8-jre:amd64 (8u131-b11-2ubuntu1.16.04.3) ...
Selecting previously unselected package openjdk-8-jdk-headless:amd64.
Preparing to unpack .../openjdk-8-jdk-headless_8u131-b11-2ubuntu1.16.04.3_amd64.deb ...
Unpacking openjdk-8-jdk-headless:amd64 (8u131-b11-2ubuntu1.16.04.3) ...
Selecting previously unselected package openjdk-8-jdk:amd64.
Preparing to unpack .../openjdk-8-jdk_8u131-b11-2ubuntu1.16.04.3_amd64.deb ...
Unpacking openjdk-8-jdk:amd64 (8u131-b11-2ubuntu1.16.04.3) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Setting up libasyncns0:amd64 (0.8-5build1) ...
Setting up openjdk-8-jre-headless:amd64 (8u131-b11-2ubuntu1.16.04.3) ...
Setting up libflac8:amd64 (1.3.1-4) ...
Setting up xorg-sgml-doctools (1:1.11-1) ...
Setting up x11proto-core-dev (7.0.31-1~ubuntu16.04.2) ...
Setting up libice-dev:amd64 (2:1.0.9-1) ...
Setting up libpthread-stubs0-dev:amd64 (0.3-4) ...
Setting up libvorbisenc2:amd64 (1.3.5-3) ...
Setting up libsndfile1:amd64 (1.0.25-10ubuntu0.16.04.1) ...
Setting up libpulse0:amd64 (1:8.0-0ubuntu3.4) ...
Setting up libsm-dev:amd64 (2:1.2.2-1) ...
Setting up libxau-dev:amd64 (1:1.0.8-1) ...
Setting up libxdmcp-dev:amd64 (1:1.1.2-1.1) ...
Setting up x11proto-input-dev (2.3.1-1) ...
Setting up x11proto-kb-dev (1.0.7-0ubuntu1) ...
Setting up xtrans-dev (1.3.5-1) ...
Setting up libxcb1-dev:amd64 (1.11.1-1ubuntu1) ...
Setting up libx11-dev:amd64 (2:1.6.3-1ubuntu2) ...
Setting up libx11-doc (2:1.6.3-1ubuntu2) ...
Setting up libxt-dev:amd64 (1:1.1.5-0ubuntu1) ...
Setting up openjdk-8-jre:amd64 (8u131-b11-2ubuntu1.16.04.3) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
Setting up openjdk-8-jdk-headless:amd64 (8u131-b11-2ubuntu1.16.04.3) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/idlj to provide /usr/bin/idlj (idlj) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jsadebugd to provide /usr/bin/jsadebugd (jsadebugd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/native2ascii to provide /usr/bin/native2ascii (native2ascii) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javah to provide /usr/bin/javah (javah) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javap to provide /usr/bin/javap (javap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jar to provide /usr/bin/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jps to provide /usr/bin/jps (jps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/extcheck to provide /usr/bin/extcheck (extcheck) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jhat to provide /usr/bin/jhat (jhat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
Setting up openjdk-8-jdk:amd64 (8u131-b11-2ubuntu1.16.04.3) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
Processing triggers for libc-bin (2.23-0ubuntu9) ...
cruse@sonarqube:/opt$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
cruse@sonarqube:/opt$ cd usr
-bash: cd: usr: No such file or directory
cruse@sonarqube:/opt$ cd /usr
cruse@sonarqube:/usr$ ls
bin  games  include  lib  local  sbin  share  src
cruse@sonarqube:/usr$ cd lib/
cruse@sonarqube:/usr/lib$ ls
accountsservice  apt           binfmt.d  command-not-found  dpkg   emacsen-common  gnupg  grub         initramfs-tools  ispell  klibc              libdiscover.so.2      linux-boot-probes  man-db  modules-load.d  openssh    os-probes   perl5     python2.7  python3.5  sasl2        ssl   systemd  tasksel  tmpfiles.d               valgrind  x86_64-linux-gnu
apache2          at-spi2-core  cgi-bin   dbus-1.0           eject  gcc             groff  grub-legacy  insserv          jvm     language-selector  libdiscover.so.2.0.1  locale             mime    mysql           os-prober  os-release  pm-utils  python3    rsyslog    sftp-server  sudo  tar      tc       ubuntu-release-upgrader  X11
cruse@sonarqube:/usr/lib$ cd cd /jvm
-bash: cd: cd: No such file or directory
cruse@sonarqube:/usr/lib$ cd jvm/
cruse@sonarqube:/usr/lib/jvm$ ls
java-1.8.0-openjdk-amd64  java-1.9.0-openjdk-amd64  java-8-openjdk-amd64  java-9-openjdk-amd64
cruse@sonarqube:/usr/lib/jvm$ cd ..
cruse@sonarqube:/usr/lib$ cd ..
cruse@sonarqube:/usr$ cd ..
cruse@sonarqube:/$ ls
bin  boot  dev  etc  home  initrd.img  lib  lib64  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var  vmlinuz
cruse@sonarqube:/$ cd /opt/
cruse@sonarqube:/opt$ ls
sonar
cruse@sonarqube:/opt$ cd sonar/
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd bin
cruse@sonarqube:/opt/sonar/bin$ ls
jsw-license  linux-x86-32  linux-x86-64
cruse@sonarqube:/opt/sonar/bin$ cd linux-x86-64/
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ ls
lib  sonar.sh  wrapper
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh start
Starting SonarQube...
Started SonarQube.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh status
SonarQube is running (24043).
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh status
SonarQube is running (24043).
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh status
SonarQube is running (24043).
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh status
SonarQube is not running.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ cd ..
cruse@sonarqube:/opt/sonar/bin$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd logs
cruse@sonarqube:/opt/sonar/logs$ ls
access.log  es.2017-10-19.log  es.log  sonar.log  web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo nano sonar.log
cruse@sonarqube:/opt/sonar/logs$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd temp/
cruse@sonarqube:/opt/sonar/temp$ ls
jna-3506402  sharedmemory  tmp
cruse@sonarqube:/opt/sonar/temp$ cd tmp/
cruse@sonarqube:/opt/sonar/temp/tmp$ ls
cruse@sonarqube:/opt/sonar/temp/tmp$ cd ..
cruse@sonarqube:/opt/sonar/temp$ ls
jna-3506402  sharedmemory  tmp
cruse@sonarqube:/opt/sonar/temp$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd logs/
cruse@sonarqube:/opt/sonar/logs$ ls
access.log  es.2017-10-19.log  es.log  sonar.log  web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo nano sonar.log
cruse@sonarqube:/opt/sonar/logs$ cd ..
cruse@sonarqube:/opt/sonar$ cd ..
cruse@sonarqube:/opt$ cd ..
cruse@sonarqube:/$ cd /usr/lib/jvm/
cruse@sonarqube:/usr/lib/jvm$ ls
java-1.8.0-openjdk-amd64  java-1.9.0-openjdk-amd64  java-8-openjdk-amd64  java-9-openjdk-amd64
cruse@sonarqube:/usr/lib/jvm$ cd ..
cruse@sonarqube:/usr/lib$ cd ..
cruse@sonarqube:/usr$ cd ..
cruse@sonarqube:/$ ls
bin  boot  dev  etc  home  initrd.img  lib  lib64  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var  vmlinuz
cruse@sonarqube:/$ cd opt/
cruse@sonarqube:/opt$ ls
sonar
cruse@sonarqube:/opt$ cd sonar/
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd conf/
cruse@sonarqube:/opt/sonar/conf$ ls
sonar.properties  wrapper.conf
cruse@sonarqube:/opt/sonar/conf$ sudo nano wrapper.conf
cruse@sonarqube:/opt/sonar/conf$ sudo nano sonar.properties
cruse@sonarqube:/opt/sonar/conf$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-9-openjdk-amd64/bin/java       1091      auto mode
  1            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode
  2            /usr/lib/jvm/java-9-openjdk-amd64/bin/java       1091      manual mode

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java to provide /usr/bin/java (java) in manual mode
cruse@sonarqube:/opt/sonar/conf$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-9-openjdk-amd64/bin/java       1091      auto mode
* 1            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode
  2            /usr/lib/jvm/java-9-openjdk-amd64/bin/java       1091      manual mode

Press <enter> to keep the current choice[*], or type selection number: 1
cruse@sonarqube:/opt/sonar/conf$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd bin/
cruse@sonarqube:/opt/sonar/bin$ ls
jsw-license  linux-x86-32  linux-x86-64
cruse@sonarqube:/opt/sonar/bin$ cd linux-x86-64/
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ ls
lib  sonar.sh  wrapper
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh start
Starting SonarQube...
Started SonarQube.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh status
SonarQube is running (24628).
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh status
SonarQube is not running.
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ ls
lib  sonar.sh  wrapper
cruse@sonarqube:/opt/sonar/bin/linux-x86-64$ cd ..
cruse@sonarqube:/opt/sonar/bin$ ls
jsw-license  linux-x86-32  linux-x86-64
cruse@sonarqube:/opt/sonar/bin$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd logs/
cruse@sonarqube:/opt/sonar/logs$ ls
access.log  es.2017-10-19.log  es.log  sonar.log  web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo nano sonar.log
cruse@sonarqube:/opt/sonar/logs$ sudo mysql -u root -p   root
Enter password:
ERROR 1049 (42000): Unknown database 'root'
cruse@sonarqube:/opt/sonar/logs$ sudo mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 95
Server version: 10.0.31-MariaDB-0ubuntu0.16.04.2 Ubuntu 16.04

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sonar              |
+--------------------+
4 rows in set (0.00 sec)

MariaDB [(none)]> use sonar;
Database changed
MariaDB [sonar]> exit
Bye
cruse@sonarqube:/opt/sonar/logs$ sudo nano sonar.log
cruse@sonarqube:/opt/sonar/logs$ cd ..
cruse@sonarqube:/opt/sonar$ cd conf/
cruse@sonarqube:/opt/sonar/conf$ ls
sonar.properties  wrapper.conf
cruse@sonarqube:/opt/sonar/conf$ sudo nano sonar.properties
cruse@sonarqube:/opt/sonar/conf$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd logs
cruse@sonarqube:/opt/sonar/logs$ ls
access.log  es.2017-10-19.log  es.log  sonar.log  web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo nano es.log
cruse@sonarqube:/opt/sonar/logs$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd conf/
cruse@sonarqube:/opt/sonar/conf$ ls
sonar.properties  wrapper.conf
cruse@sonarqube:/opt/sonar/conf$ sudo nano sonar.properties
cruse@sonarqube:/opt/sonar/conf$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd l
-bash: cd: l: No such file or directory
cruse@sonarqube:/opt/sonar$ cd logs/
cruse@sonarqube:/opt/sonar/logs$ ls
access.log  es.2017-10-19.log  es.log  sonar.log  web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo nano access.log
Use "fg" to return to nano.

[1]+  Stopped                 sudo nano access.log
cruse@sonarqube:/opt/sonar/logs$ ls
access.log  es.2017-10-19.log  es.log  sonar.log  web.2017-10-19.log  web.log
cruse@sonarqube:/opt/sonar/logs$ sudo nano web.log
cruse@sonarqube:/opt/sonar/logs$ cd ..
cruse@sonarqube:/opt/sonar$ ls
bin  conf  COPYING  data  extensions  lib  logs  temp  web
cruse@sonarqube:/opt/sonar$ cd conf/
cruse@sonarqube:/opt/sonar/conf$ ls
sonar.properties  wrapper.conf
  GNU nano 2.5.3                                                                                                          File: sonar.properties

# Property values can:
# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_JDBC_URL}

#--------------------------------------------------------------------------------------------------
# DATABASE
#
# IMPORTANT: the embedded H2 database is used by default. It is recommended for tests but not for
# production use. Supported databases are MySQL, Oracle, PostgreSQL and Microsoft SQLServer.

# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC user.
# The schema must be created first.
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).
# Only the bundled driver is supported. It can not be changed.
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false


#----- Oracle 11g/12c
# - Only thin client is supported
# - Only versions 11.2.x and 12.x of Oracle JDBC driver are supported
# - The JDBC driver must be copied into the directory extensions/jdbc-driver/oracle/
# - If you need to set the schema, please refer to http://jira.sonarsource.com/browse/SONAR-5000
#sonar.jdbc.url=jdbc:oracle:thin:@localhost:1521/XE


#----- PostgreSQL 8.x/9.x
# If you don't use the schema named "public", please refer to http://jira.sonarsource.com/browse/SONAR-5000
#sonar.jdbc.url=jdbc:postgresql://localhost/sonar


#----- Microsoft SQLServer 2012/2014 and SQL Azure
# A database named sonar must exist and its collation must be case-sensitive (CS) and accent-sensitive (AS)
# Use the following connection string if you want to use integrated security with Microsoft Sql Server
# Do not set sonar.jdbc.username or sonar.jdbc.password property if you are using Integrated Security
# For Integrated Security to work, you have to download the Microsoft SQL JDBC driver package from
# and copy sqljdbc_auth.dll to your path. You have to copy the 32 bit or 64 bit version of the dll
# depending upon the architecture of your server machine.
# This version of SonarQube has been tested with Microsoft SQL JDBC version 4.1
#sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar;integratedSecurity=true

# Use the following connection string if you want to use SQL Auth while connecting to MS Sql Server.
# Set the sonar.jdbc.username and sonar.jdbc.password appropriately.
#sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar


#----- Connection pool settings
# The maximum number of active connections that can be allocated
# at the same time, or negative for no limit.
# The recommended value is 1.2 * max sizes of HTTP pools. For example if HTTP ports are
# enabled with default sizes (50, see property sonar.web.http.maxThreads)
# then sonar.jdbc.maxActive should be 1.2 * 50 = 60.
#sonar.jdbc.maxActive=60

# The maximum number of connections that can remain idle in the
# pool, without extra ones being released, or negative for no limit.
#sonar.jdbc.maxIdle=5

# The minimum number of connections that can remain idle in the pool,
# without extra ones being created, or zero to create none.
#sonar.jdbc.minIdle=2

# The maximum number of milliseconds that the pool will wait (when there
# are no available connections) for a connection to be returned before
# throwing an exception, or <= 0 to wait indefinitely.
#sonar.jdbc.maxWait=5000

#sonar.jdbc.minEvictableIdleTimeMillis=600000
#sonar.jdbc.timeBetweenEvictionRunsMillis=30000

#--------------------------------------------------------------------------------------------------
# WEB SERVER
# Web server is executed in a dedicated Java process. By default heap size is 512Mb.
# Use the following property to customize JVM options.
#    Recommendations:
#
#    The HotSpot Server VM is recommended. The property -server should be added if server mode
#    is not enabled by default on your environment:
#
#    Startup can be long if entropy source is short of entropy. Adding
#    -Djava.security.egd=file:/dev/./urandom is an option to resolve the problem.
#
#sonar.web.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError

# Same as previous property, but allows to not repeat all other settings like -Xmx
#sonar.web.javaAdditionalOpts=

# Binding IP address. For servers with more than one IP address, this property specifies which
# address will be used for listening on the specified ports.
# By default, ports will be used on all IP addresses associated with the server.
#sonar.web.host=0.0.0.0

# Web context. When set, it must start with forward slash (for example /sonarqube).
# The default value is root context (empty value).
sonar.web.context=/sonar
# TCP port for incoming HTTP connections. Default value is 9000.
#sonar.web.port=9002


# The maximum number of connections that the server will accept and process at any given time.
# When this number has been reached, the server will not accept any more connections until
# the number of connections falls below this value. The operating system may still accept connections
# based on the sonar.web.connections.acceptCount property. The default value is 50.
#sonar.web.http.maxThreads=50

# The minimum number of threads always kept running. The default value is 5.
#sonar.web.http.minThreads=5

# The maximum queue length for incoming connection requests when all possible request processing
# threads are in use. Any requests received when the queue is full will be refused.
# The default value is 25.
#sonar.web.http.acceptCount=25

# By default users are logged out and sessions closed when server is restarted.
# If you prefer keeping user sessions open, a secret should be defined. Value is
# HS256 key encoded with base64. It must be unique for each installation of SonarQube.
# Example of command-line:
# echo -n "type_what_you_want" | openssl dgst -sha256 -hmac "key" -binary | base64
#sonar.auth.jwtBase64Hs256Secret=

# The inactivity timeout duration of user sessions, in minutes. After the configured
# period of time, the user is logged out.
# The default value is set to 3 days (4320 minutes)
# and cannot be greater than 3 months. Value must be strictly positive.
#sonar.web.sessionTimeoutInMinutes=4320


#--------------------------------------------------------------------------------------------------
# SSO AUTHENTICATION

# Enable authentication using HTTP headers
#sonar.web.sso.enable=false

# Name of the header to get the user login.
# Only alphanumeric, '.' and '@' characters are allowed
#sonar.web.sso.loginHeader=X-Forwarded-Login

# Name of the header to get the user name
#sonar.web.sso.nameHeader=X-Forwarded-Name

# Name of the header to get the user email (optional)
#sonar.web.sso.emailHeader=X-Forwarded-Email

# Name of the header to get the list of user groups, separated by comma (optional).
# If the sonar.sso.groupsHeader is set, the user will belong to those groups if groups exist in SonarQube.
# If none of the provided groups exists in SonarQube, the user won't belong to any group.
# Note that the default group will NOT be automatically added when using SSO, it should be provided in the groups list, if needed.
#sonar.web.sso.groupsHeader=X-Forwarded-Groups

# Interval used to know when to refresh name, email and groups.
# During this interval, if for instance the name of the user is changed in the header, it will only be updated after X minutes.
#sonar.web.sso.refreshIntervalInMinutes=5


#--------------------------------------------------------------------------------------------------
# COMPUTE ENGINE
# The Compute Engine is responsible for processing background tasks.
# Compute Engine is executed in a dedicated Java process. Default heap size is 512Mb.
# Use the following property to customize JVM options.
#    Recommendations:
#
#    The HotSpot Server VM is recommended. The property -server should be added if server mode
#    is not enabled by default on your environment:
#
#sonar.ce.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError

# Same as previous property, but allows to not repeat all other settings like -Xmx
#sonar.ce.javaAdditionalOpts=
# The number of workers in the Compute Engine. Value must be greater than zero.
# By default the Compute Engine uses a single worker and therefore processes tasks one at a time.
#    Recommendations:
#
#    Using N workers will require N times as much Heap memory (see property
#    sonar.ce.javaOpts to tune heap) and produce N times as much IOs on disk, database and
#    Elasticsearch. The number of workers must suit your environment.
#sonar.ce.workerCount=1


#--------------------------------------------------------------------------------------------------
# ELASTICSEARCH
# Elasticsearch is used to facilitate fast and accurate information retrieval.
# It is executed in a dedicated Java process. Default heap size is 1Gb.

# JVM options of Elasticsearch process
#    Recommendations:
#
#    Use HotSpot Server VM. The property -server should be added if server mode
#    is not enabled by default on your environment:
#
#sonar.search.javaOpts=-Xmx1G -Xms256m -Xss256k -Djna.nosys=true \
#  -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 \
#  -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError

# Same as previous property, but allows to not repeat all other settings like -Xmx
#sonar.search.javaAdditionalOpts=

# Elasticsearch port. Default is 9001. Use 0 to get a free port.
# As a security precaution, should be blocked by a firewall and not exposed to the Internet.
#sonar.search.port=9001

# Elasticsearch host. The search server will bind this address and the search client will connect to it.
# Default is loopback address.
# As a security precaution, should NOT be set to a publicly available address.
#sonar.search.host=


#--------------------------------------------------------------------------------------------------
# UPDATE CENTER

# Update Center requires an internet connection to request https://update.sonarsource.org
# It is enabled by default.
#sonar.updatecenter.activate=true

# HTTP proxy (default none)
#http.proxyHost=
#http.proxyPort=
# HTTPS proxy (defaults are values of http.proxyHost and http.proxyPort)
#https.proxyHost=
#https.proxyPort=

# NT domain name if NTLM proxy is used
#http.auth.ntlm.domain=

# SOCKS proxy (default none)
http.proxyHost=
#http.proxyPort=
# HTTPS proxy (defaults are values of http.proxyHost and http.proxyPort)
#https.proxyHost=
#https.proxyPort=

# NT domain name if NTLM proxy is used
#http.auth.ntlm.domain=

# SOCKS proxy (default none)
#socksProxyHost=
#socksProxyPort=

# Proxy authentication (used for HTTP, HTTPS and SOCKS proxies)
#http.proxyUser=
#http.proxyPassword=


#--------------------------------------------------------------------------------------------------
# LOGGING

# SonarQube produces logs in 4 logs files located in the same directory (see property sonar.path.logs below),
# one per process:
#   Main process (aka. App) logs in sonar.log
#   Web Server (aka. Web) logs in web.log
#   Compute Engine (aka. CE) logs in ce.log
#   Elasticsearch (aka. ES) logs in es.log
#
# All 4 files follow the same rolling policy (see sonar.log.rollingPolicy and sonar.log.maxFiles) but it applies
# individually (eg. if sonar.log.maxFiles=4, there can be at most 4 of each files, ie. 16 files in total).
#
# All 4 files have logs in the same format:
#           1           2    3           4                       5                                                   6
# |-----------------| |---| |-|--------------------||------------------------------| |------------------------------------------------------------------------------------------------------------------------------|
# 2016.11.16 16:47:00 INFO  ce[AVht0dNXFcyiYejytc3m][o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=org.sonarqube:example-java-maven | type=REPORT | id=AVht0dNXFcyiYejytc3m | submitter=admin | time=1699ms
#
# 1: timestamp. Format is YYYY.MM.DD HH:MM:SS
#    YYYY: year on 4 digits
#    MM: month on 2 digits
#    DD: day on 2 digits
#    HH: hour of day on 2 digits in 24 hours format
#    MM: minutes on 2 digits
#    SS: seconds on 2 digits
# 2: log level.
#    Possible values (in order of descending criticality): ERROR, WARN, INFO, DEBUG and TRACE
# 3: process identifier. Possible values: app (main), web (Web Server), ce (Compute Engine) and es (Elasticsearch)
# 4: SQ thread identifier. Can be empty.
#    In the Web Server, if present, it will be the HTTP request ID.
#    In the Compute Engine, if present, it will be the task ID.
# 5: logger name. Usually a class canonical name.
#    Package names are truncated to keep the whole field to 20 characters max
# 6: log payload. Content of this field does not follow any specific format, can vary in length and include line returns.
#    Some logs, however, will follow the convention to provide data in payload in the format " | key=value"
#    Especially, log of profiled pieces of code will end with " | time=XXXXms".

# Global level of logs (applies to all 4 processes).
# Supported values are INFO (default), DEBUG and TRACE
#sonar.log.level=INFO

# Level of logs of each process can be controlled individually with their respective properties.
# When specified, they overwrite the level defined at global level.
# Supported values are INFO, DEBUG and TRACE
#sonar.log.level.web=INFO
#sonar.log.level.ce=INFO

# Path to log files. Can be absolute or relative to installation directory.
# Default is <installation home>/logs
#sonar.path.logs=logs

# Rolling policy of log files
#    - based on time if value starts with "time:", for example by day ("time:yyyy-MM-dd")
#      or by month ("time:yyyy-MM")
#    - based on size if value starts with "size:", for example "size:10MB"
#    - disabled if value is "none".  That needs logs to be managed by an external system like logrotate.
#sonar.log.rollingPolicy=time:yyyy-MM-dd

# Maximum number of files to keep if a rolling policy is enabled.
#    - maximum value is 20 on size rolling policy
#    - unlimited on time rolling policy. Set to zero to disable old file purging.
#sonar.log.maxFiles=7

# Access log is the list of all the HTTP requests received by server. If enabled, it is stored
# in the file {sonar.path.logs}/access.log. This file follows the same rolling policy as other log file
# (see sonar.log.rollingPolicy and sonar.log.maxFiles).
#sonar.web.accessLogs.enable=true

# Format of access log. It is ignored if sonar.web.accessLogs.enable=false. Possible values are:
#    - "common" is the Common Log Format, shortcut to: %h %l %u %user %date "%r" %s %b
#    - "combined" is another format widely recognized, shortcut to: %h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}"
# The login of authenticated user is not implemented with "%u" but with "%reqAttribute{LOGIN}" (since version 6.1).
# The value displayed for anonymous users is "-".
# The SonarQube's HTTP request ID can be added to the pattern with "%reqAttribute{ID}" (since version 6.2).
# If SonarQube is behind a reverse proxy, then the following value allows to display the correct remote IP address:
#sonar.web.accessLogs.pattern=%i{X-Forwarded-For} %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}"
# Default value (which was "combined" before version 6.2) is equivalent to "combined + SQ HTTP request ID":
#sonar.web.accessLogs.pattern=%h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}"


#--------------------------------------------------------------------------------------------------
# OTHERS

# Delay in seconds between processing of notification queue. Default is 60 seconds.
#sonar.notifications.delay=60

# Paths to persistent data files (embedded database and search index) and temporary files.
# Can be absolute or relative to installation directory.
# Defaults are respectively <installation home>/data and <installation home>/temp
#sonar.path.data=data
#sonar.path.temp=temp


#--------------------------------------------------------------------------------------------------
# DEVELOPMENT - only for developers
# The following properties MUST NOT be used in production environments.

# Dev mode allows to reload web sources on changes and to restart server when new versions
# of plugins are deployed.

# Elasticsearch HTTP connector, for example for KOPF:
#sonar.search.httpPort=-1

//end//

//sonar.log
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2017.10.19 15:19:37 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonar/temp
2017.10.19 15:19:42 INFO  app[][o.s.a.p.JavaProcessLauncherImpl] Launch process[es]: /usr/lib/jvm/java-9-openjdk-amd64/bin/java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/opt/$
OpenJDK 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release.
2017.10.19 15:19:56 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2017.10.19 15:19:56 INFO  app[][o.s.a.p.JavaProcessLauncherImpl] Launch process[web]: /usr/lib/jvm/java-9-openjdk-amd64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/opt/sonar/temp -cp ./lib/common/*:./lib/server/*:/opt/sonar/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.se$
2017.10.19 15:20:07 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
2017.10.19 15:20:07 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
2017.10.19 15:20:07 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2017.10.19 15:22:31 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonar/temp
2017.10.19 15:22:36 INFO  app[][o.s.a.p.JavaProcessLauncherImpl] Launch process[es]: /usr/lib/jvm/java-9-openjdk-amd64/bin/java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/opt/$
OpenJDK 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release.
2017.10.19 15:22:48 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2017.10.19 15:22:48 INFO  app[][o.s.a.p.JavaProcessLauncherImpl] Launch process[web]: /usr/lib/jvm/java-9-openjdk-amd64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/opt/sonar/temp -cp ./lib/common/*:./lib/server/*:/opt/sonar/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.se$
2017.10.19 15:22:59 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
2017.10.19 15:23:00 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
2017.10.19 15:23:00 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
//

G. Ann Campbell

unread,
Oct 23, 2017, 8:40:55 AM10/23/17
to SonarQube
Hi,

MariaDB isn't supported. 

It's very difficult to tell from the logs you sent, which seem to include a lot more than your stop/start, but this is likely the problem. Supported DBs for 5.6.* are listed here.


Ann

Subodh Deshpande

unread,
Oct 23, 2017, 6:21:22 PM10/23/17
to G. Ann Campbell, SonarQube
Hi,

Yeah, got it. Working now.

Thanks for your help.

--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/63Lx4EM2_cU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/c4849bb1-8ff4-4988-80ba-e786affa27a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

yarru...@gmail.com

unread,
Jun 7, 2018, 6:52:15 AM6/7/18
to SonarQube
Hello Ann,

I have installed sonarqube-6.7.4, i'm running sonar with user "sonar" still sonarqube service starts and stops immediately. I'm guessing this is due to ES.

Please find the below logs:

sonar log:

2018.06.07 03:45:58 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube-6.7.4/temp
2018.06.07 03:45:58 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2018.06.07 03:45:58 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube-6.7.4/elasticsearch]: /opt/sonarqube-6.7.4/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonarqube-6.7.4/temp/conf/es
2018.06.07 03:45:58 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
2018.06.07 03:45:59 INFO  app[][o.e.p.PluginsService] no modules loaded
2018.06.07 03:45:59 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.06.07 03:46:12 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2018.06.07 03:46:12 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube-6.7.4]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube-6.7.4/temp -server -Xmx4096m -Xms4096m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:./lib/server/*:/opt/sonarqube-6.7.4/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.server.app.WebServer /opt/sonarqube-6.7.4/temp/sq-process275999196012037274properties
2018.06.07 03:46:18 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
2018.06.07 03:46:19 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
2018.06.07 03:46:19 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2018.06.07 03:46:19 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
<-- Wrapper Stopped

ES log:

2018.06.07 03:46:03 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [13.3gb], net total_space [17.4gb], spins? [unknown], types [rootfs]
2018.06.07 03:46:03 INFO  es[][o.e.e.NodeEnvironment] heap size [503.6mb], compressed ordinary object pointers [true]
2018.06.07 03:46:03 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [Y2o4WdjOQbODdpDdN8YArg]
2018.06.07 03:46:03 INFO  es[][o.e.n.Node] version[5.6.3], pid[20472], build[1a2f265/2017-10-06T20:33:39.012Z], OS[Linux/3.10.0-862.3.2.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_171/25.171-b10]
2018.06.07 03:46:03 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -Xms512m, -Xmx512m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube-6.7.4/elasticsearch]
2018.06.07 03:46:03 INFO  es[][o.e.p.PluginsService] loaded module [aggs-matrix-stats]
2018.06.07 03:46:03 INFO  es[][o.e.p.PluginsService] loaded module [ingest-common]
2018.06.07 03:46:03 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2018.06.07 03:46:03 INFO  es[][o.e.p.PluginsService] loaded module [percolator]
2018.06.07 03:46:03 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2018.06.07 03:46:03 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2018.06.07 03:46:03 INFO  es[][o.e.p.PluginsService] no plugins loaded
2018.06.07 03:46:06 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen]
2018.06.07 03:46:07 INFO  es[][o.e.n.Node] initialized
2018.06.07 03:46:07 INFO  es[][o.e.n.Node] starting ...
2018.06.07 03:46:07 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2018.06.07 03:46:07 WARN  es[][o.e.b.BootstrapChecks] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
2018.06.07 03:46:07 WARN  es[][o.e.b.BootstrapChecks] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
2018.06.07 03:46:10 INFO  es[][o.e.c.s.ClusterService] new_master {sonarqube}{Y2o4WdjOQbODdpDdN8YArg}{KlHqLX6yRTiebPnfQ7hbUw}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: zen-disco-elected-as-master ([0] nodes joined)
2018.06.07 03:46:10 INFO  es[][o.e.n.Node] started
2018.06.07 03:46:10 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2018.06.07 03:46:18 INFO  es[][o.e.n.Node] stopping ...
2018.06.07 03:46:19 INFO  es[][o.e.n.Node] stopped
2018.06.07 03:46:19 INFO  es[][o.e.n.Node] closing ...
2018.06.07 03:46:19 INFO  es[][o.e.n.Node] closed


Kindly help.
 

G. Ann Campbell

unread,
Jun 7, 2018, 7:43:16 AM6/7/18
to yarru...@gmail.com, SonarQube
Hi,

How does web.log end?



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

--
Important: this SonarQube Google Group will close on June 11th, 2018, in order to move to a new forum to power even more community discussions. See details in this post: https://groups.google.com/d/msg/sonarqube/BbSZz-JnhVM/DavhMueEAAAJ
---
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/63Lx4EM2_cU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.

G. Ann Campbell

unread,
Jun 7, 2018, 8:54:18 AM6/7/18
to Ramya Yarru, SonarQube
Hi,

Please include the group in your replies.

You sent me your web.log. It does end with an error message. Did you understand the message?


Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

On Thu, Jun 7, 2018 at 2:21 PM, Ramya Yarru <yarru...@gmail.com> wrote:
Hello,

PFA.

Ramya Yarru

unread,
Jun 7, 2018, 9:18:42 AM6/7/18
to G. Ann Campbell, SonarQube
Hi Ann,

Due to few compatibility issues i went for 6.2 version but even that version is not being started.

Kindly advise on where i'm going wrong.
es.log
sonar.log
web.log

Ramya Yarru

unread,
Jun 7, 2018, 9:20:08 AM6/7/18
to G. Ann Campbell, SonarQube
Please ignore the above logs and consider logs attached to this mail.
es.log
sonar.log
web.log

G. Ann Campbell

unread,
Jun 7, 2018, 9:38:47 AM6/7/18
to Ramya Yarru, SonarQube
Hi,

Have you read these logs?


Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

Ramya Yarru

unread,
Jun 7, 2018, 10:09:28 AM6/7/18
to G. Ann Campbell, SonarQube
Hi,

Yes, solved the issue. Since I configured latest version with mysql it reported issues.

Thanks for quick response.

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages