简体   繁体   English

在完全分布式 WSO2 APIM 设置中启动 WSO2 ISKM 5.10.0 服务器时出错

[英]Error while starting WSO2 ISKM 5.10.0 server in fully distributed WSO2 APIM setup

I am configuring WSO2 fully distributed platform and I have configured two WSO2 ISKM servers using the below database configurations.我正在配置 WSO2 完全分布式平台,并且使用以下数据库配置配置了两个 WSO2 ISKM 服务器。

[user_store]
type = "database_unique_id"

[database.apim_db]
type = "mysql"
url = "jdbc:mysql://localhost:3306/apim_db"
username = "apimadmin"
password = "apimadmin"

[database.shared_db]
type = "mysql"
url = "jdbc:mysql://localhost:3306/shared_db"
username = "regadmin"
password = "regadmin"

But this configuration returns the following error in the second server.但是此配置在第二个服务器中返回以下错误。

Caused by: org.wso2.carbon.user.core.UserStoreException: Using sql : INSERT INTO UM_SYSTEM_USER_ROLE (UM_USER_NAME, UM_ROLE_ID, UM_TENANT_ID) VALUES (?,(SELECT UM_ID FROM UM_SYSTEM_ROLE WHERE UM_ROLE_NAME=? AND UM_TENANT_ID=?), ?) Duplicate entry 'wso2.anonymous.user-1--1234' for key 'UM_USER_NAME'

Then I changed the DB configuration as below,然后我改变了数据库配置如下,

[user_store]
type = "database"

Here both servers started, but cannot log into the management console with admin, admin credentials.此处两台服务器均已启动,但无法使用管理员、管理员凭据登录管理控制台。 It shows as incorrect username password.它显示为不正确的用户名密码。 How to fix this issue?如何解决这个问题?

This worked with the DB configuration这适用于数据库配置

[user_store]
type = "database_unique_id"

after clearing the data in UM_SYSTEM_USER_ROLE table and restart the servers.清除UM_SYSTEM_USER_ROLE表中的数据并重新启动服务器后。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM