Sag*_*rni 5 azure-cli azure-functions
azure-cli 2.1.0 一切正常,Azure Pipeline(带有 Ubuntu 代理)上的 azure-cli (2.2.0) 新更新出现错误。
错误:HTTPSConnectionPool(host='****.scm.azurewebsites.net', port=443):读取超时。
在命令下运行
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
Run Code Online (Sandbox Code Playgroud)
小智 1
当您使用az webapp而不是az functionapp时,应用程序部署工作得非常好。这让整个问题变得有点奇怪,但也许这对某人有帮助;-)
https://github.com/Azure/azure-cli/issues/13655#issuecomment-694102395
| 归档时间: |
|
| 查看次数: |
764 次 |
| 最近记录: |