Skip to content

sonar-scanner-cli: no log output when running scanner #78657

@moonkaktus

Description

@moonkaktus

Package: sonar-scanner-cli 8.0.1.6346 epoch 4

Describe the bug:
Running sonar-scanner produces no output — only logback internal
initialization messages are printed, then the process exits silently.

The logback initialization shows:
WARN - Appender named [STDOUT] not referenced. Skipping further processing.
WARN - Appender named [STDERR] not referenced. Skipping further processing.
WARN - Appender named [STDOUT] could not be found. Skipping attachment to Logger[ROOT].

ROOT logger has no appenders and silently swallows all scanner output.

Steps to reproduce:
sonar-scanner -X -Dsonar.qualitygate.wait=true

Expected: full scanner log output to stdout
Actual: no output, job exits with code 0 or 1 with no diagnostics

Notes:
Likely related to logback being bumped to 1.3+ as part of
GHSA-qqpg-mvqg-649v fix (epoch 4). The logback.xml inside
sonarscanner-cli.jar uses appender definitions that are dropped
by logback 1.3+ when not referenced before ROOT logger initialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions