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

HA环境,server端配置浮动ip,服务器hostname中为物理ip,服务每次启动取到错误的物理ip,报出ReferenceInvokeException,有什么解决方案吗 #974

Open
yaojiangtao opened this issue Apr 15, 2022 · 2 comments

Comments

@yaojiangtao
Copy link

No description provided.

@yaojiangtao
Copy link
Author

查看过zk中motan节点的服务ip,IP为注册的正确的浮动ip,但服务启动时还是获取了真实IP,并且端口号为0.

@rayzhang0603
Copy link
Collaborator

可以看看是否有建连失败相关日志,看看实际建立连接的ip是否正确。

client会从注册中心获取server节点并建连,如果zk中注册的server节点是正确的,client就会和正确的节点建连。

可以按下面的步骤排查一下问题:

1、可看一下client端从注册中心获取到的server节点的通知日志是不是正确的。

如果不正确说明server端注册的ip不正确,可以参考一下获取本机ip的逻辑,看一下server端获取本机ip的情况。

2、如果client侧获取到了正确的server ip,就看一下client和server节点的建连相关日志,比如netty3建连异常日志或者 netty4建连异常日志,看看是否网络问题导致建连失败。

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