Sonarcloud-scan is taking a very long time

An analysis of our python repository is taking a lot of time or failing.

It was working correctly last week.

We are using:

  • Bitbucket Cloud
  • CI system used : Bitbucket Cloud
  • Scanner command used : pipe: sonarsource/sonarcloud-scan:1.3.0
  • Python


Are you aware of anything changing in that file in the last week? Also, what happens in the log just before that set of lines?


No Change… it was the latest file being processed… each files seems to take a very long time

Retry this morning and getting this error :
INFO: 102/250 files analyzed, current file: spreadsheet/json/lookup/drugid.json

✖ SonarCloud analysis failed. (exit code = 137)

/usr/bin/ line 26: 11 Killed sonar-scanner "${ALL_ARGS[@]}" 2>&1

12 Done | tee "${SCANNER_REPORT}"

1 Like

Hi @Thierry_Paret ,

Could you please check the memory configuration you have for Bitbucket Cloud CI?

Because there wasn’t any change neither on Python analyzer nor on that Python file, my guess is that the scanner is running low in memory, that might explain the long analysis time.

Can you try increasing the memory allocated for the CI virtual machine?