# Failed to analyse repo - failing analysis ID: "5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7

**URL:** <https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566>\
**Category:** SonarQube Cloud\
**Tags:** autoscan\
**Created:** [September 4, 2023, 9:31am UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566 "2023-09-04T09:31:29Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uchenna\_Akajiuba](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/uchenna_akajiuba/32/48849_2.png) [@Uchenna\_Akajiuba](https://community.sonarsource.com/u/Uchenna_Akajiuba)\
**Post date:** [September 4, 2023, 9:31am UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/1 "2023-09-04T09:31:29Z")

</div>

failing analysis ID: "5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7

---

<div class="post-metadata">

**Author:** ![ismail.cherri](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ismail.cherri/32/39688_2.png) [@ismail.cherri](https://community.sonarsource.com/u/ismail.cherri)\
**Post date:** [September 6, 2023, 9:32am UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/5 "2023-09-06T09:32:21Z")

</div>

Hi @Uchenna_Akajiuba,

Welcome to Sonar Community!

~~I checked our logs, unfortunately, the analysis is more than 2 weeks old and the logs for that time were already removed.~~

~~Can you please try running another analysis and send us the updated ID?~~

Regards,  
Ismail

---

<div class="post-metadata">

**Author:** ![ismail.cherri](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ismail.cherri/32/39688_2.png) [@ismail.cherri](https://community.sonarsource.com/u/ismail.cherri)\
**Post date:** [September 6, 2023, 1:44pm UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/6 "2023-09-06T13:44:32Z")

</div>

Hi again,

Please discard my previous message; I was able to find the logs.  
The error is:

```auto
ERROR: Unable to parse file: xxxx/xxxxx/xxxx/xxxx/redis.py
ERROR: Parse error at line 5 column 1:

```

Do you use a specific character encoding in your files?

Regards  
Ismail

---

<div class="post-metadata">

**Author:** ![Uchenna\_Akajiuba](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/uchenna_akajiuba/32/48849_2.png) [@Uchenna\_Akajiuba](https://community.sonarsource.com/u/Uchenna_Akajiuba)\
**Post date:** [September 6, 2023, 4:47pm UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/9 "2023-09-06T16:47:16Z")

</div>

Hi, i had to switch to ci based analysis to be able to see what exactly happened. i got the .java classes issue now i have to go into sonarcloud to exclude .java still i have error on java.lang.OutOfMemoryError: Java heap space.

We have a usage limit of 2m lines of code and the repo is just under 1.3m lines of code.

Not sure how to deal with this

INFO: Final Memory: 375M/512M

[11338](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11339)java.lang.OutOfMemoryError: Java heap space

[11339](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11340)INFO: ------------------------------------------------------------------------

[11340](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11341) at java.base/java.util.ArrayList.grow(ArrayList.java:239)

[11341](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11342) at java.base/java.util.ArrayList.grow(ArrayList.java:244)

[11342](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11343) at java.base/java.util.ArrayList.add(ArrayList.java:454)

[11343](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11344) at java.base/java.util.ArrayList.add(ArrayList.java:467)

[11344](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11345) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:62)

[11345](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11346) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11346](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11347) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11347](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11348) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11348](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11349) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11349](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11350) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11350](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11351) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11351](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11352) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11352](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11353) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11353](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11354) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11354](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11355) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11355](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11356) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11356](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11357) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11357](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11358) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11358](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11359) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11359](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11360) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11360](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11361) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11361](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11362) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11362](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11363) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11363](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11364) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11364](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11365) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11365](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11366) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11366](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11367) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11367](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11368) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11368](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11369) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11369](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11370) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11370](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11371) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visitNonTerminal(LexerfulAstCreator.java:56)

[11371](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11372) at org.sonar.sslr.internal.matchers.LexerfulAstCreator.visit(LexerfulAstCreator.java:47)

[11372](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11373)ERROR:

[11373](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11374)ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

[11374](https://github.com/doublecloud/arc-mdb/actions/runs/6085064540/job/16517187854#step:5:11375)##[debug]Docker Action run completed with exit code 1

---

<div class="post-metadata">

**Author:** ![ismail.cherri](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ismail.cherri/32/39688_2.png) [@ismail.cherri](https://community.sonarsource.com/u/ismail.cherri)\
**Post date:** [September 7, 2023, 7:44am UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/11 "2023-09-07T07:44:32Z")

</div>

Hi @Uchenna_Akajiuba,

Which CI are you using?

> [@Uchenna\_Akajiuba](#):
>
> Hi, i had to switch to ci based analysis to be able to see what exactly happened. i got the .java classes issue now i have to go into sonarcloud to exclude .java still i have error on java.lang.OutOfMemoryError: Java heap space.

Do you have a local configuration file in your repository? [The settings there can override the SonarCloud UI settings](https://docs.sonarcloud.io/advanced-setup/analysis-parameters/#setting-configuration-in-a-file).

Regards,  
Ismail

---

<div class="post-metadata">

**Author:** ![Uchenna\_Akajiuba](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/uchenna_akajiuba/32/48849_2.png) [@Uchenna\_Akajiuba](https://community.sonarsource.com/u/Uchenna_Akajiuba)\
**Post date:** [September 7, 2023, 8:31am UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/12 "2023-09-07T08:31:59Z")

</div>

Github Actions

---

<div class="post-metadata">

**Author:** ![Uchenna\_Akajiuba](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/uchenna_akajiuba/32/48849_2.png) [@Uchenna\_Akajiuba](https://community.sonarsource.com/u/Uchenna_Akajiuba)\
**Post date:** [September 7, 2023, 9:05am UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/13 "2023-09-07T09:05:29Z")

</div>

This is all i have in my sonar-project.properties file ;

sonar.projectKey=doublecloud\_arc-mdb  
sonar.organization=doublecloud

# This is the name and version displayed in the SonarCloud UI.

#sonar.projectName=arc-mdb  
#sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "" by “/” on Windows.

#sonar.sources=.

# Encoding of the source code. Default is default system encoding

#sonar.sourceEncoding=UTF-8

---

<div class="post-metadata">

**Author:** ![ismail.cherri](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ismail.cherri/32/39688_2.png) [@ismail.cherri](https://community.sonarsource.com/u/ismail.cherri)\
**Post date:** [September 7, 2023, 12:48pm UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/14 "2023-09-07T12:48:12Z")

</div>

Hi,

Regarding the out-of-memory error you can try:  
[Granting more heap memory](https://stackoverflow.com/questions/47454257/how-to-increase-maximum-heap-size-for-the-gradle-daemon)

Regards,  
Ismail

---

<div class="post-metadata">

**Author:** ![Uchenna\_Akajiuba](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/uchenna_akajiuba/32/48849_2.png) [@Uchenna\_Akajiuba](https://community.sonarsource.com/u/Uchenna_Akajiuba)\
**Post date:** [September 7, 2023, 1:20pm UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/15 "2023-09-07T13:20:26Z")

</div>

Still unsure how to grant more memory with sonarcloud UI.

---

<div class="post-metadata">

**Author:** ![Uchenna\_Akajiuba](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/uchenna_akajiuba/32/48849_2.png) [@Uchenna\_Akajiuba](https://community.sonarsource.com/u/Uchenna_Akajiuba)\
**Post date:** [September 7, 2023, 1:38pm UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/16 "2023-09-07T13:38:19Z")

</div>

I have excluded completely the csanning of .java or .jav files in the ui but have a new error;

java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects

---

<div class="post-metadata">

**Author:** ![Uchenna\_Akajiuba](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/uchenna_akajiuba/32/48849_2.png) [@Uchenna\_Akajiuba](https://community.sonarsource.com/u/Uchenna_Akajiuba)\
**Post date:** [September 7, 2023, 1:39pm UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/17 "2023-09-07T13:39:15Z")

</div>

new error after excluding all. java files…

java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects

---

<div class="post-metadata">

**Author:** ![ismail.cherri](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ismail.cherri/32/39688_2.png) [@ismail.cherri](https://community.sonarsource.com/u/ismail.cherri)\
**Post date:** [September 8, 2023, 1:56pm UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/18 "2023-09-08T13:56:14Z")

</div>

Hi,

Regarding the automatic analysis, was your repository analyzed successfully on SonarCloud before?

> [@Uchenna\_Akajiuba](#):
>
> Still unsure how to grant more memory with sonarcloud UI.

This cannot be done through the SonarCloud UI, but rather through your CI setup.

> [@Uchenna\_Akajiuba](#):
>
> I have excluded completely the csanning of .java or .jav files in the ui but have a new error;
> 
> java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects

The original error was related to python files. Is this a monorepo with multiple projects?

If that is the case, I suggest your check [Monorepo support](https://docs.sonarcloud.io/advanced-setup/monorepo-support/)

Regards,  
Ismail

---

<div class="post-metadata">

**Author:** ![Uchenna\_Akajiuba](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/uchenna_akajiuba/32/48849_2.png) [@Uchenna\_Akajiuba](https://community.sonarsource.com/u/Uchenna_Akajiuba)\
**Post date:** [September 8, 2023, 4:02pm UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/19 "2023-09-08T16:02:38Z")

</div>

Repo has never been analysed before

---

<div class="post-metadata">

**Author:** ![ismail.cherri](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ismail.cherri/32/39688_2.png) [@ismail.cherri](https://community.sonarsource.com/u/ismail.cherri)\
**Post date:** [September 13, 2023, 1:46pm UTC](https://community.sonarsource.com/t/failed-to-analyse-repo-failing-analysis-id-5a6e63b9-c3fb-45b6-8aa2-c421acb4fae7/98566/20 "2023-09-13T13:46:17Z")

</div>

Hi @Uchenna_Akajiuba,

Another helpful tip for increasing the memory on Github actions is to check [Github documentation](https://docs.github.com/en/actions/using-github-hosted-runners/about-larger-runners).

Regards,  
Ismail
