dubbo: message can not send, because channel is closed

发布于 2022-09-11 18:40:43 字数 3560 浏览 16 评论 0

日志

[TSAIP] [INFO ] 2019-03-25 15:16:33,924 com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry(AbstractRegistry.java:343) -24851 [localhost-startStop-1] - [DUBBO] Unsubscribe: consumer://183.207.215.240/com.ustcinfo.esi.common.interfacle.orch.IArchProcTypeService?application=esi-web&category=providers,configurators,routers&default.check=false&dubbo=2.5.3&interface=com.ustcinfo.esi.common.interfacle.orch.IArchProcTypeService&methods=update,findAllArchProcTypeByNodeId,findFatherByParNodeId,saveNewArchProcType,modiProcType,findAll,delete,findArchProcTypeByNodeId,findArchProcTypeByNodeName,saveArchProcType,getProcTypeName&pid=90110&revision=8.3.1-SNAPSHOT&side=consumer&timeout=1000000&timestamp=1553498189390, dubbo version: 2.5.3, current host: 183.207.215.240

15:16:34.734 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchServController': Injection of autowired dependencies failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getConfigValueByCode in the service com.ustcinfo.esi.common.interfacle.stconfig.IStConfigService. Tried 3 times of the providers [183.207.215.240:28890] (1/1) from the registry 10.154.7.24:2181 on the consumer 183.207.215.240 using the dubbo version 2.5.3. Last error is: Failed to invoke remote method: getConfigValueByCode, provider: dubbo://183.207.215.240:28890/com.ustcinfo.esi.common.interfacle.stconfig.IStConfigService?anyhost=true&application=esi-web&check=false&default.check=false&dubbo=2.5.4-SNAPSHOT&executes=10&generic=false&interface=com.ustcinfo.esi.common.interfacle.stconfig.IStConfigService&methods=querySysParamByKey,loadAll,saveSysParam,deleteAllSysParam,querySysParamById,deleteSysParam,updateSysParam,getConfigValueByCode&payload=176777216&pid=90110&revision=8.3.1-SNAPSHOT&side=consumer&timeout=1000000&timestamp=1553498188007, cause: message can not send, because channel is closed . url:dubbo://183.207.215.240:28890/com.ustcinfo.esi.common.interfacle.register.IServAffordManRegService?anyhost=true&application=esi-web&check=false&codec=dubbo&default.check=false&dubbo=2.5.4-SNAPSHOT&executes=10&generic=false&heartbeat=60000&interface=com.ustcinfo.esi.common.interfacle.register.IServAffordManRegService&methods=updateServ,getServAffordManRegByCodeOrName,getServAffordManRegByServManCode,saveServ,checkRepeat,getServAffordManRegById,getServAffordManRegByCode,getServAffordManRegByServManCode4Page,getServAffordManRegByServManId,getServAffordManRegByServManId4Page,deleteServ&payload=176777216&pid=90110&revision=8.3.1-SNAPSHOT&side=consumer&timeout=1000000&timestamp=1553498183162

问题出现的环境背景及自己尝试过哪些方法

我的服务提供方部署的机器ip 是10.154.7.25 但是上面打印的出现current host: 183.207.215.240
我看到本网站的给的回答是:

  1. 确认服务提供方是否正常运行
  2. 确认配置ip,端口等是否配置正确
  3. 确认服务提供方的ip是否因为网络问题而导致ip变动
  4. 确认安全策略 端口是否被屏蔽

怀疑原因是第三条,但是怎么解决呢? 网上回答最多的是wifi精灵或虚拟机导致的,但是我的是centos系统,没有安装这些软件。
通过ifconfig ;查看的地址确实是10.154.7.25
通过ping 183.207.215.240命令,ping不同。
防火墙已经关闭。

期待回应

是否是ip 183.207.215.240的原因。
linux 系统有什么应用会改变本机ip。
我对dubbo 了解甚少,还希望大神解答详细一点。大恩不言谢!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南风起 2022-09-18 18:40:43

已经解决:

修改服务器上的DNS配置,将nameserver 改成本机ip

nameserver 10.154.7.25

参考链接https://blog.csdn.net/fullbug...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文