# The last analysis failed because it would have caused your server-wide lines of code total to exceed

**URL:** <https://community.sonarsource.com/t/the-last-analysis-failed-because-it-would-have-caused-your-server-wide-lines-of-code-total-to-exceed/129234>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube, scanner\
**Created:** [October 28, 2024, 9:16am UTC](https://community.sonarsource.com/t/the-last-analysis-failed-because-it-would-have-caused-your-server-wide-lines-of-code-total-to-exceed/129234 "2024-10-28T09:16:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aditya\_sambhare](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/aditya_sambhare/32/63572_2.png) [@aditya\_sambhare](https://community.sonarsource.com/u/aditya_sambhare)\
**Post date:** [October 28, 2024, 9:16am UTC](https://community.sonarsource.com/t/the-last-analysis-failed-because-it-would-have-caused-your-server-wide-lines-of-code-total-to-exceed/129234/1 "2024-10-28T09:16:34Z")

</div>

there is problem that i am facing while analyzing the project but there is been problem lately happening in the sonar qube where we are using jenkins in we are using sonar qube plugin where to analysis the project we came to one project where the stage of jenkins is working but in the sonar server site it is showing  
this

## SonarQube Quality Gate

Iride :N/A  
dashboard?id=Iride)  
server-side processing: failed  
in sonare qube the error is The last analysis failed because it would have caused your server-wide lines of code total to exceed your 100000 limit.[Go to License page.]  
even the line is not more than 1000000 and also how to exclude the folder from the project to analysis  
but if i do the same process via locally it is working then why it is not working in the jenkins even the stage is correct with same command

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [October 29, 2024, 11:37am UTC](https://community.sonarsource.com/t/the-last-analysis-failed-because-it-would-have-caused-your-server-wide-lines-of-code-total-to-exceed/129234/2 "2024-10-29T11:37:12Z")

</div>

Hey there.

Two things:

- The template post that showed up when you went to create a post isn’t just for show! It’s important that you include details like what SonarQube version and edition you’re using.
- Both your Jenkins run and your local run produces logs from the SonarScanner. Do they look the same? Are the same number of files being indexed? Any other notable differences?

---

<div class="post-metadata">

**Author:** ![aditya\_sambhare](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/aditya_sambhare/32/63572_2.png) [@aditya\_sambhare](https://community.sonarsource.com/u/aditya_sambhare)\
**Post date:** [October 30, 2024, 8:21am UTC](https://community.sonarsource.com/t/the-last-analysis-failed-because-it-would-have-caused-your-server-wide-lines-of-code-total-to-exceed/129234/3 "2024-10-30T08:21:43Z")

</div>

ok so i am using a

- Developer Edition
- v10.6  
yes both the log look the same only the project location is different as in jenkins it create its own dir

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [November 1, 2024, 6:25pm UTC](https://community.sonarsource.com/t/the-last-analysis-failed-because-it-would-have-caused-your-server-wide-lines-of-code-total-to-exceed/129234/4 "2024-11-01T18:25:58Z")

</div>

Okay. Well, there’s not much to go off of now. If you want to troubleshoot this further, I’d suggest uploading `DEBUG` level logs of both analyses (`sonar-scanner -X`) – the one that causes your analysis to go over the limit, and the one that doesn’t.
