-
Choerodon平台版本:0.23
-
运行环境:自主搭建 vo,22升级至0.23版本
-
问题描述:
新建project后创建应用服务,失败,gitlab中也无法创建项目。
v0.22版本正常,升级v0.23版本后失败。
服务名称 | 服务编码 | 服务类型 | 仓库地址 | 创建时间 | 状态 | |
---|---|---|---|---|---|---|
测试服务 | apptestdemo | 普通服务 | 3分钟前 | 失败 |
异常信息:
io.choerodon.core.exception.CommonException: error.gitlab.project.create
at io.choerodon.devops.infra.feign.operator.GitlabServiceClientOperator.createProject(GitlabServiceClientOperator.java:428)
at io.choerodon.devops.app.service.impl.AppServiceServiceImpl.operationApplication(AppServiceServiceImpl.java:792)
at io.choerodon.devops.app.service.impl.AppServiceServiceImpl$$FastClassBySpringCGLIB$$e2351bf.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)
at io.choerodon.devops.app.service.impl.AppServiceServiceImpl$$EnhancerBySpringCGLIB$$9b6d9383.operationApplication()
at io.choerodon.devops.app.eventhandler.DevopsSagaHandler.createAppService(DevopsSagaHandler.java:186)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at io.choerodon.asgard.saga.consumer.SagaConsumer.invoke(SagaConsumer.java:85)
at io.choerodon.asgard.saga.consumer.SagaConsumer.lambda$null$0(SagaConsumer.java:57)
at io.choerodon.asgard.saga.consumer.SagaConsumer$$Lambda$1111/00000000185B4AF0.get(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.netflix.hystrix.exception.HystrixRuntimeException: GitlabServiceClient#createProject(Integer,String,Integer,boolean) failed and fallback failed.
at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:825)
at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:804)
at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:140)
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87)
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87)
at com.netflix.hystrix.AbstractCommand$DeprecatedOnFallbackHookApplication$1.onError(AbstractCommand.java:1472)
at com.netflix.hystrix.AbstractCommand$FallbackHookApplication$1.onError(AbstractCommand.java:1397)
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87)
at rx.observers.Subscribers$5.onError(Subscribers.java:230)
at rx.internal.operators.OnSubscribeThrow.call(OnSubscribeThrow.java:44)
at rx.internal.operators.OnSubscribeThrow.call(OnSubscribeThrow.java:28)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:142)
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87)
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87)
at com.netflix.hystrix.AbstractCommand$HystrixObservableTimeoutOperator$2.onError(AbstractCommand.java:1194)
at rx.internal.operators.OperatorSubscribeOn$SubscribeOnSubscriber.onError(OperatorSubscribeOn.java:80)
at rx.observers.Subscribers$5.onError(Subscribers.java:230)
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87)
at rx.observers.Subscribers$5.onError(Subscribers.java:230)
at com.netflix.hystrix.AbstractCommand$DeprecatedOnRunHookApplication$1.onError(AbstractCommand.java:1431)
at com.netflix.hystrix.AbstractCommand$ExecutionHookApplication$1.onError(AbstractCommand.java:1362)
at rx.observers.Subscribers$5.onError(Subscribers.java:230)
at rx.observers.Subscribers$5.onError(Subscribers.java:230)
at rx.internal.operators.OnSubscribeThrow.call(OnSubscribeThrow.java:44)
at rx.internal.operators.OnSubscribeThrow.call(OnSubscribeThrow.java:28)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OperatorSubscribeOn$SubscribeOnSubscriber.call(OperatorSubscribeOn.java:100)
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:56)
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:47)
at org.springframework.security.concurrent.DelegatingSecurityContextCallable.call(DelegatingSecurityContextCallable.java:87)
at org.hzero.core.hystrix.AbstractCallable.call(AbstractCallable.java:15)
at org.hzero.core.hystrix.RequestAttributeCallableWrapper$RequestAttributeCallable.call(RequestAttributeCallableWrapper.java:35)
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction.call(HystrixContexSchedulerAction.java:69)
at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
… 3 more
Caused by: feign.FeignException: status 500 reading GitlabServiceClient#createProject(Integer,String,Integer,boolean); content:
{“failed”:true,“code”:null,“message”:“Bad Request”,“type”:null,“exception”:“Bad Request”,“throwable”:[“Bad Request”,“org.gitlab4j.api.AbstractApi.validate(AbstractApi.java:386)”,“org.gitlab4j.api.AbstractApi.post(AbstractApi.java:181)”,“org.gitlab4j.api.ProjectApi.createProject(ProjectApi.java:654)”,“org.gitlab4j.api.ProjectApi.createProject(ProjectApi.java:573)”,“io.choerodon.gitlab.app.service.impl.ProjectServiceImpl.createProject(ProjectServiceImpl.java:42)”,“io.choerodon.gitlab.api.controller.v1.ProjectsController.create(ProjectsController.java:54)”,“sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)”,“sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)”,“sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)”,“java.lang.reflect.Method.invoke(Unknown Source)”,“org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)”,“org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)”,“org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)”,“org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)”,“org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)”,“org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)”,“org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)”,“org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)”,“org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)”,“org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)”,“javax.servlet.http.HttpServlet.service(HttpServlet.java:707)”,“org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)”,“javax.servlet.http.HttpServlet.service(HttpServlet.java:790)”,“io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)”,“io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)”,“org.hzero.core.jackson.config.ObjectMapperConfiguration$SensitiveAutoCloseFilter.doFilter(ObjectMapperConfiguration.java:51)”,“io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)”,“io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)”,“org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90)”,“org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)”,“io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)”,“io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)”,“io.choerodon.resource.filter.JwtTokenFilter.doFilter(JwtTokenFilter.java:106)”,“io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)”,“io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)”,“org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)”,“org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)”,“org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)”,“org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)”,“org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)”,“org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)”,“org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)”,“org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)”,“org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)”,“org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)”,“org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)”,“org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)”,“org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)”,“org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)”,“org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)”,“org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)”,“org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)”,“org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)”,“io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)”,“io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)”,“org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)”,“org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)”,“io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)”,“io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)”,“org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)”,“org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)”,“io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)”,“io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)”,“org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)”,“org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)”,“io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)”,“io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)”,“org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:155)”,“org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:123)”,“org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:108)”,“org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)”,“io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)”,“io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)”,“org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)”,“org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)”,“io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)”,“io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)”,“io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)”,“io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)”,“io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:65)”,“io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)”,“io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)”,“io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)”,“io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)”,“io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)”,“io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)”,“io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)”,“io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)”,“io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)”,“io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)”,“io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)”,“io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)”,“io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)”,“io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)”,“io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)”,“io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)”,“io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)”,“io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)”,“io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)”,“io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)”,“io.undertow.server.Connectors.executeRootHandler(Connectors.java:336)”,“io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)”,“java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)”,“java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)”,“java.lang.Thread.run(Unknown Source)”]}
at feign.FeignException.errorStatus(FeignException.java:60)
at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:89)
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:143)
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:77)
at feign.hystrix.HystrixInvocationHandler$1.run(HystrixInvocationHandler.java:107)
at com.netflix.hystrix.HystrixCommand$2.call(HystrixCommand.java:302)
at com.netflix.hystrix.HystrixCommand$2.call(HystrixCommand.java:298)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:46)
… 29 more