Jus checked, there is a single log file
shakir@sonarQubeServer:~$ cat /opt/sonarqube/sonarqube-7.9.1/logs/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.
WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11+ to run
java.lang.IllegalStateException: SonarQube requires Java 11+ to run
at org.sonar.application.App.checkJavaVersion(App.java:93)
at org.sonar.application.App.start(App.java:56)
at org.sonar.application.App.main(App.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
at java.lang.Thread.run(Thread.java:748)
<-- Wrapper Stopped
But Java is already 11+
shakir@sonarQubeServer:~$ java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)
Just checked this – SonerQube doesnt start
shakir@sonarQubeServer:/opt/sonarqube$ sudo cat sonarqube-7.9.1/conf/wrapper.conf | grep wrapper.java.command
#wrapper.java.command=/path/to/my/jdk/bin/java
wrapper.java.command=java
shakir@sonarQubeServer:/opt/sonarqube$ which java
/usr/bin/java
I removed the contents of the sonar.log(as it does not have a timestamp, I thought it might be something old when java8 was thr) file, tried starting sonarqube again, now I dont see any log, however the service is still inactive and the webserver doesnt start on port 9000