• nacos springcloud dubbo连接错误:Fail to connect to HeaderExchangeClient


    DUBBO] Fail to connect to HeaderExchangeClient [channel=org.apache.dubbo.remoting.transport.netty4.NettyClient [/10.10.10.81:64327 -> /10.10.10.81:20881]], dubbo version: 2.7.6, current host: 10.10.10.81

    org.apache.dubbo.remoting.RemotingException: client(url: dubbo://10.10.10.81:20881/com.alibaba.cloud.dubbo.service.DubboMetadataService?anyhost=true&application=dubbo-service2&bind.ip=10.10.10.81&bind.port=20881&check=false&codec=dubbo&deprecated=false&dubbo=2.0.2&dynamic=true&generic=true&group=dubbo-service1&heartbeat=60000&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&methods=getAllServiceKeys,getServiceRestMetadata,getExportedURLs,getAllExportedURLs&pid=9968&qos.enable=false&register.ip=10.10.10.81&release=2.7.6&remote.application=dubbo-service1&revision=2.2.1.RELEASE&side=consumer&sticky=false&timestamp=1601126232991&version=1.0.0) failed to connect to server /10.10.10.81:20881 client-side timeout 3000ms (elapsed: 3014ms) from netty client 10.10.10.81 using dubbo version 2.7.6
    at org.apache.dubbo.remoting.transport.netty4.NettyClient.doConnect(NettyClient.java:174) ~[dubbo-2.7.6.jar:2.7.6]
    at org.apache.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:191) ~[dubbo-2.7.6.jar:2.7.6]
    at org.apache.dubbo.remoting.transport.AbstractClient.reconnect(AbstractClient.java:247) ~[dubbo-2.7.6.jar:2.7.6]
    at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeClient.reconnect(HeaderExchangeClient.java:166) ~[dubbo-2.7.6.jar:2.7.6]
    at org.apache.dubbo.remoting.exchange.support.header.ReconnectTimerTask.doTask(ReconnectTimerTask.java:49) ~[dubbo-2.7.6.jar:2.7.6]
    at org.apache.dubbo.remoting.exchange.support.header.AbstractTimerTask.run(AbstractTimerTask.java:87) ~[dubbo-2.7.6.jar:2.7.6]
    at org.apache.dubbo.common.timer.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:648) ~[dubbo-2.7.6.jar:2.7.6]
    at org.apache.dubbo.common.timer.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:727) ~[dubbo-2.7.6.jar:2.7.6]
    at org.apache.dubbo.common.timer.HashedWheelTimer$Worker.run(HashedWheelTimer.java:449) ~[dubbo-2.7.6.jar:2.7.6]
    at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]


    服务访问错误{"timestamp":"2020-09-26T16:44:04.530+0000","status":500,"error":"Internal Server Error","message":"Failed to invoke the method getService1 in the service com.yf.service1.api.Service1. Tried 3 times of the providers [10.10.10.81:20881] (1/1) from the registry localhost:9090 on the consumer 10.10.10.81 using the dubbo version 2.7.6. Last error is: Failed to invoke remote method: getService1, provider: dubbo://10.10.10.81:20881/com.yf.service1.api.Service1?anyhost=true&application=dubbo-consumer&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&init=false&interface=com.yf.service1.api.Service1&methods=getService1&pid=7184&qos.enable=false&register.ip=10.10.10.81&release=2.7.6&remote.application=dubbo-service1&side=consumer&sticky=false&timestamp=1601126232543, cause: client(url: dubbo://10.10.10.81:20881/com.alibaba.cloud.dubbo.service.DubboMetadataService?_client_memo=referencecounthandler.replacewithlazyclient&anyhost=true&application=dubbo-consumer&bind.ip=10.10.10.81&bind.port=20881&check=false&codec=dubbo&connect.lazy.initial.state=true&deprecated=false&dubbo=2.0.2&dynamic=true&generic=true&group=dubbo-service1&heartbeat=60000&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&lazyclient_request_with_warning=true&methods=getAllServiceKeys,getServiceRestMetadata,getExportedURLs,getAllExportedURLs&pid=7184&qos.enable=false&reconnect=false&register.ip=10.10.10.81&release=2.7.6&remote.application=dubbo-service1&revision=2.2.1.RELEASE&send.reconnect=true&side=consumer&sticky=false&timestamp=1601126232991&version=1.0.0&warning=true) failed to connect to server /10.10.10.81:20881 client-side timeout 3000ms (elapsed: 3012ms) from netty client 10.10.10.81 using dubbo version 2.7.6","path":"/service1"}

    原因:ip切换所致,新IP已注册,老的IP已执行Unregister后, 消费者依然调用生产者老的IP

    解决:重启nacos以及重启应用

  • 相关阅读:
    [SAP HANA] S4HANA XSA 安装常用命令
    [SAP BASIS]SAP 内存管理参数详解
    [SAP BASIS]有用的常用的SAP程序/报表-更新
    [SAP BASIS]激活SAP新功能模块的最实践|更改表结构
    [SAP BASIS]如何在系统拷贝时备份RFC 连接 and partner profile
    [SAP Basis] [TMS Management] 传输导入优化 import transport tunning
    [SAP BASIS]SPAM queue unable to reset after phase IMPORT_PROPER
    B. Obtain Two Zeroes -Codeforces Round 77 (Div. 2)
    B
    F
  • 原文地址:https://www.cnblogs.com/zyf-yxm/p/13737466.html
Copyright © 2020-2023  润新知