NPM sonarqube-scanner 失败,显示 401 Unauthorized
NPM sonarqube-scanner fails with 401 Unauthorized
我们使用 npm 包 sonarqube-scanner 版本 2.1.1 来分析我们的 angular/typescript 项目。但是从昨天开始,在从网站下载声纳扫描仪时,声纳分析失败并显示 401。
我检查了 url 并且 https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip 确实需要身份验证。有谁知道为什么或有解决方法吗?
09-Oct-2018 13:24:08 [11:24:08] Starting SonarQube analysis...
09-Oct-2018 13:24:08 [11:24:08] Checking if executable exists: /root/.sonar/native-sonar-scanner/sonar-scanner-3.2.0.1227-linux/bin/sonar-scanner
09-Oct-2018 13:24:08 [11:24:08] Could not find executable in "/root/.sonar/native-sonar-scanner".
09-Oct-2018 13:24:08 [11:24:08] Proceed with download of the platform binaries for SonarQube Scanner...
09-Oct-2018 13:24:08 [11:24:08] Creating /root/.sonar/native-sonar-scanner
09-Oct-2018 13:24:08 [11:24:08] Downloading from https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip
09-Oct-2018 13:24:08 [11:24:08] (executable will be saved in cache folder: /root/.sonar/native-sonar-scanner)
09-Oct-2018 13:24:09 [11:24:09] ERROR: impossible to download and extract binary: Response code 401 (Unauthorized)
09-Oct-2018 13:24:09 [11:24:09] SonarQube Scanner binaries probably don't exist for your OS (linux).
09-Oct-2018 13:24:09 [11:24:09] In such situation, the best solution is to install the standard SonarQube Scanner (requires a JVM).
09-Oct-2018 13:24:09 [11:24:09] Check it out at https://redirect.sonarsource.com/doc/install-configure-scanner.html
09-Oct-2018 13:24:09
看起来他们为二进制下载更改了 url。如果你使用 npm 包你需要安装 2.1.2
我今天打了这个。经过调查,声纳似乎将它们的二进制文件从 "sonarsource.bintray.com" 移到了 "binaries.sonarsource.com"。 url 结构的其余部分看起来相同。
这是链接到下载的声纳页面:
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
我们使用 npm 包 sonarqube-scanner 版本 2.1.1 来分析我们的 angular/typescript 项目。但是从昨天开始,在从网站下载声纳扫描仪时,声纳分析失败并显示 401。
我检查了 url 并且 https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip 确实需要身份验证。有谁知道为什么或有解决方法吗?
09-Oct-2018 13:24:08 [11:24:08] Starting SonarQube analysis...
09-Oct-2018 13:24:08 [11:24:08] Checking if executable exists: /root/.sonar/native-sonar-scanner/sonar-scanner-3.2.0.1227-linux/bin/sonar-scanner
09-Oct-2018 13:24:08 [11:24:08] Could not find executable in "/root/.sonar/native-sonar-scanner".
09-Oct-2018 13:24:08 [11:24:08] Proceed with download of the platform binaries for SonarQube Scanner...
09-Oct-2018 13:24:08 [11:24:08] Creating /root/.sonar/native-sonar-scanner
09-Oct-2018 13:24:08 [11:24:08] Downloading from https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip
09-Oct-2018 13:24:08 [11:24:08] (executable will be saved in cache folder: /root/.sonar/native-sonar-scanner)
09-Oct-2018 13:24:09 [11:24:09] ERROR: impossible to download and extract binary: Response code 401 (Unauthorized)
09-Oct-2018 13:24:09 [11:24:09] SonarQube Scanner binaries probably don't exist for your OS (linux).
09-Oct-2018 13:24:09 [11:24:09] In such situation, the best solution is to install the standard SonarQube Scanner (requires a JVM).
09-Oct-2018 13:24:09 [11:24:09] Check it out at https://redirect.sonarsource.com/doc/install-configure-scanner.html
09-Oct-2018 13:24:09
看起来他们为二进制下载更改了 url。如果你使用 npm 包你需要安装 2.1.2
我今天打了这个。经过调查,声纳似乎将它们的二进制文件从 "sonarsource.bintray.com" 移到了 "binaries.sonarsource.com"。 url 结构的其余部分看起来相同。
这是链接到下载的声纳页面: https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner