Failed to upload report - Please conact your administrator

Sonarqube version : Enterprise 8.9.6
Scanner version : 4.8.0-2856-linux

I run the build-wrapper and Sonarscanner successfully and after 6 hours of run, I got the following error. I’ve never seen this error before and it seems like it successfully analyze the code and generated report but couldn’t just upload it.
I wonder what would be the root cause of this error.

\begin{code}

WARN: Too many duplication references on file components/yocto/workspace/sources/linux-xlnx/drivers/pinctrl/intel/pinctrl-geminilake.c for blocline 74. Keep only the first 100 references.

WARN: Too many duplication references on file components/yocto/workspace/sources/linux-xlnx/drivers/pinctrl/intel/pinctrl-geminilake.c for blocline 37. Keep only the first 100 references.

WARN: Too many duplication references on file components/yocto/workspace/sources/linux-xlnx/drivers/pinctrl/intel/pinctrl-geminilake.c for blocline 94. Keep only the first 100 references.

WARN: Too many duplication references on file components/yocto/workspace/sources/linux-xlnx/drivers/pinctrl/intel/pinctrl-geminilake.c for blocline 37. Keep only the first 100 references.

WARN: Too many duplication references on file components/yocto/workspace/sources/linux-xlnx/drivers/pinctrl/intel/pinctrl-geminilake.c for blocline 101. Keep only the first 100 references.

WARN: Too many duplication references on file components/yocto/workspace/sources/linux-xlnx/drivers/pinctrl/intel/pinctrl-geminilake.c for blocline 37. Keep only the first 100 references.

WARN: Too many duplication references on file components/yocto/workspace/sources/linux-xlnx/drivers/pinctrl/intel/pinctrl-geminilake.c for blocline 94. Keep only the first 100 references.

INFO: CPD Executor CPD calculation finished (done) | time=1073758ms

INFO: Load New Code definition

INFO: Load New Code definition (done) | time=679ms

INFO: Analysis report generated in 43380ms, dir size=5 GB

INFO: Analysis report compressed in 305583ms, zip size=1 GB

INFO: ------------------------------------------------------------------------

INFO: EXECUTION FAILURE

INFO: ------------------------------------------------------------------------

INFO: Total time: 6:46:57.789s

INFO: Final Memory: 8M/560M

INFO: ------------------------------------------------------------------------

ERROR: Error during SonarScanner execution

ERROR: Failed to upload report - An error has occurred. Please contact your administrator

ERROR:

ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

\end{code}

Also, what would be the best way to exclude the ‘component’ and ‘build’ directory?
I’ve tried something like

\text{sonar.exclusions = build/**, component/** }

but it didn’t work.

My file structure looks like the following and I’m only interested in scanning ‘project-spec’
‘build’, ‘bw-output’, ‘components’, ‘images’, ‘sonar-cfamily-reproducer.zip’ are all created when build-wrapper or Sonarscanner was running.

Thank you.

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.9.6 → 9.9 → 10.0 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, there is likely something on your network, e.g. a proxy, that’s blocking the analysis report submission. You should check with your network folks.

 
HTH,
Ann