Hello,
I use SonarQube Developer Edition Version 9.9 (build 65466). Deployed as a zip.
I have updated the backend with the database to the latest version of Debian 12 and PostgreSQL 16.
Since then, I have an error on my CI :
org.sonar.api.batch.rule.internal.DefaultActiveRules]: Factory method 'provide' threw exception; nested exception is org.sonarqube.ws.client.HttpException: Error 404 on https://my.domain.com/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AW0Fj3r4xzjhhfRSlNYS&ps=500&p=1 : {"errors":[{"msg":"The specified qualityProfile \u0027AW0Fj3r4xzjhhfRSlNYS\u0027 does not exist"}]}
When I list the available qualityProfiles with the URL https://my.domain.com/profiles - can see the identifier AW0Fj3r4xzjhhfRSlNYS
in the list :
...
{
"key": "AW0Fj3r4xzjhhfRSlNYS",
"name": "Sonar way",
"language": "flex",
"languageName": "Flex",
"isInherited": false,
"isDefault": true,
"activeRuleCount": 47,
"activeDeprecatedRuleCount": 0,
"rulesUpdatedAt": "2021-05-27T21:56:18+0000",
"isBuiltIn": true,
"actions": {
"edit": false,
"setAsDefault": false,
"copy": true,
"associateProjects": false,
"delete": false
}
},
...
I don’t have any Flex code, but anyway. (I have troubleshooted all the Languages and found out I have the same issue with XML
language. I keep explaining here below with the Flex language.)
When I try to view the profile from the UI, I go to https://my.domain.com/profiles/show?name=Sonar+way&language=flex, and then I have the error message on the page :
I found similar problems on the web :
- On Sonar Community post : Quality Profiles not found after upgrade to 9.9 LTS. I have tried to stop the instance, delete
/data/es7
and restart the instance. The error is still here. Many times … without result. - On Sonar troubleshooting documentation : Troubleshooting But did not find anything useful here
I share some thoughts :
- Is there a was to restore de
Sonar way
built-in quality profile ? From this post : (Updating Sonar Way profile) I have a confirmation that
…This is a built-in profile that cannot be updated…
– Colin - Community Manager
Unfortunately I did not find any solution in the documentation "9.9 | Instance administration | Quality profiles : Managing quality profiles in SonarCloud