Sonarqube installation startup issue

I am using Sonarqube 7.9.3 LTS version. I had installed JDK 11 and i have updated the same in wrapper.conf file.Please find below: wrapper.java.command=<–path–>/jdk-11.0.6/bin/java.exe
When i try to execute StartSonar.bat command in cmd, I am getting below error:

C:\>Startsonar.bat
wrapper  | --> Wrapper Started as Console
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
wrapper  | Launching a JVM...
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    |
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
wrapper  | <-- Wrapper Stopped
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    | 2020.04.01 16:52:20 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Program Files\SonarQube\sonarqube-7.9.3\temp
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    |
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    | WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedException: C:\Program Files\SonarQube\sonarqube-7.9.3\temp\README.txt
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    | java.nio.file.AccessDeniedException: C:\Program Files\SonarQube\sonarqube-7.9.3\temp\README.txt
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    |      at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    |      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    |      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)
jvm 1    |      at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5)

Can someone please provide solution for this?

Thanks in advance. I need to resolve this very urgently

Hi,

Welcome to the community!

I think the message is pretty clear

SonarQube doesn’t have access to its own log files & can’t start up without that.

 
Ann

Hi Ann,

Thanks.
Can you please provide solution on this?
Like how to provide access to log files?

Hi Ann,

Thank you.
Can you please provide solution on this?
Like how to provide access to log files?

Hi,

This is a file system permissions issue. It’s been years since I used Windows, but I think you’ll start with a right-click on the directory in question and choose… “Permissions”(?)

 
Ann