TencentBlueKing / bk-ci

蓝鲸持续集成平台(蓝盾)
https://bk.tencent.com
Other
2.37k stars 498 forks source link

run java -jar boot-assembly.jar -Dspring.cloud.config.fail-fast=true fail #6147

Open mikeeastin opened 2 years ago

mikeeastin commented 2 years ago

code branch release-1.8 , https://github.com/Tencent/bk-ci/tree/release-1.8

mikeeastin commented 2 years ago

[root@jszx-test release]# /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-1.el7_9.x86_64/bin/java -Xms2g -Xmx2g -XX:NewRatio=1 -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC -server -Dcertificate.file=/data/bkee-0216/cert/bkci_platform.cert -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom -Dspring.config.location=file:/data/bkee-0216/etc/ci/common.yml,file:/data/bkee-0216/etc/ci/application-assembly.yml -Dservice.log.dir=/data/bkee-0216/logs/ci/assembly/ -Dspring.cloud.config.uri=http://127.0.0.1:8500 -Dspring.cloud.config.failFast=true -Dspring.cloud.consul.config.enabled=true -Ddevops_gateway=http://devops.bktencent.com -classpath /data/bkee-0216/ci/boot-assembly/config:. -jar /data/bkee-0216/ci/boot-assembly/boot-assembly.jar maxFileSize:300 MB,maxFileAge:30d,maxFileIndex:30 2022-02-17 10:56:25.239 INFO 9172 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-config/application/'}] 2022-02-17 10:56:25.411 INFO 9172 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://10.11.10.116:8500 2022-02-17 10:56:26.767 INFO 9172 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://10.11.10.116:8500 2022-02-17 10:56:27.992 INFO 9172 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://10.11.10.116:8500 2022-02-17 10:56:29.308 INFO 9172 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://10.11.10.116:8500 2022-02-17 10:56:30.752 INFO 9172 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://10.11.10.116:8500 2022-02-17 10:56:32.372 INFO 9172 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://10.11.10.116:8500 2022-02-17 10:56:32.495 ERROR 9172 --- [ main] o.s.b.SpringApplication : Application run failed

java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing: None of labels [] found at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:133) ~[spring-cloud-config-client-3.0.3.jar!/:3.0.3] at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:51) ~[spring-cloud-context-3.0.2.jar!/:3.0.2] at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locateCollection(ConfigServicePropertySourceLocator.java:145) ~[spring-cloud-config-client-3.0.3.jar!/:3.0.3] at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator$$FastClassBySpringCGLIB$$fa44b2a.invoke() ~[spring-cloud-config-client-3.0.3.jar!/:3.0.3] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.6.jar!/:5.3.6] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779) ~[spring-aop-5.3.6.jar!/:5.3.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.6.jar!/:5.3.6] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.3.6.jar!/:5.3.6] at org.springframework.retry.interceptor.RetryOperationsInterceptor$1.doWithRetry(RetryOperationsInterceptor.java:93) ~[spring-retry-1.3.1.jar!/:?] at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:329) ~[spring-retry-1.3.1.jar!/:?] at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:209) ~[spring-retry-1.3.1.jar!/:?] at org.springframework.retry.interceptor.RetryOperationsInterceptor.invoke(RetryOperationsInterceptor.java:119) ~[spring-retry-1.3.1.jar!/:?] at org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor.invoke(AnnotationAwareRetryOperationsInterceptor.java:163) ~[spring-retry-1.3.1.jar!/:?] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.6.jar!/:5.3.6] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.3.6.jar!/:5.3.6] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692) ~[spring-aop-5.3.6.jar!/:5.3.6] at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator$$EnhancerBySpringCGLIB$$df917767.locateCollection() ~[spring-cloud-config-client-3.0.3.jar!/:3.0.3] at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:95) ~[spring-cloud-context-3.0.2.jar!/:3.0.2] at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:650) [spring-boot-2.4.5.jar!/:2.4.5] at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:403) [spring-boot-2.4.5.jar!/:2.4.5] at org.springframework.boot.SpringApplication.run(SpringApplication.java:338) [spring-boot-2.4.5.jar!/:2.4.5] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144) [spring-boot-2.4.5.jar!/:2.4.5] at com.tencent.devops.common.service.MicroServiceApplication.run(MicroServiceApplication.kt:40) [common-service-1.7.0-RELEASE.jar!/:?] at com.tencent.devops.AssemblyApplicationKt.main(AssemblyApplication.kt:56) [classes!/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_322] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_322] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_322] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_322] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [boot-assembly.jar:?] at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) [boot-assembly.jar:?] at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [boot-assembly.jar:?] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) [boot-assembly.jar:?]