Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照官网测试文档,启动hongo网关成功,但创建虚拟网关时提示“服务器内部错误”,无法进行 #63

Open
sawchen opened this issue Sep 4, 2023 · 3 comments

Comments

@sawchen
Copy link

sawchen commented Sep 4, 2023

Describe the bug
A clear and concise description of what the bug is.
参考官网
安装版本为hango-gateway-1.5.0
安装完成
kubectl get pods -n hango-system
NAME READY STATUS RESTARTS AGE
hango-istiod-85b9f659dc-w7lqg 1/1 Running 1 (14d ago) 14d
hango-portal-6985fd754d-2zhgg 2/2 Running 2 (5h6m ago) 14d
hango-proxy-7ddcb9567d-w9k5x 1/1 Running 1 14d
hango-ui-6b6d9fd6f8-84n2j 1/1 Running 0 14d
istio-e2e-app-7d967f6867-kfp5x 1/1 Running 1 (5h6m ago) 14d
slime-hango-dc9556b64-jrflb 1/1 Running 0 14d

已执行install/init-hango/init.sh,成功
2.创建虚拟网关
通过虚拟网关管理界面创建虚拟网关,其中监听端口为Envoy暴露的访问端口,域名信息将为后续的服务路由所用(必要信息)
填写信息,保存
弹出“服务器内部错误”
如何解决,如何定位问题?

Add any other context about the problem here, e.g.

  • Kubernetes version
  • v1.22.2
  • OS
    NAME="CentOS Linux"
    VERSION="7 (Core)"
    ID="centos"
    3.10.0-1160.el7.x86_64
@trickMin
Copy link
Contributor

trickMin commented Sep 4, 2023

麻烦提供一下portal和api-plane的报错日志,可以按照如下命令操作

查询pod名称

kubectl get po -n hango-system | grep portal

打印日志

kubectl logs [pod名称] -c hango-portal -n hango-system

kubectl logs [pod名称] -c api-plane -n hango-system

@sawchen
Copy link
Author

sawchen commented Sep 4, 2023

[root@k8s-master init-hango]# kubectl get po -n hango-system | grep portal
hango-portal-6985fd754d-2zhgg 2/2 Running 2 (6h41m ago) [14d]
------------------------------hango-portal报错信息------------------------------------------
2023-09-04 16:26:56.641 [http-nio-11113-exec-9] INFO org.hango.cloud.common.infra.base.util.HttpClientUtil [==== uuid:08a63e86-2eb1-4ac1-be61-155e43b4124c] -
Request Info is [POST] http://10.30.60.246:10880/api/plugin?Action=PublishPluginOrder&Version=2019-07-25
2023-09-04 16:26:56.642 [http-nio-11113-exec-9] INFO org.hango.cloud.common.infra.base.util.HttpClientUtil [==== uuid:08a63e86-2eb1-4ac1-be61-155e43b4124c] -
Request Body is {"GatewayKind":"NetworkProxy","GwCluster":"hango-demo-gateway","Name":"gw-cluster-hango-demo-gateway-111-v-gateway","Port":80}
2023-09-04 16:26:56.648 [http-nio-11113-exec-9] INFO org.hango.cloud.common.infra.base.util.HttpClientUtil [==== uuid:08a63e86-2eb1-4ac1-be61-155e43b4124c] -
Request Header :
{Content-Type=[application/json]}
2023-09-04 16:26:57.485 [http-nio-11113-exec-9] INFO org.hango.cloud.common.infra.base.util.HttpClientUtil [==== uuid:08a63e86-2eb1-4ac1-be61-155e43b4124c] -
Response Info is {"RequestId":"0391b722-c6cd-4b26-b16c-65e5f8ea253f","Message":"PluginOrder Port Error","Code":"PluginOrderPortError"}
2023-09-04 16:26:57.485 [http-nio-11113-exec-9] ERROR org.hango.cloud.envoy.infra.pluginmanager.service.impl.PluginManagerServiceImpl [==== uuid:08a63e86-2eb1-4ac1-be61-155e43b4124c] -
调用api-plane发布插件配置接口失败,返回http status code非2xx,httpStatusCoed:400,errMsg:{"RequestId":"0391b722-c6cd-4b26-b16c-65e5f8ea253f","Message":"PluginOrder Port Error","Code":"PluginOrderPortError"}
2023-09-04 16:26:57.486 [http-nio-11113-exec-9] ERROR org.hango.cloud.common.infra.base.invoker.MethodAroundAspect [==== uuid:08a63e86-2eb1-4ac1-be61-155e43b4124c] -
执行 org.hango.cloud.envoy.infra.virtualgateway.hooker.EnvoyVgHooker 中对 create() 的方法增强时出现异常
2023-09-04 16:26:57.488 [http-nio-11113-exec-9] ERROR org.hango.cloud.common.infra.base.exception.CommonControllerAdvice [==== uuid:08a63e86-2eb1-4ac1-be61-155e43b4124c] -
G-Portal平台全局异常处理发现500异常! serviceName:/v1/virtualGateway, action:CreateVirtualGateway, version:2022-10-30, ex:
org.hango.cloud.common.infra.base.exception.ErrorCodeException: 服务器内部错误
at org.hango.cloud.common.infra.base.exception.ErrorCodeException.of(ErrorCodeException.java:22) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.hango.cloud.envoy.infra.virtualgateway.hooker.EnvoyVgHooker.preCreateHook(EnvoyVgHooker.java:43) ~[classes!/:0.0.1-SNAPSHOT]
at org.hango.cloud.envoy.infra.virtualgateway.hooker.EnvoyVgHooker.preCreateHook(EnvoyVgHooker.java:25) ~[classes!/:0.0.1-SNAPSHOT]
at org.hango.cloud.common.infra.base.invoker.AbstractInvokeHooker.doPreCreateHook(AbstractInvokeHooker.java:148) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_342]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_342]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
at org.hango.cloud.common.infra.base.invoker.MethodAroundAspect.aspect(MethodAroundAspect.java:103) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.hango.cloud.common.infra.virtualgateway.service.impl.VirtualGatewayServiceImpl$$EnhancerBySpringCGLIB$$b0c8f41e.create() ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.hango.cloud.common.infra.virtualgateway.controller.VirtualGatewayController.createVirtualGateway(VirtualGatewayController.java:60) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.hango.cloud.common.infra.virtualgateway.controller.VirtualGatewayController$$FastClassBySpringCGLIB$$7ad8019f.invoke() ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:123) ~[spring-context-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.hango.cloud.common.infra.virtualgateway.controller.VirtualGatewayController$$EnhancerBySpringCGLIB$$5a454949.createVirtualGateway() ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_342]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_342]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665) ~[javax.servlet-api-4.0.1.jar!/:4.0.1]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) ~[javax.servlet-api-4.0.1.jar!/:4.0.1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.hango.cloud.common.infra.operationaudit.filter.OperationAuditFilter.doFilterInternal(OperationAuditFilter.java:84) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.hango.cloud.common.infra.base.filter.ProjectTraceFilter.doFilter(ProjectTraceFilter.java:51) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.hango.cloud.common.infra.base.filter.LogUUIDFilter.doFilter(LogUUIDFilter.java:48) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.hango.cloud.common.infra.base.filter.RequestContextHolderFilter.doFilter(RequestContextHolderFilter.java:31) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.63.jar!/:?]
at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_342]
2023-09-04 16:27:33.621 [http-nio-11113-exec-5] INFO org.hango.cloud.common.infra.virtualgateway.controller.VirtualGatewayController [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
创建虚拟网关信息! virtualGatewayDto = {"Addr":"http://111.11.11.11","Code":"111-v-gateway","CreateTime":0,"Description":"","GwId":1,"ModifyTime":0,"Name":"111-v-gateway","Port":80,"ProjectIds":[],"Protocol":"HTTP","Type":"NetworkProxy","VirtualGwId":0}
2023-09-04 16:27:33.624 [http-nio-11113-exec-5] INFO h2database [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
jdbc[104]
/SQL l:173/SELECT id,create_time,update_time,gw_id,name,code,addr,project_id,type,protocol,port,domain_id,advanced_setting,description FROM hango_virtual_gateway \n \n WHERE (name = ?) {1: '111-v-gateway'};
2023-09-04 16:27:33.628 [http-nio-11113-exec-5] INFO h2database [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
jdbc[104]
/SQL l:173/SELECT id,create_time,update_time,gw_id,name,code,addr,project_id,type,protocol,port,domain_id,advanced_setting,description FROM hango_virtual_gateway \n \n WHERE (code = ?) {1: '111-v-gateway'};
2023-09-04 16:27:33.631 [http-nio-11113-exec-5] INFO h2database [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
jdbc[104]
/SQL l:190/SELECT id,create_time,update_time,gw_id,name,code,addr,project_id,type,protocol,port,domain_id,advanced_setting,description FROM hango_virtual_gateway \n \n WHERE (port = ? AND gw_id IN (?)) {1: 80, 2: 1};
2023-09-04 16:27:33.633 [http-nio-11113-exec-5] INFO h2database [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
jdbc[104]
/SQL l:38 #:1/select * from hango_gateway where id=? {1: 1};
2023-09-04 16:27:33.634 [http-nio-11113-exec-5] INFO h2database [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
jdbc[104]
/SQL l:38 #:1/select * from hango_gateway where id=? {1: 1};
2023-09-04 16:27:33.634 [http-nio-11113-exec-5] INFO org.hango.cloud.common.infra.base.util.HttpClientUtil [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
Request Info is [POST] http://10.30.60.246:10880/api/plugin?Action=PublishPluginOrder&Version=2019-07-25
2023-09-04 16:27:33.634 [http-nio-11113-exec-5] INFO org.hango.cloud.common.infra.base.util.HttpClientUtil [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
Request Body is {"GatewayKind":"NetworkProxy","GwCluster":"hango-demo-gateway","Name":"gw-cluster-hango-demo-gateway-111-v-gateway","Port":80}
2023-09-04 16:27:33.635 [http-nio-11113-exec-5] INFO org.hango.cloud.common.infra.base.util.HttpClientUtil [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
Request Header :
{Content-Type=[application/json]}
2023-09-04 16:27:33.695 [http-nio-11113-exec-5] INFO org.hango.cloud.common.infra.base.util.HttpClientUtil [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
Response Info is {"RequestId":"9b8656a0-06d1-4959-949e-85c1dbbbc11c","Message":"PluginOrder Port Error","Code":"PluginOrderPortError"}
2023-09-04 16:27:33.695 [http-nio-11113-exec-5] ERROR org.hango.cloud.envoy.infra.pluginmanager.service.impl.PluginManagerServiceImpl [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
调用api-plane发布插件配置接口失败,返回http status code非2xx,httpStatusCoed:400,errMsg:{"RequestId":"9b8656a0-06d1-4959-949e-85c1dbbbc11c","Message":"PluginOrder Port Error","Code":"PluginOrderPortError"}
2023-09-04 16:27:33.696 [http-nio-11113-exec-5] ERROR org.hango.cloud.common.infra.base.invoker.MethodAroundAspect [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
执行 org.hango.cloud.envoy.infra.virtualgateway.hooker.EnvoyVgHooker 中对 create() 的方法增强时出现异常
2023-09-04 16:27:33.696 [http-nio-11113-exec-5] ERROR org.hango.cloud.common.infra.base.exception.CommonControllerAdvice [==== uuid:2a0c0e0b-5d82-466e-ac0b-36b1f772f0b6] -
G-Portal平台全局异常处理发现500异常! serviceName:/v1/virtualGateway, action:CreateVirtualGateway, version:2022-10-30, ex:
org.hango.cloud.common.infra.base.exception.ErrorCodeException: 服务器内部错误
at org.hango.cloud.common.infra.base.exception.ErrorCodeException.of(ErrorCodeException.java:22) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.hango.cloud.envoy.infra.virtualgateway.hooker.EnvoyVgHooker.preCreateHook(EnvoyVgHooker.java:43) ~[classes!/:0.0.1-SNAPSHOT]
at org.hango.cloud.envoy.infra.virtualgateway.hooker.EnvoyVgHooker.preCreateHook(EnvoyVgHooker.java:25) ~[classes!/:0.0.1-SNAPSHOT]
at org.hango.cloud.common.infra.base.invoker.AbstractInvokeHooker.doPreCreateHook(AbstractInvokeHooker.java:148) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_342]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_342]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
at org.hango.cloud.common.infra.base.invoker.MethodAroundAspect.aspect(MethodAroundAspect.java:103) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.hango.cloud.common.infra.virtualgateway.service.impl.VirtualGatewayServiceImpl$$EnhancerBySpringCGLIB$$b0c8f41e.create() ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.hango.cloud.common.infra.virtualgateway.controller.VirtualGatewayController.createVirtualGateway(VirtualGatewayController.java:60) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.hango.cloud.common.infra.virtualgateway.controller.VirtualGatewayController$$FastClassBySpringCGLIB$$7ad8019f.invoke() ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:123) ~[spring-context-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) ~[spring-aop-5.3.20.jar!/:5.3.20]
at org.hango.cloud.common.infra.virtualgateway.controller.VirtualGatewayController$$EnhancerBySpringCGLIB$$5a454949.createVirtualGateway() ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_342]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_342]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665) ~[javax.servlet-api-4.0.1.jar!/:4.0.1]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.20.jar!/:5.3.20]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) ~[javax.servlet-api-4.0.1.jar!/:4.0.1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.hango.cloud.common.infra.operationaudit.filter.OperationAuditFilter.doFilterInternal(OperationAuditFilter.java:84) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.hango.cloud.common.infra.base.filter.ProjectTraceFilter.doFilter(ProjectTraceFilter.java:51) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.hango.cloud.common.infra.base.filter.LogUUIDFilter.doFilter(LogUUIDFilter.java:48) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.hango.cloud.common.infra.base.filter.RequestContextHolderFilter.doFilter(RequestContextHolderFilter.java:31) ~[common-infra-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.20.jar!/:5.3.20]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.63.jar!/:?]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.63.jar!/:?]
at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_342]
2023-09-04 16:27:38.246 [http-nio-11113-exec-10] INFO org.hango.cloud.common.infra.virtualgateway.controller.VirtualGatewayController [==== uuid:9d509a7d-0195-4328-9ad0-9e83533c2414] -
分页查询虚拟网关信息! query is {"Limit":20,"Offset":0,"Pattern":"","VirtualGwId":0}
2023-09-04 16:27:38.251 [http-nio-11113-exec-10] INFO h2database [==== uuid:9d509a7d-0195-4328-9ad0-9e83533c2414] -
jdbc[103]
--------------------------------api-plane没有报错日志信息-----------------------------------

@trickMin
Copy link
Contributor

trickMin commented Sep 4, 2023

报错是端口冲突,可以先尝试一下创建虚拟网关使用别的端口

是否已经创建过虚拟网关?想确认一下环境是上否存在了pluginmanager资源

kubectl get plm -n hango-system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants