devops-service 0.13.2启动失败

  • Choerodon平台版本: 0.13.2

  • 报错日志:

15:21:15.799 [main] INFO o.s.c.a.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@4cc77c2e: startup date [Mon Jan 21 15:21:15 CST 2019]; root of context hierarchy

15:21:16.261 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 ‘javax.inject.Inject’ annotation found and supported for autowiring

15:21:16.328 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final

15:21:16.541 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.retry.annotation.RetryConfiguration’ of type [org.springframework.retry.annotation.RetryConfiguration$$EnhancerBySpringCGLIB$$75f4743a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

15:21:16.559 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘configurationPropertiesRebinderAutoConfiguration’ of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$9c4adf12] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

. ____ _ __ _ _

/\ / _ __ _ () __ __ _ \ \ \ \

( ( )___ | '_ | '| | ’ / _` | \ \ \ \

\/ _)| |)| | | | | || (| | ) ) ) )

’ || .__|| ||| |__, | / / / /

=========||==============|/=///_/

:: Spring Boot :: (v1.5.14.RELEASE)

2019-01-21 15:21:17.458 INFO 1 — [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://config-server:8010/

2019-01-21 15:21:18.678 INFO 1 — [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://config-server:8010/

2019-01-21 15:21:20.256 INFO 1 — [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://config-server:8010/

2019-01-21 15:21:22.337 INFO 1 — [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://config-server:8010/

2019-01-21 15:21:24.416 INFO 1 — [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://config-server:8010/

2019-01-21 15:21:26.496 INFO 1 — [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://config-server:8010/

2019-01-21 15:21:26.557 ERROR 1 — [ main] o.s.boot.SpringApplication : Application startup failed

java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing

at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:132)

at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator$$FastClassBySpringCGLIB$$fa44b2a.invoke()

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

at org.springframework.retry.interceptor.RetryOperationsInterceptor$1.doWithRetry(RetryOperationsInterceptor.java:91)

at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287)

at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:164)

at org.springframework.retry.interceptor.RetryOperationsInterceptor.invoke(RetryOperationsInterceptor.java:118)

at org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor.invoke(AnnotationAwareRetryOperationsInterceptor.java:153)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)

at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator$$EnhancerBySpringCGLIB$$b677bc9a.locate()

at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93)

at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:567)

at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:338)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:301)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)

at io.choerodon.devops.DevopsServiceApplication.main(DevopsServiceApplication.java:21)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)

at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)

at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)

at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)

Caused by: org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error

at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:89)

at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:708)

at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:661)

at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:621)

at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:539)

at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.getRemoteEnvironment(ConfigServicePropertySourceLocator.java:172)

at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:93)

... 27 common frames omitted
  • 疑问:

    其它服务都正常启动了 ,就它不行 ?

您好, 是从0.12版本升到0.13版本吗?

我也出现了相同的问题,从0.12升级到0.13

感觉应该是0.13版本的config-server获取不到 devops-service配置, 我将devops-service回滚到0.12版本还是出现相同的问题;将config-server回滚到0.12版本,devops-service可以运行成功

对 ,现在拉配置有个空指针,目前正在解决这个问题

  1. helm upgrade, 然后更新到0.13.3版本

    helm upgrade devops-service c7n/devops-service \ --set env.open.TEMPLATE_VERSION="0.13.0" \ --set env.open.TEMPLATE_URL="https://github.com/choerodon/choerodon-devops-templates.git" \ --set env.open.SERVICES_HARBOR_PARAMS="{}" \ --set env.open.AGENT_VERSION="0.13.2" \ -f <(helm get values devops-service) \ --version 0.13.3

  2. 更新过0.13.2的,如果依然报错,用admin用户登录平台,查看devops-service配置信息,如果是下图:

    请修改devops-service 的配置信息中params

     params: {}
    

感谢,非常完美的解决了我的问题,在0.13.2上直接把配置中null改为{}即可
:smiling_face_with_three_hearts: