【Azure 应用服务】记一次Azure Spring Cloud 的部署错误 (az spring-cloud app deploy -g dev -s testdemo -n demo -p ./hellospring-0.0.1-SNAPSHOT.jar --->>> Failed to wait for deployment instances to be ready)
2021-05-28 13:35
1251 查看
问题描述
使用Azure Spring Cloud服务,在部署时候失败,收到错误消息为:
c:\project\hellospring>az spring-cloud app deploy -g dev -s testdemo -n demo -p ./hellospring-0.0.1-SNAPSHOT.jar This command usually takes minutes to run. Add '--verbose' parameter if needed. file_type is Jar [1/3] Requesting for upload URL [2/3] Uploading package to blob [3/3] Updating deployment in app 'demo' (this operation can take a while to complete) Deployment failed. Correlation ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. 112404: Failed to wait for deployment instances to be ready. Please check the application log (see https://aka.ms/azure-spring-cloud-doc-log ), and try again later.
记录一下解决问题的步骤
分析问题
1)在新环境中再次部署,同一个hellospring-x.jar包,可以成功
2)回顾对Java代码的改动,发现改动了@Value("${message}"),把message消息改为资源文件。在注释掉@Value后,部署到Spring Cloud成功。
3)查看部署包中的资源文件,发现在里边是没有配置message属性。
4)在配置文件中添加相应的测试值再进行重新build 和发布,最终可以成功发布并访问到。
PS: 这次的错误提醒自己:遇见问题后,对比可以成功运行的改动是非常重要的定位点。
相关文章推荐
- Spring Cloud ZooKeeper集成Feign的坑2,服务调用了一次后第二次调用就变成了500,错误:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.n
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: D:\testDlaner\MyNDKDemo\
- 【Azure 应用服务】在Azure App Service for Windows 中部署Java/NodeJS/Python项目时,web.config的配置模板内容
- Error:Execution failed for task ':demo:packageRelease'. > Unable to compute hash of 路径\classes.jar
- 记一次tomcat下部署2个spring boot的错误: org.springframework.jmx.export.UnableToRegisterMBeanException: Unable
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: E:\Work\Testjni\app\buil
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: E:\jiajian\jiajian\app\b
- iOS9.0 canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"key>
- 【Azure 应用服务】基于Azure的CI/CD工具链部署App Service
- Android Studio clean 时产生 Error:Execution failed for task ':app:mockableAndroidJar' > java.lang.NullP
- Error:Execution failed for task ':app:prepareDebugAndroidTestDependencies'. > Dependency Error解决方法
- Error:Execution failed for task ':app:clean'. > Unable to delete directory:
- android studio编程时出现的错误:Error:Execution failed for task ':app:buildInfoDebugLoader'. > Exception whi
- Error:Execution failed for task ':app:buildNative'. > A problem occurred 'x/x/x/' ndk-build' 错误解决
- Error:Execution failed for task ':xutils:mergeDebugAndroidTestResources'. > No slave process to proc
- 【Azure App Service For Container】创建ASP.NET Core Blazor项目并打包为Linux镜像发布到Azure应用服务
- Project build error: Non-resolvable parent POM for com.Sheffy:demo:0.0.1-SNAPSHOT: Failure to find o
- 错误:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transfo
- 错误信息,clean失败 Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermed
- Error:Execution failed for task ':app:clean'. > Unable to delete directory