devops 创建应用总是失败,gitlab服务正常

devops: http 服务功能正常,gitlab:https 服务功能正常, c7n/gitlab-service version 0.19.2,开发–>应用服务 模块,创建应用服务时,很久列表状态显示:失败,但是gitlab里面发现git仓库创建成功,
1、应用服务功能界面:
服务名称 服务编码 服务类型 仓库地址 创建时间 状态
平台SDK XXX-third-api 普通服务 3天前 失败

2、pod日志:
2019-12-12 21:35:00.341 INFO 7 — [ XNIO-3 task-46] i.c.r.h.ControllerExceptionHandler : exception info io.choerodon.core.exception.FeignException: Bad Request
at io.choerodon.gitlab.app.service.impl.ProjectServiceImpl.createProject(ProjectServiceImpl.java:49)
at io.choerodon.gitlab.api.controller.v1.ProjectsController.create(ProjectsController.java:60)
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.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
at io.choerodon.resource.filter.JwtTokenFilter.doFilter(JwtTokenFilter.java:90)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:336)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
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:813)
Caused by: org.gitlab4j.api.GitLabApiException: Bad Request
at org.gitlab4j.api.AbstractApi.validate(AbstractApi.java:330)
at org.gitlab4j.api.AbstractApi.post(AbstractApi.java:143)
at org.gitlab4j.api.ProjectApi.createProject(ProjectApi.java:646)
at org.gitlab4j.api.ProjectApi.createProject(ProjectApi.java:565)
at io.choerodon.gitlab.app.service.impl.ProjectServiceImpl.createProject(ProjectServiceImpl.java:42)
… 83 more

======================================================
尝试定位问题:
1、在pod中执行 curl --header “PRIVATE-TOKEN: tsxxxxxx” https://git.xxxxx.com/api/v4/projects 可以正常返回结果。
2、错误位置:package org.gitlab4j.api.AbstractApi

protected Response validate(Response response, Response.Status expected) throws GitLabApiException {

    if (Response.Status.UNAUTHORIZED.equals(response.getStatus())){
        throw new GitLabApiException("=============="+response+"\nAccessToken invalid");
    }
    if (response.getStatus() != expected.getStatusCode()) {
        throw new GitLabApiException(response); ~~~~~~~~~~~~~~~~~~~~~~~~~~可能错误位置。
    }

请问改怎么定位问题,或者解决。

你好,按照你说的情况是:gitlab-service的Pod是running的,命令行使用私钥访问是正常的,但是界面上创建项目时失败日志里报的错是 AccessToken invalid对吗?

请问你是否在gitlab的界面手动操作过权限呢?