【问题标题】:Sonarqube server cannot be reached from sonarscanner - docker container无法从 sonarscanner 访问 Sonarqube 服务器 - docker 容器
【发布时间】:2018-04-20 04:07:28
【问题描述】:

我在 aws ec2 实例上运行了 sonarqube。我正在使用 aws codebuild 在同一 vpc 上的 aws 中构建和启动容器。当我尝试从项目根目录运行 sonar-scanner 时,它会抛出以下错误:

信息:SonarQube 扫描仪 3.0.3.778 信息:Java 1.8.0_121 Oracle 公司(64 位)信息:Linux 4.9.43-17.38.amzn1.x86_64 amd64 信息: 用户缓存:/root/.sonar/cache 错误:SonarQube 服务器 [http://34.253.186.73:9000/sonar] 无法联系信息: -------------------------------------------------- ---------------------- 信息:执行失败信息: -------------------------------------------------- ---------------------- INFO: 总时间: 5.415s INFO: Final Memory: 3M/57M INFO: -------------------------------------------------- ---------------------- 错误:SonarQube 扫描仪执行期间出错 org.sonarsource.scanner.api.internal.ScannerException:无法 执行 SonarQube 在 org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:84) 在 org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:71) 在 java.security.AccessController.doPrivileged(Native Method)

请指教。谢谢。

【问题讨论】:

    标签: amazon-web-services docker sonarqube


    【解决方案1】:

    错误消息表明扫描仪无法访问 SonarQube 服务器(无法建立连接)。

    您可以在调试问题时尝试使用浏览器访问http://34.253.186.73:9000/sonar

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-29
      • 2022-12-21
      • 2017-04-26
      • 2022-08-19
      • 1970-01-01
      • 1970-01-01
      • 2021-07-03
      • 2017-07-28
      相关资源
      最近更新 更多