# The Last Analysis has failed: AW8SXCf\_yk8RU8t9umNy

**URL:** <https://community.sonarsource.com/t/the-last-analysis-has-failed-aw8sxcf-yk8ru8t9umny/17946>\
**Category:** SonarQube Server / Community Build\
**Tags:** scanner\
**Created:** [December 19, 2019, 1:38am UTC](https://community.sonarsource.com/t/the-last-analysis-has-failed-aw8sxcf-yk8ru8t9umny/17946 "2019-12-19T01:38:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mou](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mou](https://community.sonarsource.com/u/mou)\
**Post date:** [December 19, 2019, 1:38am UTC](https://community.sonarsource.com/t/the-last-analysis-has-failed-aw8sxcf-yk8ru8t9umny/17946/1 "2019-12-19T01:38:57Z")

</div>

Hi,  
I’m trying to run the analysis using the community edition SonarQube 8.0. I’m trying to analyze an open source java project that was created using ant. so I have already downloaded the ant plugin and all the necessary plugins. I have also edited the build.xml file. however after attempting to run the analysis for couple of time I getting that ANALYSIS SUCCESSFUL, you can browse [http://localhost:9000/dashboard?id=magarena](http://localhost:9000/dashboard?id=magarena).

my scanner context is as following  
SonarQube plugins:

- CVS 1.1.1 (scmcvs)
- 3D Code Metrics 3.7 (citymodel)
- SonarScala 1.5.0.315 (sonarscala)
- SonarC# 8.0.0.9566 (csharp)
- SonarJava 5.14.0.18788 (java)
- Sonargraph Integration 4.0.0 (sonargraphintegration)
- SonarHTML 3.2.0.2082 (web)
- SonarFlex 2.5.1.1831 (flex)
- SonarXML 2.0.1.2020 (xml)
- SonarTS 2.1.0.4359 (typescript)
- Checkstyle 4.26 (checkstyle)
- Java I18n Rules 1.0-SNAPSHOT (javai18n)
- SonarVB 8.0.0.9566 (vbnet)
- SonarPython 2.2.0.5331 (python)
- Code Smells 4.0.0 (smells)
- JaCoCo 1.0.2.475 (jacoco)
- SonarGo 1.6.0.719 (go)
- SonarKotlin 1.5.0.315 (kotlin)
- jDepend 1.1.1 (jdepend)
- Swift (Backelite) 0.4.5 (backelitesonarswiftplugin)
- SonarJS 6.1.0.11503 (javascript)
- SonarRuby 1.5.0.315 (ruby)
- Groovy 1.6 (groovy)
- Git 1.9.1.1834 (scmgit)
- SonarPHP 3.2.0.4868 (php)

Global server settings:

- sonar.core.id=BF41A1F2-AW7UCEx6mKskVacC4s6c
- sonar.core.startTime=2019-12-16T23:32:43-0500
- sonar.dbcleaner.hoursBeforeKeepingOnlyOneSnapshotByDay=36
- sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByWeek=6
- sonar.groovy.ignoreHeaderComments=false

Project server settings:

- sonar.scm.disabled=true  
Project scanner properties:
- sonar.host.url=http://localhost:9000
- sonar.java.binaries=release
- sonar.java.libraries=/Users/mouzaalblooshi/Desktop/analyzer/projects /magarena/magarena-1.95/lib/\*.jar
- sonar.login=\*\*\*\*\*\*
- sonar.projectBaseDir=/Users/mouzaalblooshi/Desktop/analyzer/projects /magarena/magarena-1.95
- sonar.projectKey=magarena
- sonar.projectName=magarena
- sonar.projectVersion=1.0
- sonar.scanner.app=Ant
- sonar.scanner.appVersion=2.7.0.1612
- sonar.sourceEncoding=UTF-8
- sonar.sources=.
- sonar.working.directory=/Users/mouzaalblooshi/Desktop/analyzer/projects /magarena/magarena-1.95/.scannerwork

But when I checked the server it says that the last analysis was failed. I have tried running the analysis couple of time with even different Projects I was getting the same error that the last analysis was failed. I even tried to run the analysis without ant just with the scanner command. I have also tied to look in the background tasks / the gear icon but couldn’t see an “Error logs”. I need to complete this analysis ASAP. I will really appreciate your help.

regards,  
mou

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [January 6, 2020, 8:15pm UTC](https://community.sonarsource.com/t/the-last-analysis-has-failed-aw8sxcf-yk8ru8t9umny/17946/2 "2020-01-06T20:15:54Z")

</div>

Hi mou,

Welcome to the community!

Unfortunately we’re not going to be able to help you diagnose this without some kind of error logs. IIRC CE logs might get purged after a while. Try checking for errors immediately after analysis.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![mou](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mou](https://community.sonarsource.com/u/mou)\
**Post date:** [January 8, 2020, 12:06am UTC](https://community.sonarsource.com/t/the-last-analysis-has-failed-aw8sxcf-yk8ru8t9umny/17946/3 "2020-01-08T00:06:26Z")

</div>

Hello Ann

Thanks a lot for your reply. I have already changed the version of sonarqube to 8.1.  
However, I have another question which version of sonarqube is more stable since I need to run analysis for 1000 open source project for my research so can you please suggest which one will be more convenient to be used. I will appreciate your help

regards,  
Mouza

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [January 8, 2020, 1:55pm UTC](https://community.sonarsource.com/t/the-last-analysis-has-failed-aw8sxcf-yk8ru8t9umny/17946/4 "2020-01-08T13:55:50Z")

</div>

Hi Mouza,

All versions of SonarQube are production-ready, and can handle that load. However bug fixes are only back-ported to the LTS, which is currently 7.9.2. If your research will span several months, you might want the LTS. If not, then I’d go for the latest/greatest.

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![mou](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mou](https://community.sonarsource.com/u/mou)\
**Post date:** [January 10, 2020, 12:07am UTC](https://community.sonarsource.com/t/the-last-analysis-has-failed-aw8sxcf-yk8ru8t9umny/17946/5 "2020-01-10T00:07:54Z")

</div>

Dear Ann,  
I know that all version of SonarQube are production-ready however I don’t know what is wrong with the versions that I download. First I downloaded SonarQube 8.0 and I run the analysis for four projects then when I tried to run the fifth one it says The last analysis has failed, I tried to restart the server couple of time done everything but still I couldn’t solve the problem then I decided to reinstall SonarQube with the latest version 8.1 and the same thing happened. I tried to analyze a project couple of time but it says The last analysis has failed, even though the EXECUTION was successful. please help with this. I can’t repeat the analysis every time. I even read other post in the form regarding this situation but I couldn’t see the error log in the gear icon of the background tasks, I only see the warnings and the scanner context. For instance today when I tried to analyze the project (AW-MxQ0kINSVBc27\_0ZP) it gave me the same message.

regards,  
mouza

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [January 10, 2020, 12:56pm UTC](https://community.sonarsource.com/t/the-last-analysis-has-failed-aw8sxcf-yk8ru8t9umny/17946/6 "2020-01-10T12:56:52Z")

</div>

Hi mouza,

Take a look at [the docs on the topic](https://docs.sonarqube.org/latest/analysis/background-tasks/) and come back to us if you don’t understand the errors you find in the logs.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![mou](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mou](https://community.sonarsource.com/u/mou)\
**Post date:** [January 10, 2020, 1:18pm UTC](https://community.sonarsource.com/t/the-last-analysis-has-failed-aw8sxcf-yk8ru8t9umny/17946/7 "2020-01-10T13:18:50Z")

</div>

Thanks a lot Ann I really appreciate you help.

Regards

Mouza
