创建应用问题

  • Choerodon平台版本:0.21.0

  • 运行环境:自主搭建

  • 问题描述:

    点击“创建应用服务”创建了一个应用(无模板),页面提示成功了,但是没有gitlab仓库底子,我去看应用对应的事务,发现有一个事务失败了,如图



io.choerodon.core.exception.CommonException: error.projecthook.create
	at io.choerodon.devops.infra.feign.operator.GitlabServiceClientOperator.createWebHook(GitlabServiceClientOperator.java:364)
	at io.choerodon.devops.app.service.impl.AppServiceServiceImpl.setProjectHook(AppServiceServiceImpl.java:2708)
	at io.choerodon.devops.app.service.impl.AppServiceServiceImpl.operationApplication(AppServiceServiceImpl.java:637)
	at io.choerodon.devops.app.service.impl.AppServiceServiceImpl$FastClassBySpringCGLIB$e2351bf.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)
	at io.choerodon.devops.app.service.impl.AppServiceServiceImpl$EnhancerBySpringCGLIB$f1131f89.operationApplication(<generated>)
	at io.choerodon.devops.app.eventhandler.DevopsSagaHandler.createAppService(DevopsSagaHandler.java:176)
	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 io.choerodon.asgard.saga.consumer.SagaConsumer.invoke(SagaConsumer.java:84)
	at io.choerodon.asgard.saga.consumer.SagaConsumer.lambda$null$0(SagaConsumer.java:56)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: feign.FeignException$InternalServerError: status 500 reading GitlabServiceClient#createProjectHook(Integer,Integer,ProjectHookDTO)
	at feign.FeignException.errorStatus(FeignException.java:114)
	at feign.FeignException.errorStatus(FeignException.java:86)
	at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:93)
	at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:149)
	at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:78)
	at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
	at com.sun.proxy.$Proxy272.createProjectHook(Unknown Source)
	at io.choerodon.devops.infra.feign.operator.GitlabServiceClientOperator.createWebHook(GitlabServiceClientOperator.java:362)
	... 17 more
  • 建议:

    如何处理?

你好,这是创建失败了。点击事务实例里的重试

点了重试了,页面提示成功,但是这条记录还是失败,报错内容一致,没有效果

这个是不是入参有问题呢 我看报错显示的

你把失败的应用服务删除了重新创建吧


gitLab-serivce里报错内容

我重新建了个项目,在创建应用都不行,还是同样的事务报错,我把createProjectHook的参数打印出来


我是参考官方文档以源码的形式搭建的 各个模块以mvn spring-boot:run启动的,软件类的都是按官网的形式搭建的

这种方式并未尝试过。你既然是内网搭建,建议本地启动gitlab-service注册到内网的注册中心,打端点调试看看问题在哪。

我在本地测试了,查找了好久没发现问题,最后在yml里发现了这个


去掉8010的这个就好了