I tried upgrading directly from 7.3 to 7.9.1 LTS, hope there isn’t any LTS in between ?
SonarQube is running as a service, and I have replaced 7.3 to 7.9.1 in the etc/systemd/system/sonarqube.service file
The errors when I try starting up the new server are:
shakir@sonarQubeServer:~$ sudo systemctl start sonarqube
shakir@sonarQubeServer:~$ sudo systemctl status sonarqube.service
● sonarqube.service - SonarQube service
Loaded: loaded (/etc/systemd/system/sonarqube.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Wed 2019-08-21 07:08:31 UTC; 11min ago
Process: 13259 ExecStop=/opt/sonarqube/sonarqube-7.9.1/bin/linux-x86-64/sonar.sh stop (code=exited, status=0/SUCCESS)
Process: 13192 ExecStart=/opt/sonarqube/sonarqube-7.9.1/bin/linux-x86-64/sonar.sh start (code=exited, status=0/SUCCESS
Aug 21 07:08:31 sonarQubeServer systemd[1]: Started SonarQube service.
Aug 21 07:08:31 sonarQubeServer systemd[1]: sonarqube.service: Service hold-off time over, scheduling restart.
Aug 21 07:08:31 sonarQubeServer systemd[1]: sonarqube.service: Scheduled restart job, restart counter is at 5.
Aug 21 07:08:31 sonarQubeServer systemd[1]: Stopped SonarQube service.
Aug 21 07:08:31 sonarQubeServer systemd[1]: sonarqube.service: Start request repeated too quickly.
Aug 21 07:08:31 sonarQubeServer systemd[1]: sonarqube.service: Failed with result ‘start-limit-hit’.
Aug 21 07:08:31 sonarQubeServer systemd[1]: Failed to start SonarQube service.
Aug 21 07:08:31 sonarQubeServer systemd[1]: sonarqube.service: Service hold-off time over, scheduling restart.
Aug 21 07:08:31 sonarQubeServer systemd[1]: sonarqube.service: Scheduled restart job, restart counter is at 5.
Aug 21 07:08:31 sonarQubeServer systemd[1]: Stopped SonarQube service.
Aug 21 07:08:31 sonarQubeServer systemd[1]: sonarqube.service: Start request repeated too quickly.
Aug 21 07:08:31 sonarQubeServer systemd[1]: sonarqube.service: Failed with result ‘start-limit-hit’.
Aug 21 07:08:31 sonarQubeServer systemd[1]: Failed to start SonarQube service.
The wrapper configuration is exactly the same
shakir@sonarQubeServer:/opt/sonarqube$ diff sonarqube-7.3/conf/wrapper.conf sonarqube-7.9.1/conf/wrapper.conf
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)
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