分步部署猪齿鱼时choerodon-admin模块报错

  • Choerodon平台版本: 0.25

  • 遇到问题的执行步骤:
    分步部署猪齿鱼时,choerodon-admin模块报如下错误,大意是调用网关刷新接口超时,没找到原因,麻烦高手指点一下哈 :pray:t2:

  • 文档地址:

  • 环境信息(如:节点信息):

  • 报错日志:
    2021-05-12 19:50:06.868 ERROR 7 — [eway-notifier-1] .a.i.SimpleAsyncUncaughtExceptionHandler : Unexpected error occurred invoking async method: public void org.hzero.admin.domain.service.impl.ConfigRefreshServiceImpl.notifyGatewayRefresh()

io.choerodon.core.exception.CommonException: notify gateway refresh routes failed.
at org.hzero.admin.domain.service.impl.ConfigRefreshServiceImpl.notifyGatewayRefresh(ConfigRefreshServiceImpl.java:116) ~[hzero-admin-saas-1.6.1.RELEASE.jar!/:1.6.1.RELEASE]
at org.hzero.admin.domain.service.impl.ConfigRefreshServiceImpl.notifyGatewayRefresh(ConfigRefreshServiceImpl.java:97) ~[hzero-admin-saas-1.6.1.RELEASE.jar!/:1.6.1.RELEASE]
at sun.reflect.GeneratedMethodAccessor609.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_272]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_272]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343) ~[spring-aop-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197) ~[spring-aop-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.aop.interceptor.AsyncExecutionInterceptor$$Lambda$1035/0x00000000ac00bd60.call(Unknown Source) [spring-aop-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_272]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_272]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_272]
at java.lang.Thread.run(Thread.java:823) [na:1.8.0_272]
Caused by: org.springframework.web.client.RestClientException: http transport failed, cause: I/O error on POST request for “http://10.244.122.132:8081/actuator/gateway/refresh”: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on POST request for “http://10.244.122.132:8081/actuator/gateway/refresh”: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out
at org.hzero.core.endpoint.client.BaseHttpTransporter.transport(BaseHttpTransporter.java:40) ~[hzero-starter-core-1.6.1.RELEASE.jar!/:1.6.1.RELEASE]
at org.hzero.core.endpoint.client.StringHttpTransporter.transport(StringHttpTransporter.java:24) ~[hzero-starter-core-1.6.1.RELEASE.jar!/:1.6.1.RELEASE]
at org.hzero.admin.domain.service.impl.ConfigRefreshServiceImpl.notifyGatewayRefresh(ConfigRefreshServiceImpl.java:114) ~[hzero-admin-saas-1.6.1.RELEASE.jar!/:1.6.1.RELEASE]
… 13 common frames omitted
Caused by: org.springframework.web.client.ResourceAccessException: I/O error on POST request for “http://10.244.122.132:8081/actuator/gateway/refresh”: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:696) ~[spring-web-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:644) ~[spring-web-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:564) ~[spring-web-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.hzero.core.endpoint.client.BaseHttpTransporter.transport(BaseHttpTransporter.java:33) ~[hzero-starter-core-1.6.1.RELEASE.jar!/:1.6.1.RELEASE]
… 15 common frames omitted
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.8.0_272]
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[na:1.8.0_272]
at java.net.SocketInputStream.read(SocketInputStream.java:171) ~[na:1.8.0_272]
at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[na:1.8.0_272]
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) ~[na:1.8.0_272]
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286) ~[na:1.8.0_272]
at java.io.BufferedInputStream.read(BufferedInputStream.java:345) ~[na:1.8.0_272]
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735) ~[na:1.8.0_272]
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678) ~[na:1.8.0_272]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1593) ~[na:1.8.0_272]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[na:1.8.0_272]
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) ~[na:1.8.0_272]
at org.springframework.http.client.SimpleClientHttpResponse.getRawStatusCode(SimpleClientHttpResponse.java:55) ~[spring-web-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.web.client.DefaultResponseErrorHandler.hasError(DefaultResponseErrorHandler.java:51) ~[spring-web-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:718) ~[spring-web-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:688) ~[spring-web-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
… 18 common frames omitted

  • 原因分析:

    提出您分析问题的过程,以便我们能更准确的找到问题所在

  • 疑问:

    提出您对于遇到和解决该问题时的疑问

在admin的pod中,直接curl这个url看看呢
http://10.244.122.132:8081/actuator/gateway/refresh