-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
使用NameingServer作为注册中心,seata-sevre启动报错:vGroupMappingManager is NOT init #7015
Labels
type: bug
Category issues or prs related to bug.
Comments
store.mode是什么? |
@funky-eyes 你好 db 模式和 file 模式我都试过 都不可以,报错的信息都是: db我使用 server:
port: 7091
spring:
application:
name: seata-server
logging:
config: classpath:logback-spring.xml
file:
path: /data/java/logs
console:
user:
username: seata
password: seata
seata:
config:
type: file
registry:
type: seata
seata:
server-addr: 127.0.0.1:8081
cluster: default
namespace: public
heartbeat-period: 5000
store:
mode: db
db:
datasource: druid
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
url: aaa
user: aaa
password: aaa
min-conn: 10
max-conn: 100
global-table: global_table
branch-table: branch_table
lock-table: lock_table
distributed-lock-table: distributed_lock
vgroup-table: vgroup_table
query-limit: 1000
max-wait: 5000
metrics:
enabled: false
registry-type: compact
exporter-list: prometheus
exporter-prometheus-port: 9898
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
csrf-ignore-urls: /metadata/v1/**
ignore:
urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login,/version.json,/health,/error
file模式的配置我在 github 下载 2.2.0 的源码后直接从 example.yml 中复制以下的配置启动 server依然报错 server:
port: 7091
spring:
application:
name: seata-server
logging:
config: classpath:logback-spring.xml
file:
path: ${log.home:${user.home}/logs/seata}
extend:
logstash-appender:
destination: 127.0.0.1:4560
kafka-appender:
bootstrap-servers: 127.0.0.1:9092
topic: logback_to_logstash
console:
user:
username: seata
password: seata
seata:
config:
type: file
registry:
type: seata
seata:
server-addr: 127.0.0.1:8081
cluster: default
namespace: public
heartbeat-period: 5000
store:
mode: file
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
csrf-ignore-urls: /metadata/v1/**
ignore:
urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login,/version.json,/health,/error,/vgroup/v1/**
|
这个bug存在,再namingserver合并后,被其他的pr影响了启动顺序,目前正在排查原因中(虽然修复的方法也比较简单) |
@funky-eyes 想请教一下需要改下哪里? 不想引入其他的注册中心,如果修改起来简单的话,我想本地打个镜像先用着。 |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ⅰ. Issue Description
使用NameingServer作为注册中心,seata-sevre启动报错:
vGroupMappingManager is NOT init
Ⅱ. Describe what happened
Ⅲ. Describe what you expected to happen
seata-server可以正常启动
Ⅳ. How to reproduce it (as minimally and precisely as possible)
apache/seata-server:2.2.0
镜像 (直接跑 github上的 2.2.0的源码都有这个问题)application.example.yml
中的配置Minimal yet complete reproducer code (or URL to code):
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
apache/seata-server:2.2.0
The text was updated successfully, but these errors were encountered: