Last analysis failed Analysis ID "AZZdp26Zg9dEvAZBkPe-"

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub)
  • CI system used (Github Actions)
  • Scanner command used when applicable (private details masked)
  • Languages of the repository : TypeScript
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed :
 "errorMessage": "Fail to process issues of component 'ab-inbev-analytics_test-and-learn-v2-UI:src/elements/FormSwitchField.tsx' (Visit of Component {key=ab-inbev-analytics_test-and-learn-v2-UI:src/elements/FormSwitchField.tsx,type=FILE} failed)",
  • Steps to reproduce : simple scan using sonar cloud that’s it.

Hi,

Welcome to the community!

Can you provide the approximate date/timestamp of this error? That will make it easier to find in our logs. And where are you seeing the “Fail to process issues…” message?

 
Thx,
Ann

    "id": "AZZdp2s5QakoGm5wGVCP",
    "type": "REPORT",
    "componentId": "AZT05j09YVo6vZJujrM-",
    "componentKey": "ab-inbev-analytics_test-and-learn-v2-UI",
    "componentName": "test-and-learn-v2-UI",
    "componentQualifier": "TRK",
    "status": "FAILED",
    "submittedAt": "2025-04-22T13:19:35+0000",
    "submitterLogin": "UCABI@github",
    "startedAt": "2025-04-22T13:19:35+0000",
    "executedAt": "2025-04-22T13:19:37+0000",
    "executionTimeMs": 1502,
    "logs": false,
    "errorMessage": "Fail to process issues of component 'ab-inbev-analytics_test-and-learn-v2-UI:src/elements/FormSwitchField.tsx' (Visit of Component {key=ab-inbev-analytics_test-and-learn-v2-UI:src/elements/FormSwitchField.tsx,type=FILE} failed)",
    "hasScannerContext": true,
    "organization": "ab-inbev-analytics",
    "branch": "develop",
    "branchType": "LONG",
    "warningCount": 0,
    "warnings": []

Hi,

Are you using automatic analysis or CI-based analysis? And if the latter, can you provide your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann

We are using CI-Based analysis using Github Action. We have attached latest zip file for the log archive. We have changed few code and now the error is coming in different file

  "task": {
    "id": "AZZd31-YDzjAh8q_HXWt",
    "type": "REPORT",
    "componentId": "AZT05j09YVo6vZJujrM-",
    "componentKey": "ab-inbev-analytics_test-and-learn-v2-UI",
    "componentName": "test-and-learn-v2-UI",
    "componentQualifier": "TRK",
    "status": "FAILED",
    "submittedAt": "2025-04-22T14:20:42+0000",
    "submitterLogin": "UCABI@github",
    "startedAt": "2025-04-22T14:20:42+0000",
    "executedAt": "2025-04-22T14:20:45+0000",
    "executionTimeMs": 3498,
    "logs": false,
    "errorMessage": "Fail to process issues of component 'ab-inbev-analytics_test-and-learn-v2-UI:src/elements/inputDropDown.tsx' (Visit of Component {key=ab-inbev-analytics_test-and-learn-v2-UI:src/elements/inputDropDown.tsx,type=FILE} failed)",
    "hasScannerContext": true,
    "organization": "ab-inbev-analytics",
    "branch": "develop",
    "branchType": "LONG",
    "warningCount": 0,
    "warnings": []
  }
}

as given above along with timestamp.
logs_37508559678.zip (769.7 KB)

Hi,

This log ends mid-stream for me:

...
2025-04-22T14:19:02.3578839Z 14:19:02.357 INFO  Preprocessing files...
2025-04-22T14:19:02.3764533Z 14:19:02.374 DEBUG loading config FileBasedConfig[/home/runner/.config/jgit/config]
2025-04-22T14:19:02.3769038Z 14:19:02.375 DEBUG readpipe [/usr/bin/git, --version],/usr/bin
2025-04-22T14:19:02.3915045Z 14:19:02.391 DEBUG readpipe may return 'git version 2.49.0'
2025-04-22T14:19:02.3915999Z 14:19:02.391 DEBUG remaining output:
2025-04-22T14:19:02.3917233Z 
2025-04-22T14:19:02.3958452Z 14:19:02.393 DEBUG readpipe [/usr/bin/git, config, --system, --show-origin, --list, -z],/usr/bin
2025-04-22T14:19:02.3975358Z 14:19:02.396 DEBUG readpipe may return 'file:/etc/gitconfig

Geany does give me a null byte warning, though. Does more of the log render for you?

 
Ann

6_SonarCloud Scan.txt (2.6 MB)

Hello Team
Please find the attached log and we have tested with other things and new analysis ID is generated so please have a look. This is creating issue even though coverage works fine on our system.

2025-05-08T12:46:05.9421158Z 12:46:05.941 INFO  Analysis report generated in /home/runner/work/test-and-learn-v2-UI/test-and-learn-v2-UI/.scannerwork/scanner-report
2025-05-08T12:46:05.9426164Z 12:46:05.942 DEBUG Upload report
2025-05-08T12:46:05.9445839Z 12:46:05.944 DEBUG --> POST https://sonarcloud.io/api/ce/submit?organization=ab-inbev-analytics&projectKey=ab-inbev-analytics_test-and-learn-v2-UI&projectName=test-and-learn-v2-UI&characteristic=branch%3Ddevelop&characteristic=branchType%3DLONG (2630649-byte body)
2025-05-08T12:46:11.9167501Z 12:46:11.916 DEBUG <-- 200 https://sonarcloud.io/api/ce/submit?organization=ab-inbev-analytics&projectKey=ab-inbev-analytics_test-and-learn-v2-UI&projectName=test-and-learn-v2-UI&characteristic=branch%3Ddevelop&characteristic=branchType%3DLONG (5972ms, 44-byte body)
2025-05-08T12:46:11.9184809Z 12:46:11.918 INFO  Analysis report uploaded in 5977ms
2025-05-08T12:46:11.9198436Z 12:46:11.919 DEBUG Report metadata written to /home/runner/work/test-and-learn-v2-UI/test-and-learn-v2-UI/.scannerwork/report-task.txt
2025-05-08T12:46:11.9200042Z 12:46:11.919 INFO  ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=ab-inbev-analytics_test-and-learn-v2-UI&branch=develop
2025-05-08T12:46:11.9201528Z 12:46:11.919 INFO  Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
2025-05-08T12:46:11.9204952Z 12:46:11.920 INFO  More about the report processing at https://sonarcloud.io/api/ce/task?id=AZav7pkGxgecsER1cjSa

These are few logs time which you can see in this file. do suggest us if anything from our end if you need.

https://sonarcloud.io/api/ce/task?id=AZav7pkGxgecsER1cjSa

Hi,

The log snippet you’ve quoted here ends with ANALYSIS SUCCESSFUL. I don’t understand what the issue is.

 
Ann

read last line after analysis successful there are some processing is happening which are tracked in different URL which is failing and due to that I am not able to see analysis on my sonar cloud. I have separately paste that URL as well.

Due to that our report is not updating see we have analysis 26 days ago, which was last here after that we are facing issues in analysis and not available over platform.

Even though we are running every day this analysis using pipeline.

Hi,

Okay, you’re saying that server-side processing of your analysis is failing, right?

In that case, I need you to check the project’s Administration → Background Tasks. You should see a row there with a Failed status. On the right side of that row is a 3-dots menu that should show you the error.

Edit: I see from the screenshot you’ve edited in to your post that you don’t have administration rights on this project. You’ll need to ask someone who does.

 
Ann

Hi ,

I am getting this error as per background task given

{
  "task": {
    "id": "AZav7pkGxgecsER1cjSa",
    "type": "REPORT",
    "componentId": "AZT05j09YVo6vZJujrM-",
    "componentKey": "ab-inbev-analytics_test-and-learn-v2-UI",
    "componentName": "test-and-learn-v2-UI",
    "componentQualifier": "TRK",
    "status": "FAILED",
    "submittedAt": "2025-05-08T12:46:11+0000",
    "submitterLogin": "UCABI@github",
    "startedAt": "2025-05-08T12:46:11+0000",
    "executedAt": "2025-05-08T12:46:14+0000",
    "executionTimeMs": 2119,
    "logs": false,
    "errorMessage": "Fail to process issues of component 'ab-inbev-analytics_test-and-learn-v2-UI:src/pages/ExperimentDetails/_components/KPISection/KPI/KpiImpacts.tsx' (Visit of Component {key=ab-inbev-analytics_test-and-learn-v2-UI:src/pages/ExperimentDetails/_components/KPISection/KPI/KpiImpacts.tsx,type=FILE} failed)",
    "hasScannerContext": true,
    "organization": "ab-inbev-analytics",
    "branch": "develop",
    "branchType": "LONG",
    "warningCount": 0,
    "warnings": []
  }
}

also below is my sonar scanner context

SonarCloud plugins:

  • Text Code Quality and Security 2.22.0.5855 (textenterprise)
  • JaCoCo 1.3.0.1538 (jacoco)
  • IaC Code Quality and Security 1.46.0.15097 (iacenterprise)
  • IaC Code Quality and Security 1.46.0.15097 (iac)
    Project server settings:
  • sonar.abap.file.suffixes=.abap,.ab4,.flow,.asprog
  • sonar.apex.file.suffixes=.cls,.trigger
  • sonar.autoscan.enabled=false
  • sonar.azureresourcemanager.file.suffixes=.bicep
  • sonar.c.file.suffixes=.c,.h
  • sonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp,.ixx,.mxx,.cppm,.ccm,.cxxm,.c++m
  • sonar.cs.file.suffixes=.cs,.razor
  • sonar.css.file.suffixes=.css,.less,.scss,.sass
  • sonar.dart.file.suffixes=.dart
  • sonar.docker.file.patterns=Dockerfile,*.dockerfile
  • sonar.flex.file.suffixes=as
  • sonar.go.file.suffixes=.go
  • sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig
  • sonar.ipynb.file.suffixes=ipynb
  • sonar.java.file.suffixes=.java,.jav
  • sonar.java.jvmframeworkconfig.file.patterns=/src/main/resources//app.properties,/src/main/resources//app.yaml,/src/main/resources//app.yml
  • sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue
  • sonar.jcl.file.suffixes=.jcl
  • sonar.json.file.suffixes=.json
  • sonar.jsp.file.suffixes=.jsp,.jspf,.jspx
  • sonar.kotlin.file.suffixes=.kt,.kts
  • sonar.objc.file.suffixes=.m
  • sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc
  • sonar.pli.file.suffixes=.pli
  • sonar.plsql.file.suffixes=sql,tab,pkb
  • sonar.python.file.suffixes=py
  • sonar.rpg.file.suffixes=.rpg,.rpgle,.sqlrpgle,.RPG,.RPGLE,.SQLRPGLE
  • sonar.ruby.file.suffixes=.rb
  • sonar.rust.file.suffixes=.rs
  • sonar.scala.file.suffixes=.scala
  • sonar.swift.file.suffixes=.swift
  • sonar.terraform.file.suffixes=.tf
  • sonar.tsql.file.suffixes=.tsql
  • sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts
  • sonar.vb.file.suffixes=.bas,.frm,.ctl
  • sonar.vbnet.file.suffixes=.vb
  • sonar.xml.file.suffixes=.xml,.xsd,.xsl,.config
  • sonar.yaml.file.suffixes=.yaml,.yml
    Project scanner properties:
  • sonar.coverage.inclusions=**/.test.ts, **/.test.tsx
  • sonar.host.url=https://sonarcloud.io
  • sonar.organization=ab-inbev-analytics
  • sonar.projectBaseDir=/home/runner/work/test-and-learn-v2-UI/test-and-learn-v2-UI
  • sonar.projectDescription=904605885
  • sonar.projectKey=ab-inbev-analytics_test-and-learn-v2-UI
  • sonar.projectName=test-and-learn-v2-UI
  • sonar.projectVersion=latest
  • sonar.scanner.apiBaseUrl=https://api.sonarcloud.io
  • sonar.scanner.app=ScannerCLI
  • sonar.scanner.appVersion=7.0.2.4839
  • sonar.scanner.arch=x86_64
  • sonar.scanner.bootstrapStartTime=1746709183665
  • sonar.scanner.jre=/home/runner/work/_temp/sonar-scanner-cli-7.0.2.4839-Linux-X64/jre
  • sonar.scanner.os=linux
  • sonar.scanner.truststorePassword=changeit
  • sonar.scanner.truststorePath=/home/runner/work/_temp/sonar-scanner-cli-7.0.2.4839-Linux-X64/jre/lib/security/cacerts
  • sonar.scanner.wasEngineCacheHit=false
  • sonar.scanner.wasJreCacheHit=MISS
  • sonar.sourceEncoding=UTF-8
  • sonar.sources=src
  • sonar.test.inclusions=**/.test.ts, **/.test.tsx
  • sonar.tests=src
  • sonar.token=******
  • sonar.typescript.lcov.reportPaths=coverage/lcov.info
  • sonar.typescript.ruleset=tslint
  • sonar.typescript.tsconfigPath=tsconfig.json
  • sonar.verbose=true
  • sonar.working.directory=/home/runner/work/test-and-learn-v2-UI/test-and-learn-v2-UI/.scannerwork

this is my coverage you can see for the given file where we are getting error in sonar cloud

Hi,

This is unrelated to coverage.

I’ll flag the processing issue for the team.

 
Ann

Sure, Awaiting for your response.

Hello Team, Any update?

Hi @urvish-shah-ab-inbev

Thanks for the updated details.
I could track down the issue to a strange behavior that we did not observe since 2021, and that we failed to explain at that time by lack of data.
We will investigate and get back to you - We will do our best and it might take some time.

Sorry for the inconvenience,
Claire

1 Like

Hi @urvish-shah-ab-inbev

A fix has been deployed a few minutes ago on sonarcloud.io for that issue. Could you confirm that the analysis task failure is gone?

Thanks,
Claire

1 Like