seata 调试springcloud-nacos-seata demo的时候,启动服务报错i.s.c.r.netty.NettyClientChannelManager : no available service 'null' found, please make sure registry config correct,请问这个是什么问题,nacos注册中心serverAddr 、storage-service、order-service这三个服务都是有的
@huc003 Check the business side configuration item vgroupMapping. * ,it is recommended to read the Seata website https://seata.io/zh-cn/docs/ops/deploy-guide-beginner.htmldocument.
seata-server nacos-config.txt
~~
service.vgroup_mapping.storage-service-group=default
service.vgroup_mapping.order-service-group=default
~~
storage-service
application.properties
~~
spring.cloud.alibaba.seata.tx-service-group=storage-service-group
~~
order-service
application.properties
~~
spring.cloud.alibaba.seata.tx-service-group=order-service-group
~~
registry.conf
~~
registry {
type = "nacos"
nacos {
serverAddr = "localhost"
namespace = "public"
cluster = "default"
}
}
config {
type = "nacos"
nacos {
serverAddr = "localhost"
namespace = "public"
group = "SEATA_GROUP"
}
}
Starting service error
order-service、storage-service
no available service 'null' found, please make sure registry config correct
namespace = "public"
namespace = "public" 什么意思?去掉?
没有人遇到这个问题?
application.properties中配置
spring.cloud.alibaba.seata.tx-service-group=${spring.application.name}-fescar-service-group
file.conf中配置
vgroupMapping.${spring.application.name}-fescar-service-group = "default"
同时需要启动服务端,服务端如果使用docker启动需要网络共享 --network=host,同时需要更改里面的注册中心地址,和业务配置的注册中心保持一致,同时在业务的file.conf中加入seata服务端地址:
default.grouplist = "192.168.xx.xx:8091"
没有人遇到这个问题?
application.properties中配置
spring.cloud.alibaba.seata.tx-service-group=${spring.application.name}-fescar-service-group
file.conf中配置
vgroupMapping.${spring.application.name}-fescar-service-group = "default"
同时需要启动服务端,服务端如果使用docker启动需要网络共享 --network=host,同时需要更改里面的注册中心地址,和业务配置的注册中心保持一致,同时在业务的file.conf中加入seata服务端地址:
default.grouplist = "192.168.xx.xx:8091"
这个问题是怎么解决?能否提供下方案
这个问题是怎么解决?能否提供下方案
测试的时候经常遇到这个问题, 配置完全正确,临时解决方案:1.重启seata 2.重新发布service.vgroupMapping这个配置
怎么解决的,好几天了,哪个好心人提供下方法
no available service 'null' found, please make sure registry config correct
seata 1.20 同样这个问题
seata 调试springcloud-nacos-seata demo的时候,启动服务报错i.s.c.r.netty.NettyClientChannelManager : no available service 'null' found, please make sure registry config correct,请问这个是什么问题,nacos注册中心serverAddr 、storage-service、order-service这三个服务都是有的
vgroup_mapping.fsp_tx_group = "default"
换成
vgroupMapping.fsp_tx_group = "default" 可能问题就解决了,不行的话,升级seata的版本
1,要确保 pom里的seata-stater的版本和 单独启动的seata-server 的版本要一致.1.4.x和1.3.0 不兼容
2,项目的配置文件里,seata.registry.nacos.group/application/cluster/namespace 要和 seata服务器的registry.conf配置文件里的nacos{}里的group/application/cluster/namespace 一致
看nacos上的注册信息,发现 seata-server这个服务的ip是172.xx.xx.1 , 而这个地址是docker的虚拟ip,别的机器上访问不到, 然后网上查询怎么设置seata绑定的ip, 就是seata-server.sh -h ip地址,然后绑定192.168的ip地址就可以了.因为172的ip地址 在别的机器上是ping不通的,172的地址是docker的虚拟地址,只能这个虚拟地址所在机器上才可以ping通.
Most helpful comment
application.properties中配置
spring.cloud.alibaba.seata.tx-service-group=${spring.application.name}-fescar-service-group
file.conf中配置
vgroupMapping.${spring.application.name}-fescar-service-group = "default"
同时需要启动服务端,服务端如果使用docker启动需要网络共享 --network=host,同时需要更改里面的注册中心地址,和业务配置的注册中心保持一致,同时在业务的file.conf中加入seata服务端地址:
default.grouplist = "192.168.xx.xx:8091"