【问题标题】:Failed to upload report - HTTP code 413: The page was not displayed because the request entity is too large上传报告失败 - HTTP 代码 413:页面未显示,因为请求实体太大
【发布时间】:2020-03-03 07:37:33
【问题描述】:

我正在设置全新安装的 SonarQube 版本 7.9.1(内部版本 27448)

它使用 URL 重写在 IIS 中的反向代理后面运行。

我可以很好地登录 SonarQube。

使用 sonar-scanner-msbuild-4.7.1.2311-net46 为我的 .Net 解决方案(一个大解决方案)运行分析时失败。编译分析后,最后还是失败了。

INFO: Analysis report generated in 33994ms, dir size=196 MB
INFO: Analysis report compressed in 191901ms, zip size=71 MB
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:46:46.636s
INFO: Final Memory: 20M/746M
ERROR: Error during SonarQube Scanner execution
INFO: ------------------------------------------------------------------------
ERROR: Failed to upload report - HTTP code 413: The page was not displayed because the request entity is too large.
ERROR:
The SonarQube Scanner did not complete successfully
00:52:36.207  Post-processing failed. Exit code: 1

谷歌搜索 HTTP 413 找到了一些解决方案来启用 <serverRuntime> 并将 uploadReadAheadSize 设置为最大值(见下文)。

这并没有解决我的问题。

【问题讨论】:

标签: iis msbuild sonarqube reverse-proxy sonarqube-scan


【解决方案1】:

我想通了。

这是请求过滤功能。我不得不向上Maximum allowed content length (Bytes)

Large File Upload in IIS

【讨论】:

    猜你喜欢
    • 2014-05-10
    • 2013-08-04
    • 2012-09-23
    • 2021-11-16
    • 2011-09-28
    • 1970-01-01
    • 2017-02-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多