Hello,
Getting same error “The token you provided doesn’t have sufficient rights to check license” when working wit sonarqube
*SonarQube version - 10.3.0.82913
*[Scanner for .NET (MSBuild) ] version - 4.8.0.2856
- what version of MSBuild are you using? - 5.11.0.60783-net46
Verbose Output:
SonarScanner for MSBuild 5.11
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at D:\Program Files\Sonarqube\sonar-scanner-msbuild-5.11.0.60783-net46\SonarQube.Analysis.xml
Loading analysis properties from D:\Program Files\Sonarqube\sonar-scanner-msbuild-5.11.0.60783-net46\SonarQube.Analysis.xml
sonar.verbose=true was specified - setting the log verbosity to 'Debug'
Pre-processing started.
Preparing working directories...
Using environment variables to determine the download directory...
17:57:23.485 17:57:23.46 Loading analysis properties from D:\Program Files\Sonarqube\sonar-scanner-msbuild-5.11.0.60783-net46\SonarQube.Analysis.xml
17:57:23.485 17:57:23.485 sonar.verbose=true was specified - setting the log verbosity to 'Debug'
17:57:23.493 Updating build integration targets...
17:57:23.493 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\4.0\Microsoft.Common.targets\ImportBefore
17:57:23.501 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\10.0\Microsoft.Common.targets\ImportBefore
17:57:23.502 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\11.0\Microsoft.Common.targets\ImportBefore
17:57:23.502 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\12.0\Microsoft.Common.targets\ImportBefore
17:57:23.502 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore
17:57:23.502 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\15.0\Microsoft.Common.targets\ImportBefore
17:57:23.502 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\Current\Microsoft.Common.targets\ImportBefore
17:57:23.509 Installed SonarQube.Integration.targets to D:\WorkSpace2023\TFS\eCMID\Main\Ecmid Web\eCMID\.sonarqube\bin\targets
17:57:23.509 Creating config and output folders...
17:57:23.509 Creating directory: D:\WorkSpace2023\TFS\eCMID\Main\Ecmid Web\eCMID\.sonarqube\conf
17:57:23.518 Creating directory: D:\WorkSpace2023\TFS\eCMID\Main\Ecmid Web\eCMID\.sonarqube\out
17:57:23.558 Downloading from http://localhost:9000/api/server/version...
17:57:23.607 Checking validity of server license
17:57:23.615 Downloading from http://localhost:9000/api/editions/is_valid_license...
17:57:23.615 The token you provided doesn't have sufficient rights to check license.
17:57:23.624 Pre-processing failed. Exit code: 1
Command:
SonarScanner.MSBuild.exe begin /k:"Ecimid-cpd" /d:sonar.host.url="http://localhost:9000" /d:sonar.token="sqp_b4cd2d881b31179f1fd8e047d1cb2bae92dcaa73"
MsBuild.exe /t:Rebuild
SonarScanner.MSBuild.exe end /d:sonar.token="sqp_b4cd2d881b31179f1fd8e047d1cb2bae92dcaa73"
Please Advise…