Error downloading build-wrapper-linux-x86.zip

  • ALM used (Bitbucket Cloud)
  • CI system used (Bitbucket Cloud)
  • Scanner command used when applicable (Manual)
  • Languages of the repository (C, C++)
  • Error observed
root@c89be0e1e166:/workspace# unzip $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
Archive:  /root/.sonar/build-wrapper-linux-x86.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /root/.sonar/build-wrapper-linux-x86.zip or
        /root/.sonar/build-wrapper-linux-x86.zip.zip, and cannot find /root/.sonar/build-wrapper-linux-x86.zip.ZIP, period.
  • Steps to reproduce (these steps are the default ones when I connect to Bitbucket)
$ export SONAR_SCANNER_VERSION=6.2.1.4610
$ export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-x64
$ export BW_OUTPUT=$HOME/.sonar/bw-output
$ mkdir -p $BW_OUTPUT
$ curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-x64.zip
$ unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
$ export PATH=$SONAR_SCANNER_HOME/bin:$PATH
$ curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
$ unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
$ Archive:  /root/.sonar/build-wrapper-linux-x86.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /root/.sonar/build-wrapper-linux-x86.zip or
        /root/.sonar/build-wrapper-linux-x86.zip.zip, and cannot find /root/.sonar/build-wrapper-linux-x86.zip.ZIP, period.

I have checked the version and it matches the one available at SonarSource Downloads-CDN.

2024-10-01T08:51:05.000Z 10.7 MB sonar-scanner-cli-6.2.1.4610.zip

Hey @FelipeRodriguez_vega

It looks like we just deployed a new version of our CFamily analyzer this morning. I wonder if this issue was transient. Does it persist now?

Hi, Colin

Everything seems to be working normally.

Thank you,

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