ERROR 57048 --- [ main] i.s.c.r.netty.NettyClientChannelManager : no available service endpoint found in cluster 'DEFAULT_GROUP', please make sure registry config correct and keep your seata-server is running
ERROR 57048 --- [ main] i.s.c.r.netty.NettyClientChannelManager : no available service endpoint found in cluster 'DEFAULT_GROUP', please make sure registry config correct and keep your seata-server is running
根本原因:seata-server 与 client 配置不同导致;
很多博客提到了要检查Server端与Client端的配置问题,但不是很明确:
官方文档:
https://github.com/seata/seata/blob/develop/script/client/spring/application.yml
官方文档也没有明确指出如何配置,仅仅是写了一个seata-server。 但是下面有一个client-application,可以隐约猜测出,此处的application 与 client-application 应该是一个对应server端一个对应Client端。
具体原因:seata-server启动时,注意配置文件中的application.yml中,注册到Nacos时所使用application名称,应该与client端application.yml中使用的application名称保持一致,如下图所示:
seata-server中的application.yml配置文件:
client 服务application.yml中的配置:
server端与client端,注册到nacos中的 application 名称要保持一致,再次启动会解决问题。
其它参考:
seata 1.6.1 no available service found in cluster 'default', please make sure registry config correct and keep your seata server running · Issue #5248 · seata/seata · GitHub