Latest
Sonar 1 min read

Troubleshoot a Failed SonarQube Analysis

Troubleshoot a Failed SonarQube Analysis
Sonar · November 7, 2026

Version note: references describe SonarQube Server 2025.2 behaviour. Check your server, scanner and edition requirements. These examples were not run against a live SonarQube server.

What this guide covers

Analysis can fail before the scanner starts, while connecting, during report creation or during server processing. Find the first failed stage before changing configuration.

Before you start

Keep the failed job log, commit ID and scanner version. Remove tokens, passwords and private source details before sharing logs.

Step 1: Confirm the checkout and command

Look for dependency, build or test failures before the scanner line. From the job’s working directory, check:

pwd
git rev-parse HEAD
git status --short

A scanner configuration in another directory may not be loaded.

Step 2: Classify the error

Use the error to choose the next check:

Symptom                         First evidence to collect
Cannot reach server             DNS/TLS/proxy status from runner
401 or 403                      Credential source, expiry, project permission
Missing files                   Base directory, effective scope, checkout
Missing coverage                Producer output, report format, path mapping
Upload accepted; no measures    Background task state and compute logs
Gate rejected                   Completed analysis conditions and baseline
Runner killed                   Container termination and host resource data

For connection errors, test from the runner, not only your laptop. Do not bypass certificate validation to hide an HTTPS problem.

Step 3: Check server processing

If upload succeeded, open the project’s Background Tasks page. Read the failed task’s message and the relevant server logs. A received report does not guarantee a completed analysis.

Step 4: Fix one cause and retry

Change the setting related to the failure and rerun the same commit if possible. Do not delete the database or search data as a first troubleshooting step. Check that a new analysis completed and belongs to the intended project.

Check the result

The repaired job should produce a current analysis and the expected gate result. Record the cause and fix so the next failure can be diagnosed faster.

References

PB
Written by

Parul Bedi

Notes and guides by Parul Bedi.

Up next

Update Swarm Services and Rotate Secrets

Docker November 8, 2026 1 min read
Open post

Conversation

0 comments

No comments yet. Start the conversation below.

Leave a comment

Replying to a comment.
Be kind. Markdown is not supported in comments.