New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nacos1.2 开启登录, docker部署seata-server:latest 使用nacos作为注册中心, 启动失败 #2586
Comments
#2367 |
Maybe your namespace configuration is wrong, you should configure id. |
nacos 设置的该空间名称即为 "server" 使用idea本地连接可以正常注册,获取配置文件. |
namespace 对应的是id,不是名称,比如我有个dev对应的id是:18792dfd-28e0-4757-b03f-7e394f490d6e |
好的 麻烦了. |
是bug,请交给我来处理 @zjinlei |
最新解决方案 serverAddr使用ip:端口,而不要仅仅ip就可以了. |
click on the nacos console namespace to view namespace id. |
好的 谢谢 |
启动命令
docker run --name seata-server -d --restart always -e SEATA_CONFIG_NAME=file:/root/seata-config/registry -p 8091:8091 -v $PWD/config:/root/seata-config seataio/seata-server
配置文件
file.conf 使用db 配置数据库
registry.conf 配置nacos作为注册中心, 配置中心(相关配置已导入 config.txt)
registry {
type = "nacos"
nacos {
application = "seata-server"
serverAddr = "127.0.0.1"
namespace = "server"
cluster = "default"
username = "nacos"
password = "nacos"
}
}
config {
type = "nacos"
nacos {
serverAddr = "127.0.0.1"
namespace = "server"
group = "SEATA_GROUP"
username = "nacos"
password = "nacos"
}
}
启动错误信息:
Caused by: com.alibaba.nacos.api.exception.NacosException: failed to req API:/api//nacos/v1/ns/instance after all servers([127.0.0.1]) tried:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
The text was updated successfully, but these errors were encountered: