/bin/bash: line 128: 1060 Killed

Hello everybody

I tried to set up an open source project on https://sonarcloud.io/. It is hosted on GitLab and I use GitLab CI and Maven to analyze for SonarCloud. The project itself is written in Java.

After some problems with OutOfMemoryExceptions the Maven plugin almost succeeds. But after almost an hour it fails and prints out this error.

3056117 [INFO] 09:55:03.304566 Variable type analysis: done
3056460 [INFO] Analyzing 79924 ucfgs to detect vulnerabilities.
3382849 [INFO] All rules entrypoints : 2998 Retained UCFGs : 40799
3388832 [INFO] rule: S5131, entrypoints: 2623
3388861 [INFO] Running symbolic analysis
/bin/bash: line 128:  1060 Killed                  mvn $MAVEN_CLI_OPTS -P tomcat -DskipSeleniumTests -Dsonar.projectKey=olatorg_OpenOLAT verify sonar:sonar

Thank you for any help in advance!

Hi @swissclash79, welcome to the community forum!

Since the project is open source, could you please provide the link to the Gitlab repo, and to the SonarCloud project? It may help a lot to investigate the build problem.

Hi @Claire_Villard

Thank you for your reply.
Here is the link to the GitLab project: https://gitlab.com/olatorg/OpenOLAT
There is one merge request in which I try to set up SonarCloud.

The SonarCloud project itself (not yet set up) is here: https://sonarcloud.io/organizations/olatorg/projects

1 Like

Thanks a lot.
I have been able to analyze the project. It took 6.6GB of memory, and 1 hour on an 8-core computer, with the default Sonar Way quality profiles for all languages.
It is likely that your build container runs out of memory and is killed.
Can you use a bigger container for the analysis?

1 Like

I tried it with a custom GitLab runner and it worked!

Thank you @Claire_Villard

1 Like

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