OpenSCManager failed - Access is denied. (0x5) -- Newby question

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

Latest community download

  • what are you trying to achieve

Install local version on Windows 10

  • what have you tried so far to achieve this

I downloaded the latest local version and followed the instruction to run:

C:\sonarqube\bin\windows-x86-64\StartNTService.bat

Hi,

I’m no Windows expert. Google is telling me that’s about access/permissions.

 
:woman_shrugging:
Ann

I am not sure of the best way to add to my issue, suggestions are welcomed! :slight_smile:

I traced the execution of StartNTService.bat to the line:
“%_WRAPPER_EXE%” -t %_WRAPPER_CONF%

After substitutions, the executable line is:
“C:\sonarqube\bin\windows-x86-64\wrapper.exe” -t “C:\sonarqube\bin\windows-x86-64…\conf\wrapper.conf”

I am doing the install on a new Window 10 HP machine with only about 4 non-HP applications installed. I hope this note adds enough details so that someone working on the SonarQube installation can tell me how to do the install.

Thanks!

Hi,

When I initially Googled your error message what I found said you might need to run the process as admin. I didn’t suggest that initially because SonarQube won’t run as root and I’m unsure how/whether that restriction applies to Windows/admin.

 
:woman_shrugging:
Ann