GitHub user beanww created a discussion: seata2.5的namingserver启动后,控制台查询报404
2.5版本
seata-server使用nacos做配置中心,为了使用控制台,同时增加了naming-server的配置中心配置,文档说支持多中心,但是都启动后,控制什么也看不到,查询事务、锁都返回404错误码,我在分布式事务执行中加了断点,可以看到store-redis里有数据,但是控制太还是404什么也没有,相关配置如下:
naming-server:
`server:
port: 8081
spring:
application:
name: seata-namingserver
logging:
config: classpath:logback-spring.xml
file:
path: ${log.home:${user.home}/logs/seata}
heartbeat:
threshold: 90000
period: 60000
seata:
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
csrf-ignore-urls: /naming/v1/**,/api/v1/naming/**
ignore:
urls:
/,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login,/version.json,/naming/v1/health,/error
console:
user:
username: seata
password: seata`
seata-server的配置:
`seata:
config:
# support: nacos, consul, apollo, zk, etcd3
type: nacos
nacos:
server-addr: 127.0.0.1:8848
namespace:
group: SEATA_GROUP
context-path:
##1.The following configuration is for the open source version of Nacos
username:
password:
##2.The following configuration is for the MSE Nacos on aliyun
#access-key:
#secret-key:
##3.The following configuration is used to deploy on Aliyun ECS or ACK
without authentication
#ram-role-name:
data-id: seataServer.properties
registry:
# support: nacos, eureka, redis, zk, consul, etcd3, sofa
type: nacos
nacos:
application: seata-server
server-addr: 127.0.0.1:8848
group: SEATA_GROUP
namespace:
cluster: default
context-path:
##1.The following configuration is for the open source version of Nacos
username:
password:
##2.The following configuration is for the MSE Nacos on aliyun
#access-key:
#secret-key:
##3.The following configuration is used to deploy on Aliyun ECS or ACK
without authentication
#ram-role-name:
seata:
server-addr: 127.0.0.1:8081
##第一步配置的namingserver的ip+端口,若有多个namingserver节点则用逗号分割
cluster: default ##集群名称
namespace: public ##命名空间
heartbeat-period: 5000 ##心跳时间
username: seata
password: seata `
GitHub link: https://github.com/apache/incubator-seata/discussions/7703
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]