如何解决Azure webapps 和 functionapps 部署随机失败
在管道部署期间,向 azure webapps 和 functionapps 的部署随机失败。有时部署成功完成,没有任何错误,但随机构建失败。尝试并行部署多个 webapps 和 functionapps。使用 Jenkins 管道进行部署。
我用于部署 webapps 的命令是 az webapp deployment source config-zip -g xxx -n xxx --src xxx
失败时记录:
09:47:31 Deployment endpoint responded with status code 202
09:47:31 Configuring default logging for the app,if not already enabled
09:47:31 Zip deployment failed. {'id': 'XXXX','status': 3,'status_text': '','author_email': 'N/A','author': 'N/A','deployer': 'ZipDeploy','message': 'Created via a push deployment','progress': '','received_time': '2021-01-20T08:47:00.3856858Z','start_time': '2021-01-20T08:47:00.791329Z','end_time': '2021-01-20T08:47:18.7995378Z','last_success_end_time': None,'complete': True,'active': False,'is_temp': False,'is_readonly': True,'url': 'https://xxxxx.scm.azurewebsites.net/api/deployments/latest','log_url': 'https://xxxxx.scm.azurewebsites.net/api/deployments/latest/log','site_name': 'xxxxx','provisioningState': None}. Please run the command az webapp log deployment show -n xxxx -g xxxx
azure 中的部署日志 url 显示:
{"Message":"An error has occurred.","ExceptionMessage":"No log found for 'latest'.","ExceptionType":"System.IO.FileNotFoundException","StackTrace":" at Kudu.Core.Deployment.DeploymentManager.GetLogEntries(String id) in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\Deployment\\DeploymentManager.cs:line 93\r\n at Kudu.Services.Deployment.DeploymentController.GetLogEntry(String id) in C:\\Kudu Files\\Private\\src\\master\\Kudu.Services\\Deployment\\DeploymentController.cs:line 375"}```
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。