gpt4 book ai didi

azure-functions - Azure 函数部署失败,Azure Pipeline 中的 Azure CLI 2.2.0 更新

转载 作者:行者123 更新时间:2023-12-04 11:40:55 26 4
gpt4 key购买 nike

azure-cli 2.1.0 一切正常
随着 Azure Pipeline(带有 Ubuntu 代理)上 azure-cli (2.2.0) 的新更新,出现错误。

ERROR: HTTPSConnectionPool(host='****.scm.azurewebsites.net', port=443): Read timed out.



在命令下运行
az functionapp deployment source config-zip -g $resourceGroupName -n $functionAppName --src "functionapp.zip"
异常详情
 WARNING: Setting SCM_DO_BUILD_DURING_DEPLOYMENT to false
WARNING: Waiting SCM site to be updated with the latest app settings
ERROR: The command failed with an unexpected error. Here is the traceback:

ERROR: HTTPSConnectionPool(host='****.scm.azurewebsites.net', port=443): Read timed out. (read timeout=3)
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "/opt/az/lib/python3.6/http/client.py", line 1331, in getresponse
response.begin()
File "/opt/az/lib/python3.6/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/opt/az/lib/python3.6/http/client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/opt/az/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/opt/az/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 317, in recv_into
raise timeout('The read operation timed out')
socket.timeout: The read operation timed out
WARNING:
To open an issue, please run: 'az feedback'
##[error]Script failed with error: Error: The process '/bin/bash' failed with exit code 1

最佳答案

当您使用 时,应用程序部署工作得非常好az webapp 而不是 az 函数应用 .
这使整个问题变得有点奇怪,但也许这对某人有所帮助;-)
https://github.com/Azure/azure-cli/issues/13655#issuecomment-694102395

关于azure-functions - Azure 函数部署失败,Azure Pipeline 中的 Azure CLI 2.2.0 更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60770160/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com