Cannot start sonarqube (sonarqube-8.9.10.61524)

Hi,
I’m using sonarqube for code coverage analysis so need to start the sonarqube service.
Sonarqube is failing to start and getting the below mentioned error everytime I try to run it. I have tried redownloading the sonarqube but the error persists.
The java version installed is java 11, current sonarqube version downloaded is sonarqube-8.9.10.61524, system OS is Windows 11.

{}\sonarqube-8.9.10.61524\bin\windows-x86-64> .\StartSonar.bat
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2025.01.27 08:55:38 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory {}\sonarqube-8.9.10.61524\temp
jvm 1    | 2025.01.27 08:55:38 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:63779]
jvm 1    | 2025.01.27 08:55:38 ERROR app[][o.s.a.p.ManagedProcessHandler] Fail to launch process [es]
jvm 1    | java.lang.IllegalStateException: Could not delete Elasticsearch temporary conf directory
jvm 1    |      at org.sonar.application.ProcessLauncherImpl.pruneElasticsearchConfDirectory(ProcessLauncherImpl.java:168)
jvm 1    |      at org.sonar.application.ProcessLauncherImpl.writeConfFiles(ProcessLauncherImpl.java:155)
jvm 1    |      at org.sonar.application.ProcessLauncherImpl.launch(ProcessLauncherImpl.java:92)
jvm 1    |      at org.sonar.application.SchedulerImpl.lambda$tryToStartProcess$2(SchedulerImpl.java:196)
jvm 1    |      at org.sonar.application.process.ManagedProcessHandler.start(ManagedProcessHandler.java:73)
jvm 1    |      at org.sonar.application.SchedulerImpl.tryToStartProcess(SchedulerImpl.java:194)
jvm 1    |      at org.sonar.application.SchedulerImpl.tryToStartEs(SchedulerImpl.java:146)
jvm 1    |      at org.sonar.application.SchedulerImpl.tryToStartAll(SchedulerImpl.java:138)
jvm 1    |      at org.sonar.application.SchedulerImpl.schedule(SchedulerImpl.java:112)
jvm 1    |      at org.sonar.application.App.start(App.java:68)
jvm 1    |      at org.sonar.application.App.main(App.java:97)
jvm 1    |      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    |      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jvm 1    |      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    |      at java.base/java.lang.Thread.run(Thread.java:834)
jvm 1    | Caused by: java.nio.file.AccessDeniedException: {}\sonarqube-8.9.10.61524\temp\conf\es
jvm 1    |      at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
jvm 1    |      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
jvm 1    |      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
jvm 1    |      at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
jvm 1    |      at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
jvm 1    |      at java.base/java.nio.file.Files.deleteIfExists(Files.java:1181)
jvm 1    |      at org.sonar.application.ProcessLauncherImpl.pruneElasticsearchConfDirectory(ProcessLauncherImpl.java:166)
jvm 1    |      ... 16 common frames omitted
jvm 1    | 2025.01.27 08:55:38 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1    | 2025.01.27 08:55:38 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
jvm 1    | 2025.01.27 08:55:38 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
wrapper  | <-- Wrapper Stopped

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

8.9.10 → 9.9.8 → 2025.1

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, before you upgrade, you’ll want to make sure the user SonarQube runs as has full privileges to the SonarQube directory, recursive.

 
Ann