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
743 stars 723 forks source link

Unable to startup the IS 7 With Oracle Rac DB #20493

Closed asekawa closed 3 weeks ago

asekawa commented 3 months ago

Describe the issue:

Unable to startup the IS 7 With Oracle Rac DB , due to getting following error traces

[2024-06-03 16:34:28,216] []  INFO {org.opensaml.core.config.InitializationService} - Initializing OpenSAML using the Java Services API
[2024-06-03 16:34:52,144] [] ERROR {org.wso2.identity.apps.common.internal.AppsCommonServiceComponent} - Failed to activate identity apps common service component. org.wso2.carbon.identity.application.common.IdentityApplicationManagementException: Error occured while assigning administrator role to the admin user.
    at org.wso2.identity.apps.common.util.AppPortalUtils.initiatePortals(AppPortalUtils.java:343)
    at org.wso2.identity.apps.common.util.AppPortalUtils.initiatePortals(AppPortalUtils.java:267)

How to reproduce:

A guide to setup a oracle rac db and reproducing can be assist

Reference https://is.docs.wso2.com/en/latest/deploy/configure/databases/carbon-database/change-to-oracle-rac/

Expected behavior:

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


Optional Fields

Related issues:

Suggested labels:

asekawa commented 3 months ago

The above exception could be throwing from this function here

https://github.com/wso2/carbon-identity-framework/blob/0f850f34dcff73ebf76229a751d4ad6447415b85/components/role-mgt/org.wso2.carbon.identity.role.v2.mgt.core/src/main/java/org/wso2/carbon/identity/role/v2/mgt/core/dao/RoleDAOImpl.java#L210

bhagyasakalanka commented 3 months ago

Maybe Database tables or columns are missing in the oracle instance

asekawa commented 3 months ago

Maybe Database tables or columns are missing in the oracle instance

Executed DB scripts and using sqldeveloper and all the scripts were executed successfully without any issues.

Screenshot 2024-06-04 at 13 58 55
Xaldelare commented 3 months ago

It s same problem on: Product version: IS 7 rc7, Database: postgres. OS: linux rocky 8

@asekawa your link reference target version 6 not 7.

but it work fine with H2.

Xaldelare commented 3 months ago

for me i tryed to put script in specifique schema. if i put all in public it work well.

asekawa commented 3 months ago

It s same problem on: Product version: IS 7 rc7, Database: postgres. OS: linux rocky 8

@asekawa your link reference target version 6 not 7.

but it work fine with H2.

Updated the reference version

shanggeeth commented 3 weeks ago

Closing this since the fix is delivered with https://github.com/wso2/carbon-identity-framework/pull/5796