# Portfolio Calculation Failing Every Time

**URL:** <https://community.sonarsource.com/t/portfolio-calculation-failing-every-time/25774>\
**Category:** SonarQube Server / Community Build\
**Created:** [June 3, 2020, 2:16pm UTC](https://community.sonarsource.com/t/portfolio-calculation-failing-every-time/25774 "2020-06-03T14:16:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pganeshar](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@pganeshar](https://community.sonarsource.com/u/pganeshar)\
**Post date:** [June 3, 2020, 2:16pm UTC](https://community.sonarsource.com/t/portfolio-calculation-failing-every-time/25774/1 "2020-06-03T14:16:02Z")

</div>

Sonarqube 7.9.2 Enterprise Edition  
Scanner version 4.3.0.2102  
DB: Postgres v10.x (AWS RDS)

We recently upgraded SQ to v7.9.2. In CE, quality gate reports are working fine but getting error for Portfolio Calculation - I’ve attached the screenshot of error. Since its never worked from the upgrade I am thinking something might be misconfigured or not configured at all. So I’d appreciate if any of you can shed some light as to where to look to troubleshoot this problem.

 ![Screen Shot 2020-06-03 at 9.58.51 AM](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/d/dad2e27253986165b53d8b5d827eedae4ecedadf.png)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Wouter\_Admiraal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/wouter_admiraal/32/1841_2.png) [@Wouter\_Admiraal](https://community.sonarsource.com/u/Wouter_Admiraal)\
**Post date:** [June 4, 2020, 6:31am UTC](https://community.sonarsource.com/t/portfolio-calculation-failing-every-time/25774/3 "2020-06-04T06:31:59Z")

</div>

Hi @pganeshar,

It seems like there’s a font issue, looking at the exception. Are you running SonarQube in Docker, by any chance?

---

<div class="post-metadata">

**Author:** ![pganeshar](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@pganeshar](https://community.sonarsource.com/u/pganeshar)\
**Post date:** [July 3, 2020, 4:15pm UTC](https://community.sonarsource.com/t/portfolio-calculation-failing-every-time/25774/5 "2020-07-03T16:15:10Z")

</div>

@Wouter_Admiraal, really sorry about the late reply. Yes, indeed, we have a CentOS docker image baked with all the build tools and then they get spinned up on the Kubernetes clusters. Each pipeline then use these containers to build and deploy.

---

<div class="post-metadata">

**Author:** ![Wouter\_Admiraal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/wouter_admiraal/32/1841_2.png) [@Wouter\_Admiraal](https://community.sonarsource.com/u/Wouter_Admiraal)\
**Post date:** [July 7, 2020, 6:53am UTC](https://community.sonarsource.com/t/portfolio-calculation-failing-every-time/25774/6 "2020-07-07T06:53:48Z")

</div>

Hi @pganeshar,

Could you see if adding the `libfreetype` package to your CentOS image helps? See [this commit](https://github.com/SonarSource/docker-sonarqube/commit/b90818761ff7e70df9f20a0ae86044c191aeec03) on the official SonarQube Docker image.

---

<div class="post-metadata">

**Author:** ![pganeshar](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@pganeshar](https://community.sonarsource.com/u/pganeshar)\
**Post date:** [July 31, 2020, 3:06pm UTC](https://community.sonarsource.com/t/portfolio-calculation-failing-every-time/25774/7 "2020-07-31T15:06:12Z")

</div>

Thanks so much @Wouter_Admiraal. As you suggested I am going to do this right now. I will let you know the outcome. I understand that Portfolio tasks run in the background ([https://egsonarqube.dtveng.net/documentation/analysis/background-tasks/](https://egsonarqube.dtveng.net/documentation/analysis/background-tasks/)). is there anyway to kick it off and see whether this fixes the issue. Otherwise, I guess I need to run a few scans and wait for background task to run.

Thanks again and apologies for the delay.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [August 3, 2020, 2:57pm UTC](https://community.sonarsource.com/t/portfolio-calculation-failing-every-time/25774/8 "2020-08-03T14:57:07Z")

</div>

Hi,

If you’re an admin on the portfolio, then you have access to Portfolio Settings on the Portfolio homepage. From there, pick Edit Definition and on that page, there’s a Recompute button that will kick off recomputation manually.

&nbsp;  
HTH,  
Ann
