Port blacklisted error

  • Which versions are you using (SonarQube - 10.6, Scanner 6.1.0, Plugin - Defaults nothing special, and any relevant extension - NO)
  • How is SonarQube deployed: zip
  • What are you trying to achieve: Run Sonarqube code analysis for my PHP project
  • What have you tried so far to achieve this: Verified ports are not blocked, confirmed java version as following:
    openjdk version “17.0.12” 2024-07-16
    OpenJDK Runtime Environment Temurin-17.0.12+7 (build 17.0.12+7)
    OpenJDK Client VM Temurin-17.0.12+7 (build 17.0.12+7, mixed mode, emulated-client)

Logs files:
es.log (16.0 KB)
sonar.log (4.4 KB)
web.log (9.1 KB)

When I run .\StartSonar.bat from my windows terminal I get following error:


WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/C:/sonarqube10.6/lib/sonar-application-10.6.0.92116.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2024.09.10 12:12:16 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2024.09.10 12:12:16 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.09.10 12:12:16 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

Hey there.

It looks like something else is already running on port 9000.

You can find out what that is and stop it, or adjust sonar.web.port in your conf/sonar.properties file to choose another (but don’t choose 9001, as that is already used by SonarQube).