wso2 / product-is

Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
748 stars 728 forks source link

ERROR {org.wso2.carbon.user.core.internal.Activator} - Cannot start User Manager Core bundle org.wso2.carbon.user.core.UserStoreException: Cannot initialize the realm. #13331

Closed ghost closed 1 week ago

ghost commented 2 years ago

Describe the issue: New Install:

How to reproduce: Change two sections of deployment.toml as per: https://is.docs.wso2.com/en/latest/setup/changing-to-postgresql/

First Change: [database.identity_db] (docs say url to localhost - but it is a JDBC connection?) type = "postgre" url = "jdbc:postgresql://127.0.0.1:5432/wso2_identity_db" name = "wso2_identity_db" (shouldn't need but doesn't make a difference) username = "xxxx" password = "xxxx" port = "5432" (shouldn't need but doesn't make a difference)

Second Change [database.shared_db] (docs say url to localhost - but it is a JDBC connection?) type = "postgre" url = "jdbc:postgresql://127.0.0.1:5432/wso2_shared_db" name = "wso2_identity_db" (shouldn't need but doesn't make a difference) username = "xxxx" password = "xxxx" port = "5432" (shouldn't need but doesn't make a difference)

Note: Changed [user_store] to type = "database_unique_id" - makes no difference.

Expected behavior: Browse to https://localhost:9443 and watch it roar!

Environment information (Please complete the following information; remove any unnecessary fields) :

I understand that it is an alpha release...

ghost commented 2 years ago

Note: I get the exact same behavior with: --branch=v5.11.0 and Ubuntu 20.04 LTS :(

nilasini commented 2 years ago

@icjohnson Didn't you face any issues during the server startup? Could you please share the entire stack trace?

matheusmatos221 commented 2 years ago

I'm having the same issue using APIM...

EDIT: [I SOLVED MY ISSUE]

matheusmatos221 commented 2 years ago

I'm having the same issue using APIM...

I solve my problem on API Manager 4.1.0 on Docker using Ubuntu 20.04 LTS image. Probably your problem solution will be similar.

You need check your JDBC url, user and password and host. Check if you can connect on Database using DBeaver or PGadmin.

isharak commented 1 week ago

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!