apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.23k stars 8.76k forks source link

springcloud 集成 seata1.3 控制台提示 注册错误 #2939

Closed averyzhujinbo closed 4 years ago

averyzhujinbo commented 4 years ago

Ⅰ. Issue Description

springcloud 版本: Hoxton.SR3 springboot 版本: 2.2.6 seata版本:1.3

springboot yml 客户端配置文件: seata: enabled: true application-id: ${spring.application.name} tx-service-group: my_test_tx_group enable-auto-data-source-proxy: true config: type: nacos nacos: namespace: serverAddr: 192.168.1.231:8848 group: SEATA_GROUP userName: "" password: "" registry: type: nacos nacos: application: seata-server server-addr: 192.168.1.231:8848 group: SEATA_GROUP namespace: userName: "" password: "" service: vgroup-mapping: my_test_tx_group: default enable-degrade: false disable-global-transaction: false

nacos 服务器配置(config.txt 裁剪了源码中没有用到的配置) 通过官网命令导入到nacos 服务器了:

service.vgroupMapping.my_test_tx_group=default store.mode=db store.db.datasource=druid store.db.dbType=mysql store.db.driverClassName=com.mysql.cj.jdbc.Driver store.db.url=jdbc:mysql://192.168.1.231:3307/seata?useUnicode=true store.db.user=root store.db.password=123456 store.db.minConn=5 store.db.maxConn=30 store.db.globalTable=global_table store.db.branchTable=branch_table store.db.queryLimit=100 store.db.lockTable=lock_table store.db.maxWait=5000

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

Just paste your stack trace here!

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. xxx
  2. xxx
  3. xxx

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

averyzhujinbo commented 4 years ago

异常信息:2020-07-28 17:07:11.365 ERROR 13949 --- [imeoutChecker_2] i.s.c.r.netty.NettyClientChannelManager : no available service 'default' found, please make sure registry config correct