Azure DevOps Scanner The token you provided doesn't have sufficient rights to check license

nope, not in sonarqube

Did you get all endpoints at once with the API ? Is yes, you need to then get the id, and get it “solo” by just adding the id after a slash in the endpoints

/endpoints/{id]?api-version=xxx

here you go

{
“data”: {},
“id”: “xxxxxxxxxxxxxxxxxxxxx”,
“name”: “SonarQube”,
“type”: “sonarqube”,
“url”: “http://10.10.0.40:9000”,
“createdBy”: {
“displayName”: “Atif Farrukh”,
“url”: “xxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“_links”: {
“avatar”: {
“href”: “xxxxxxxxxxxxxxxxxxxxx”
}
},
“id”: “xxxxxxx”,
“uniqueName”: “xxxxxxxxxxxxx”,
“imageUrl”: “xxxxxxxxxxxxxxxxx”,
“descriptor”: “win.Uy0xLTUtMjEtNDEzNTA2ODk3Ny01ODc5MjQ0MDEtMjE4ODk1NjAyMS0xNjQ0”
},
“authorization”: {
“parameters”: {
“username”: null,
“password”: null
},
“scheme”: “UsernamePassword”
},
“isShared”: false,
“isReady”: true,
“owner”: “Library”
}

@mickaelcaro any update regarding this issue?

any update regarding this issue?

@mickaelcaro any update regarding this issue?

For reference, I have encountered this after upgrade to 8.7.1 and taken the same steps as above, creating a new Service Connection. Still finding that I get this issue, but only when using a Linux based build agent (not sure if that is relevant).

Also, looking at the logs on Sonarqube I can see it is getting a 401 when trying to reach the is_valid_license API endpoint:

[08/Apr/2021:16:30:59 +0100] “GET /api/server/version HTTP/1.0” 200 - “-” “-” “AXirv6CFEDFxZdlpAAWD”
[08/Apr/2021:16:30:59 +0100] “GET /api/editions/is_valid_license HTTP/1.0” 401 - “-” “-” “AXirv6CFEDFxZdlpAAWE”

Hi @Tom_Ferguson

No update so far, i’ll work on a fix ASAP.

Mickaël