Hi team,
When I’m trying to upgrade the sonarqube 8.1 to 8.9LTS, I’m getting below error. Could you please help me out with how to fix this error… I’m attaching the log file for reference.
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.apache.http.ParseException: Not a valid protocol version: This is not an HTTP port
Ah there we go. Something is already running on port 9001 which is the default port that is used by the embedded elasticsearch. You should free this port or configure another one to be used by sonarqube by setting sonar.search.port in your sonar.properties file
Thank you for checking that.
I have one more doubt. I have sonarqube and database on different servers, will I have all the projects and the analysis if I upgrade it to the latest version?
Using a dedicated server for running Sonarqube is best practice.
Just ensure the connection to your database, maybe there are firewalls, proxies … involved.
And, just like with any other application, you should make a regular backup of your database -
in case something goes wrong.
The update doesn’t delete existing data.
Ok, no errors or eceptions at first glance.
Please increase the loglevel to DEBUG via sonar.log.level=DEBUG in %SONARQUBE_HOME\sonar.properties, restart and attach the sonar.log, web.log
2022.03.25 04:07:41 ERROR web[o.s.s.p.PlatformImpl] Web server startup failed
java.lang.IllegalStateException: Fail to connect to database
It seems to be the wrong version of the dll, Sonarqube 8.9.7 ships with mssql-jdbc-9.2.0.jre11.jar , get it here
and put it on path, i.e. simply to the /bin folder of your jdk Sonarqube runs with
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication.
is related to Elasticsearch.
Seems port 9001 is already in use, maybe another process is already using 9001 or another Sonarqube processs still running after failed start.
you normally configure it to run automatically, so no need to run it manually.
If you also use a reverse proxy service, i.e. Apache httpd it’s like that
Apache httpd service = run automatically
Sonarqube service = run automatically delayed