Open sawchen opened 1 year ago
麻烦提供一下portal和api-plane的报错日志,可以按照如下命令操作
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
[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(
报错是端口冲突,可以先尝试一下创建虚拟网关使用别的端口
是否已经创建过虚拟网关?想确认一下环境是上否存在了pluginmanager资源
kubectl get plm -n hango-system
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.