SonarQube Analysis Error in Jenkins: Exceeded Server-Wide Lines of Code Limit (5,000,000)

Hello SonarQube Community,

We’re using SonarQube 9.9 Community Edition but recently switched to the Developer Edition (9.9) to explore its advanced features under a 14-day trial. After configuring the license, I attempted a (POC) analysis on a project with approximately 28,295 lines of code (LOC). However, I received this error:

“The last analysis failed because it would have caused your server-wide lines of code total to exceed your 5,000,000 limit.”

The License Portal also shows a message:

specific project has around 28,295 lines of code, the total LOC on the SonarQube Developer Edition is 9,500,817, which exceeds the 5,000,000 LOC limit for your license.

Context

  • Specific Project LOC: Only around 28,295 LOC, so well within the limit for a single project.
  • Total LOC Reported: The Developer Edition shows 9,500,817 LOC, exceeding our 5 million LOC threshold.
  • Community Edition: No issues encountered with the same project in Community Edition.

Questions:

  1. Why does this error appear in Developer Edition when it didn’t in Community Edition?
  2. Are there differences in LOC calculation between Community and Developer Editions?

Hi,

You said you “switched” to an evaluation license. That means you applied it to your existing instance? Based on your screenshot, you already had 9.5 million lines of code under analysis. You should contact your sales rep about this, because you’ll need to either trial Developer Editon on a different, stand-alone, empty instance, or you’ll need to get a bigger trial license.

 
HTH,
Ann