Last Analysis Failed Analysis ID "AZc0YryzxBtj94djNLtI"

The SonarQube Cloud scan continuously fails on one of my repos.

Analysis status

Last analysis failed Analysis ID “AZc0YryzxBtj94djNLtI”

The last analysis has failed. If it keeps on failing after several attempts, please contact us on Community forum and provide the following failing analysis ID: “AZc0YryzxBtj94djNLtI”.

Hi,

Welcome to the community and thanks for this report!

Can you provide the approximate date/time of your failure? It will help us find it in our logs.

 
Thx,
Ann

Hi,
I’m not able to get the exact timeline, Since around September 2022, the SonarCloud scan has stopped analyzing the main branch for one of our Angular projects, although it continues to work correctly for PRs.

We are running the SonarCloud scan through a GitHub Action, and there are no errors in the logs. The logs shows:

ANALYSIS SUCCESSFUL, you can find the results at: SonarQube Cloud

More about the report processing at https://sonarcloud.io/api/ce/task?id=AZc0YrmfpFCI2fTAG09d

However, when we try to access the task URL provided in the logs (e.g., this link), it returns a “does not exist” message.

Our GitHub Action step for SonarCloud looks like this:

  • name: SonarCloud Scan
    uses: SonarSource/sonarqube-scan-action@v5
    env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Hi,

I’m sorry. You’re saying that this started failing ~2.5 years ago?

What I was looking for was the date/time that corresponds to the analysis IE in your initial post. Surely that’s more recent?

So… it’s actually succeeding?

Are you logged in to SonarCloud.io when you try to access that URL?

 
Ann

I’m not sure if this is a recent issue, but when I clicked on “the last analysis has failed” yesterday it showed one AZc0YryzxBtj94djNLtI, and today it shows a different one: “AZc65ZhdQuq84fTWg6zO.”

The last analysis was shown as done 2.5 years ago, we haven’t used SonarCloud for the past 1 year. Now that we’re trying to use it again, the analysis report isn’t appearing for the main branch.

Yes, the GitHub Actions logs show that the analysis ran successfully, but there’s no update on the SonarCloud dashboard. I also made sure I was logged into SonarCloud when accessing the link, but it displays this error message:

{"errors":[{"msg":"Project doesn't exist"}]}

Hi,

So the new ID must be from the last 24h. That’s helpful.

I’ve flagged this for the folks with log access.

 
Ann

1 Like

Hi @MickJerin12 ,

I could not find the Analysis IDs you provided. Could you please fetch the analysis ID, taking it from your GitHub action logs? You should see a call to sonarcloud.io at the end of the logs similar to this:

More about the report processing at https://sonarcloud.io/api/ce/task?id=xxxxxxxx

Also please share a timestamp of that line.
Thanks!

Hi Alex,

Here is a new ID I taken from github action logs [AZeYd5tfXXjy_6VT4Zal]

Hi @MickJerin12

You should be able to see this error message in the project’s background task:

Project or branch in report (xxxxxx) does not match the project or branch under which it was submitted (xxxxxx:BRANCH:main)

You should be able to find more posts for that error on the community forum, that should help you resolving this issue. For example, this one could be of interest.

Hi @AlxO

Thanks for the information, where I can check the background tasks?

Hi @MickJerin12

From your project:

  • Administration
  • Background Tasks

See also: Background tasks | SonarQube Cloud Documentation

Hi @AlxO

Thank you for your help. The issue was caused by a mismatch in the project key, but it has now been resolved. Thanks again!

1 Like