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博客