【问题标题】:Error while Deploy Azure App Service : ERROR_COULD_NOT_CONNECT_TO_REMOTESVC部署 Azure 应用服务时出错:ERROR_COULD_NOT_CONNECT_TO_REMOTESVC
【发布时间】:2021-03-15 06:10:34
【问题描述】:

我在通过 Azure DevOps 部署应用服务时遇到错误。我试图搜索这个问题,但找不到根本原因。

错误:

2021-03-15T06:01:27.7479723Z ##[error]Error: Error Code: ERROR_COULD_NOT_CONNECT_TO_REMOTESVC
More Information: Could not connect to the remote computer ("web-app.scm.azurewebsites.net") using the specified process ("Web Management Service") because the server did not respond. Make sure that the process ("Web Management Service") is started on the remote computer.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.
Error: The remote server returned an error: (403) Forbidden.
Error count: 1.
'''

【问题讨论】:

    标签: azure azure-devops azure-webapps


    【解决方案1】:

    我尝试了一切,直到我发现(在阅读 this 之后)我的(开发)共享应用服务服务计划的存储空间不足!当我将它升级到更大的时候,我可以再次部署!

    【讨论】:

      【解决方案2】:

      根据this document,该错误是由于Web Deploy无法连接到远程服务造成的。请参考以下几点来解决您的问题:

      • 请确保 Azure 应用服务正常工作。您可以 ping 远程计算机。
      • msdepsvc(“Microsoft Web 部署代理服务”)或 wmsvc(“Web 管理服务”)服务已在远程服务器上启动。
      • 您的防火墙未阻止目标端口的传入连接。如果您使用默认安装,则 msdepsvc 为 80,wmsvc 为 8172。

      此外,您可以尝试将-retryInterval:6000 -retryAttempts:10 添加到Azure App Service Deploy task 的附加参数中,正如thread 所述。

      顺便说一句,如果 Azure 管道中仍然存在此问题,请检查本地是否存在此问题。您可以参考这个帖子:Got 403 Error when doing Web DeploymentWeb Deploy results in ERROR_COULD_NOT_CONNECT_TO_REMOTESVC 以获得更多指导。

      【讨论】:

        【解决方案3】:

        感谢 Edward 对可能的根本原因进行了深入的解释。问题现已解决。 根本原因是所选的代理池没有部署权限(IP 未列入生产应用服务的白名单),因为 我们没有将 DevOps 提供的代理直接用于生产环境。

        【讨论】:

          【解决方案4】:

          一个运行良好多年的实例昨天在 Web 部署期间开始给我这个错误。我们这边没有变化。没有多少非侵入性的解决方法,只需点击 Azure 应用程序服务概述页面上的 重新启动 按钮,它就可以轻松上床了。

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 2020-05-18
            • 1970-01-01
            • 1970-01-01
            • 2018-11-29
            • 2018-01-12
            • 2020-02-10
            • 1970-01-01
            • 2022-08-06
            相关资源
            最近更新 更多