# Sonar cloud: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher

**URL:** <https://community.sonarsource.com/t/sonar-cloud-unable-to-load-component-class-org-sonar-scanner-report-activerulespublisher/79253>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube, sonarqube-cloud\
**Created:** [December 21, 2022, 4:18pm UTC](https://community.sonarsource.com/t/sonar-cloud-unable-to-load-component-class-org-sonar-scanner-report-activerulespublisher/79253 "2022-12-21T16:18:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![boopathijayagopal](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@boopathijayagopal](https://community.sonarsource.com/u/boopathijayagopal)\
**Post date:** [December 21, 2022, 4:18pm UTC](https://community.sonarsource.com/t/sonar-cloud-unable-to-load-component-class-org-sonar-scanner-report-activerulespublisher/79253/1 "2022-12-21T16:18:01Z")

</div>

we are getting the below error while running on the Gitlab CICD pipeline.

> Task :sonarqube  
> Task :sonarqube FAILED  
> FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:sonarqube’.

> Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher

we are using the SonarQube community edition running on AWS ECS.

i’ve gone through multiple articles and removed the es folder under the Data folder and upgraded the sonarqube and the database. Still the issue is persist.

Any idea to resolve this issue?

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [December 23, 2022, 8:36pm UTC](https://community.sonarsource.com/t/sonar-cloud-unable-to-load-component-class-org-sonar-scanner-report-activerulespublisher/79253/2 "2022-12-23T20:36:40Z")

</div>

Hey there.

As noted in the template post, could you please share this information? 😃

> Must-share information (formatted with [Markdown](https://commonmark.org/help/)):
> 
> - which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

And, I would suggest turning on deeper logging `gradle --info` and/or `gradle --debug`) so you can get a better idea of what’s going on. A broken Elasticsearch index is one cause of `ActiveRulesPublisher` failing, but might not be the only one.

---

<div class="post-metadata">

**Author:** ![boopathijayagopal](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@boopathijayagopal](https://community.sonarsource.com/u/boopathijayagopal)\
**Post date:** [December 26, 2022, 6:05pm UTC](https://community.sonarsource.com/t/sonar-cloud-unable-to-load-component-class-org-sonar-scanner-report-activerulespublisher/79253/3 "2022-12-26T18:05:06Z")

</div>

Hi Colin,  
Thanks for the reply, Please find the below details.

Version- Community Edition - Version 8.9.10 (build 61524)  
Hosted in the AWS ECS(Fargate) and using ALB.

Logs::  
Load quality profiles  
Load quality profiles (done) | time=115058ms  
Load active rules

> Task :sonarqube FAILED  
> :sonarqube (Thread[Execution worker for ‘:’,5,main]) completed. Took 8 mins 50.618 secs.

Execution failed for task ‘:sonarqube’.

> Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher

Also, i’ve tried the below steps too. didn’t find the solution.

1. Update the timeout value for sonar.ws.timeout and sonar.qualitygate.timeout.
2. deleted the ES folder in /opt/sonar/data folder
3. updated the sonar version from 8.6 to 8.9 and migrated the postgresql DB also.

I’ve verified the Sonar logs in ECS container(/opt/sonar/logs/), didnt find any error/exception. also the ActiveRulesPublisher issue is not consistent, sometimes the build is succeed.

please help me find the resolution.

Regards  
Boopathi J.

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [December 29, 2022, 4:04pm UTC](https://community.sonarsource.com/t/sonar-cloud-unable-to-load-component-class-org-sonar-scanner-report-activerulespublisher/79253/4 "2022-12-29T16:04:20Z")

</div>

Thanks for the further details. There doesn’t appear to be a smoking gun yet.

> [@boopathijayagopal](#):
>
> also the ActiveRulesPublisher issue is not consistent, sometimes the build is succeed.

For the exact same project?

---

<div class="post-metadata">

**Author:** ![boopathijayagopal](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@boopathijayagopal](https://community.sonarsource.com/u/boopathijayagopal)\
**Post date:** [January 11, 2023, 4:43am UTC](https://community.sonarsource.com/t/sonar-cloud-unable-to-load-component-class-org-sonar-scanner-report-activerulespublisher/79253/5 "2023-01-11T04:43:03Z")

</div>

Finally found the solution, after increased the RDS-postgresql DB size from `DB.t2.micro` to `DB.t2.medium` in AWS.

the issue has been resolved, now able to run the sonar scan without any issues.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [January 18, 2023, 4:43am UTC](https://community.sonarsource.com/t/sonar-cloud-unable-to-load-component-class-org-sonar-scanner-report-activerulespublisher/79253/6 "2023-01-18T04:43:12Z")

</div>

Closed on January 18, 2023, 4:43am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
