Why does sonar cloud load project repositories 404 report an error?


java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
you are using the latest version of the build-wrapper and the CFamily analyzer
your compiler is supported
you are wrapping your build correctly
you are wrapping a full/clean build
if you are building your project inside a Docker container, build-wrapper is wrapping the build process inside the container and not wrapping the external Docker process
at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:431)

  • Steps to reproduce

Why does Get 404 report an error? Cause the subsequent analysis to fail?
How should I solve such a problem?

Hello @freeeyes,

It seems like the projectKey you provided is not correct. I think you are trying to analyse this project and it’s key is ArkNX_PSS_ASIO not PSS_ASIO.

However that doesn’t seem to be related to what the scanner is failing on, I suspect it is failing because of it is not wrapping a full build (like is mentioned in the error message).
You are building your project prior to executing the build-wrapper, which probably means that the build-wrapper is not wrapping a full build.

@TomVanBraband thank you very much for your help.
I compared the test cases you provided

  • build-wrapper-linux-x86-64 --out-dir bw-output cmake --build build/

my travis.yml:

  • build-wrapper-linux-x86-64 --out-dir bw-output cmake --build Build/Linux/

travis log:
$ build-wrapper-linux-x86-64 --out-dir bw-output cmake --build …/Build/Linux/
[ 79%] Built target pss_asio
[ 91%] Built target Test_Logic
[100%] Built target PacketParse_Inferface
The command “build-wrapper-linux-x86-64 --out-dir bw-output cmake --build …/Build/Linux/” exited with 0.

Is my path “Build/Linux/” incorrect?

thanks,I solved the problem of incomplete compilation. And know the cause of the problem.
I generated build-wrapper-dump.json, but the sonar scan still reports errors.

An error occurred while analyzing the following compilation unit:

A file named “sonar-cfamily-reproducer.zip” has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:

Travis log:

@TomVanBraband thinks,I solved this problem.

The solution is as follows:
add CMake macro,


The reason for the crash is:

1 Like

@freeeyes Thanks a lot for sharing your solutions!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.