Open huangye123 opened 6 months ago
【现象】配置Higress的Nacos网关的IP地址手误录入为127.0.0,1 后面中逗号了。重启后无法进入Web控制台。 2024-04-30T10:46:24.619122Z info new nacos2 watcher with config Name:nacos103 2024-04-30T10:46:24.619158Z info [INFO] logDir:</var/log/nacos/log/> cacheDir:</var/log/nacos/cache/> 2024-04-30T10:46:24.619307Z error can not create naming client, err:Post "http://127.0.0,1:8848/nacos/v1/auth/users/login": dial tcp: lookup 127.0.0,1: no such host 2024-04-30T10:46:24.719268Z info ads Push debounce stable[2] 2 for config ServiceEntry/higress-system/mcpbridge-serviceentry: 100.63358ms since last change, 100.704802ms since last push, full=true 2024-04-30T10:46:24.719416Z info ingress resource type networking.istio.io/v1alpha3/ServiceEntry, configs number 13 2024-04-30T10:46:24.719516Z info ingress Found http2rpc serviceEntries [%!s(memory.ServiceEntryWrapper=&{ 0xc000a37a40 {13944359269867304518 245671387 0x516ba20}}) %!s(memory.ServiceEntryWrapper=&{ 0xc000cf60c0 {13944359269867400141 245767000 0x516ba20}})] 2024-04-30T10:46:24.719529Z info ads XDS: Pushing:2024-04-30T10:46:24Z/2 Services:0 ConnectedEndpoints:0 Version:2024-04-30T10:46:24Z/2 2024-04-30T10:46:34.619694Z error ReconcileRegistries failed, err:new nacos2 watcher timeout 2024-04-30T10:46:34.619714Z error ingress Mcpbridge reconcile failed, err:ReconcileRegistries failed, Init Watchers failed
【建议】 1、IP地址和端口号在前端增加有效性验证,避免录入非法的信息。
2、Nacos配置信息有误,也不影响Web控制台的登录。
这里至少有两个问题:
hgctl dashboard console
kubectl port-forward service/higress-console -n higress-system 8080:8080
http://localhost:8080
控制台的输入校验问题我后面会看一下。
【现象】配置Higress的Nacos网关的IP地址手误录入为127.0.0,1 后面中逗号了。重启后无法进入Web控制台。 2024-04-30T10:46:24.619122Z info new nacos2 watcher with config Name:nacos103 2024-04-30T10:46:24.619158Z info [INFO] logDir:</var/log/nacos/log/> cacheDir:</var/log/nacos/cache/> 2024-04-30T10:46:24.619307Z error can not create naming client, err:Post "http://127.0.0,1:8848/nacos/v1/auth/users/login": dial tcp: lookup 127.0.0,1: no such host 2024-04-30T10:46:24.719268Z info ads Push debounce stable[2] 2 for config ServiceEntry/higress-system/mcpbridge-serviceentry: 100.63358ms since last change, 100.704802ms since last push, full=true 2024-04-30T10:46:24.719416Z info ingress resource type networking.istio.io/v1alpha3/ServiceEntry, configs number 13 2024-04-30T10:46:24.719516Z info ingress Found http2rpc serviceEntries [%!s(memory.ServiceEntryWrapper=&{ 0xc000a37a40 {13944359269867304518 245671387 0x516ba20}}) %!s(memory.ServiceEntryWrapper=&{ 0xc000cf60c0 {13944359269867400141 245767000 0x516ba20}})] 2024-04-30T10:46:24.719529Z info ads XDS: Pushing:2024-04-30T10:46:24Z/2 Services:0 ConnectedEndpoints:0 Version:2024-04-30T10:46:24Z/2 2024-04-30T10:46:34.619694Z error ReconcileRegistries failed, err:new nacos2 watcher timeout 2024-04-30T10:46:34.619714Z error ingress Mcpbridge reconcile failed, err:ReconcileRegistries failed, Init Watchers failed
【建议】 1、IP地址和端口号在前端增加有效性验证,避免录入非法的信息。
2、Nacos配置信息有误,也不影响Web控制台的登录。