-
Notifications
You must be signed in to change notification settings - Fork 429
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
两台higress使用同一nacos做配置中心 其中一台不能登录 #732
Comments
我的理解是你先完成了两台服务器的安装,然后登录 Console 进行的用户初始化,对吗? 这里你可以请求一下那台不能正常工作的 Console:http://ip:8080/system/config 看看会返回什么。
另外,这里还有一点需要注意的。Higress Console 用户名密码是保存在 Secret 里的。而为了保证 Secret 中敏感数据的安全(比如 HTTPS 证书),nacos 里的 Secret 是加密存储的。默认安装的时候,安装脚本会随机生成一个加密密钥。如果两台机器分别使用不同的密钥,后续运行是会有问题的。所以在安装的时候是需要通过指定相同的密钥,或者直接把第一台机器的整个安装目录复制到新的机器上直接启动(不需要再次安装)。 |
试了一下复制整个包到另一台机器, 还是提示初始化,日志如下: 2023-12-25 07:56:26.949 ERROR 7 --- [nio-8080-exec-8] c.a.h.c.aop.ApiStandardizationAspect : BusinessException occurs when calling com.alibaba.higress.console.controller.SystemController.initialize com.alibaba.higress.sdk.exception.BusinessException: Unable to load secret from K8s. |
检查一下两个包目录下面的 |
nacos.key是一样的, 是连接不到nacos, api日志: |
检查nacos服务端的9848端口是否能够连接 |
不是8848吗? 9848被占用了 |
Nacos 2.x 还需要使用 9848 端口。 https://nacos.io/zh-cn/docs/v2/upgrading/2.0.0-compatibility.html |
可以连接telnet 服务端9848也不行 |
9848 端口对应的是 nacos 的 9848 吗?现在有什么新的日志吗? |
2024-01-15 06:21:44.433 ERROR 7 --- [nio-8080-exec-4] c.a.h.c.aop.ApiStandardizationAspect : BusinessException occurs when calling com.alibaba.higress.console.controller.SystemController.initialize com.alibaba.higress.sdk.exception.BusinessException: Unable to load secret from K8s. |
重新安装了, 使用同一个key是可以的 |
If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via ASRC(Alibaba Security Response Center) where the issue will be triaged appropriately.
Ⅰ. Issue Description
安装了两台higress, 使用同一个nacos做配置中心,一台能正产使用, 其中一台一直提示初始化密码
Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
Ⅲ. Describe what you expected to happen
两台higress做主备,使用同一个nacos做配置中心, 使用同一份配置
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
The text was updated successfully, but these errors were encountered: