no available service found in cluster ‘default‘, please make sure registry config correct and keep..

2021-11-02 19:02:46.353  INFO 41032 --- [g.push.receiver] com.alibaba.nacos.client.naming          : current ips:(0) service: DEV_GROUP@@account@@DEFAULT -> []
2021-11-02 19:02:48.768  INFO 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown stop
2021-11-02 19:02:48.769  INFO 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.EventDispatcher do shutdown begin
2021-11-02 19:02:51.773  INFO 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.EventDispatcher do shutdown stop
2021-11-02 19:02:51.773  INFO 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.HostReactor do shutdown begin
2021-11-02 19:02:54.692 ERROR 41032 --- [eoutChecker_1_1] i.s.c.r.netty.NettyClientChannelManager  : no available service found in cluster 'default', please make sure registry config correct and keep your seata server running
2021-11-02 19:02:54.712 ERROR 41032 --- [eoutChecker_2_1] i.s.c.r.netty.NettyClientChannelManager  : no available service found in cluster 'default', please make sure registry config correct and keep your seata server running
2021-11-02 19:02:54.774  INFO 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.PushReceiver do shutdown begin
2021-11-02 19:02:57.777  INFO 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.PushReceiver do shutdown stop
2021-11-02 19:02:57.777  INFO 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin
2021-11-02 19:02:57.777  INFO 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop
2021-11-02 19:02:57.777  INFO 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.HostReactor do shutdown stop
2021-11-02 19:02:57.777  INFO 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.net.NamingProxy do shutdown begin
2021-11-02 19:02:57.777  WARN 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : [NamingHttpClientManager] Start destroying NacosRestTemplate
2021-11-02 19:02:57.777  WARN 41032 --- [extShutdownHook] com.alibaba.nacos.client.naming          : [NamingHttpClientManager] Destruction of the end

一、如果你也发生这个问题,请看看你的registry.conf   config有没有配,在最下面。。。。。。。

二、项目中的seata.registry.nacos配置没有配置namespace

 

 源码:

 我的入参是:

"app" -> "unknown"
"healthyOnly" -> "false"
"namespaceId" -> "public"
"clientIP" -> "ip.ip.ip"
"serviceName" -> "SEATA_GROUP@@serverAddr"
"udpPort" -> "58796"
"accessToken" -> "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJuYWNvcyIsImV4cCI6MTYzNTg3NDE1MH0.OzlhcgRwfIwmbXLPZjYoxog988utcJ_7TVOwUAuxLM0"
"clusters" -> "default"

namespace 一直是public.....所以想到了是参数问题。我的seata版本是1.4.2 

分析源码请看这篇文章---版本有些老,但是可以看看思路,最后找到入参即可看到问题原因。

SpringCloud整合Seata启动报no available server to connect源码分析_从小吃外卖的博客-CSDN博客

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值