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

seata在eureka没有设置密码的时候是正常的,客户端是可以找到seata服务的,但是Eureka设置了密码之后,seata可以注册到seata,但是客户端找不到seata的服务 #2694

Closed panbocheng closed 4 years ago

panbocheng commented 4 years ago

Ⅰ. Issue Description seata1.2.0 配置eureka,eureka没有设置密码的时候,客户端可以发现seata服务,当euraka设置密码的时候,seata可以注册到eureka,但是客户端发现不了seata服务 项目的架构:springcloud-eureka-feign-mybatis-seata

Ⅱ. Describe what happened If there is an exception, please attach the exception trace: seata服务端registry.conf配置: eureka { serviceUrl = "http://card:card@card-eureka:8761/eureka/" application = "seata-server" weight = "1" }

客户端配置: registry.conf配置 service {

transaction service group mapping

vgroupMapping.fsp_tx_group = "seata-server"

only support when registry.type=file, please don't set multiple addresses

degrade, current not support

enableDegrade = false

disable seata

disableGlobalTransaction = false } yml配置: spring: application: name: article-server cloud: alibaba: seata: tx-service-group: fsp_tx_group

Just paste your stack trace here! Ⅲ. Describe what you expected to happen 客户端主要错误信息: com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server no available service 'seata-server' found, please make sure registry config correct

panbocheng commented 4 years ago

自己的失误 有一个地方配错了