You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "weixuehu (via GitHub)" <gi...@apache.org> on 2023/02/23 03:21:45 UTC
[GitHub] [dubbo] weixuehu opened a new issue, #11634: 部署到服务器上获取的ip不是本机ip,应该怎么配置
weixuehu opened a new issue, #11634:
URL: https://github.com/apache/dubbo/issues/11634
2023-02-23 11:20:15.839 ERROR 27333 --- [eCheck-thread-1] o.a.d.r.e.s.header.ReconnectTimerTask : [DUBBO] Fail to connect toHeaderExchangeClient [channel=org.apache.dubbo.remoting.transport.netty4.NettyClient [52.9.217.50:0 -> /52.9.217.50:20881]], dubbo version: 3.1.5, current host: 52.9.217.50, error code: 6-16. This may be caused by , go to https://dubbo.apache.org/faq/6/16 to find instructions.
org.apache.dubbo.remoting.RemotingException: client(url: dubbo://52.9.217.50:20881/cn.mengkee.recruit.customer.dubbo.RemoteUserService?anyhost=true&application=recruit-merchant&background=false&cache=false&check=false&codec=dubbo&deprecated=false&dubbo=2.0.2&dubbo.endpoints=[{"port":20881,"protocol":"dubbo"}]&dubbo.metadata.revision=7ea25d0c28c45eaad4c3052a07e8f723&dubbo.metadata.storage-type=remote&dynamic=true&generic=false&group=DUBBO_GROUP&heartbeat=60000&interface=cn.mengkee.recruit.customer.dubbo.RemoteUserService&logger=slf4j&metadata-type=remote&methods=deleteById,queryPage,selectById,update,updateCommissionId,updateRealInfo,updateStatus&pid=27333&qos.accept.foreign.ip=false&qos.enable=false®ister-mode=instance®ister.ip=52.9.217.50&release=3.1.5&revision=1.0.0&service-name-mapping=true&side=consumer&sticky=false&timeout=3000×tamp=1677085802235&unloadClusterRelated=false&validation=true&version=1.0.0) failed to connect to server /52.9.217.50:20881 client-side tim
eout 3000ms (elapsed: 3001ms) from netty client 52.9.217.50 using dubbo version 3.1.5
at org.apache.dubbo.remoting.transport.netty4.NettyClient.doConnect(NettyClient.java:238)
at org.apache.dubbo.remoting.transport.netty4.NettyClient.doConnect(NettyClient.java:171)
at org.apache.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:220)
at org.apache.dubbo.remoting.transport.AbstractClient.reconnect(AbstractClient.java:274)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeClient.reconnect(HeaderExchangeClient.java:171)
at org.apache.dubbo.remoting.exchange.support.header.ReconnectTimerTask.doTask(ReconnectTimerTask.java:52)
at org.apache.dubbo.remoting.exchange.support.header.AbstractTimerTask.run(AbstractTimerTask.java:87)
at org.apache.dubbo.common.timer.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:653)
at org.apache.dubbo.common.timer.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:732)
at org.apache.dubbo.common.timer.HashedWheelTimer$Worker.run(HashedWheelTimer.java:454)
at java.lang.Thread.run(Thread.java:750)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] yuchang01 commented on issue #11634: 部署到服务器上获取的ip不是本机ip,应该怎么配置
Posted by "yuchang01 (via GitHub)" <gi...@apache.org>.
yuchang01 commented on issue #11634:
URL: https://github.com/apache/dubbo/issues/11634#issuecomment-1441184273
see [主机地址自定义暴露](https://dubbo.apache.org/zh-cn/docs3-v2/java-sdk/advanced-features-and-usage/others/set-host/)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] MieAh commented on issue #11634: 部署到服务器上获取的ip不是本机ip,应该怎么配置
Posted by "MieAh (via GitHub)" <gi...@apache.org>.
MieAh commented on issue #11634:
URL: https://github.com/apache/dubbo/issues/11634#issuecomment-1441185168
你得确保获取自己的本机ip的地址方式是正确的。而配置ip地址在官网解释是多网卡选择或指定VIP及域名时使用,为空则自动查找本机IP,建议不要配置,让Dubbo自动获取本机IP。如果你要配置可以通过dubbo.protocol.host进行一个手动配置。详细更多的配置选项,你可以通过查看此链接[官网配置手册](https://dubbo.apache.org/zh-cn/docs3-v2/java-sdk/reference-manual/config/properties/)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org