Error while creating Apigee Org:Error occurred : Subject not available in Exchange

amit12pce
Participant II

Hi Team,

I am getting below error while setting up apigee ORG using

(apigee-service apigee-provision setup-org)

Apigee version :4.19.06

Logs from ms.

2020-05-25 17:04:36,698 org:amitorg env: target:/v1/o/amitorg/userroles/businessuser/permissions contextId: action:CREATE qtp748006558-52 INFO SERVICES.SECURITY - RolesManager.validateForDefaultRoles() : Performing ADD_PERMISSIONS operation for the role businessuser in the org amitorg. 2020-05-25 17:04:36,699 org:amitorg env: target:/v1/o/amitorg/userroles/businessuser/permissions contextId: action:CREATE qtp748006558-52 INFO SERVICES.SECURITY - RolesManager.skipPermissionWriteOnLdap() : Doing LDAP operation ADD_PERMISSIONS for the role businessuser in the org amitorg. 2020-05-25 17:04:36,699 org:amitorg env: target:/v1/o/amitorg/userroles/businessuser/permissions contextId: action:CREATE qtp748006558-52 ERROR REST - CustomJAXRSInvoker.performInvocation()

: CustomJAXRSInvoker.performInvocation : Method com.apigee.security.usermanagement.RolesManager.addPermissionsForRole threw an exception. 2020-05-25 17:04:36,699 org:amitorg env: target:/v1/o/amitorg/userroles/businessuser/permissions contextId: action:CREATE qtp748006558-52 ERROR REST - ExceptionMapper.toResponse() : Error occurred : Subject not available in Exchange

com.apigee.security.usermanagement.RolesManager.validationCheckForPermissionAdditionOrDeletion(RolesManager.java:720) com.apigee.security.usermanagement.RolesManager.validationCheckForMultiplePermissionAddition(RolesManager.java:699)

com.apigee.security.usermanagement.RolesManager.addPermissionsForRole(RolesManager.java:437) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2020-05-25 17:04:36,700 org:amitorg env: target:/v1/o/amitorg/userroles/businessuser/permissions contextId: action:CREATE qtp748006558-52 ERROR REST - ExceptionMapper.toResponse() : Returning error response : ErrorResponse{errorCode = security.SubjectNotAvailableInExchange, errorMessage = Subject not available in Exchange}

2020-05-25 17:08:22,292 org: env: target: contextId: action: Apigee-Timer-3 INFO METRICSLOGGING - MetricsLogger.log() : Release id 190301_01 RPM apigee-rpm-1.0.0.20068.df9991fc1.2004282017-190301_01 CACHE.total [memUsed=100 elementsInMem=1 averageElementSize=100 queue_remaining=500] THREADPOOL.Main.statistics [activeThreadCount=1 completedTaskCount=66 corePoolSize=32 largestPoolSize=32 averageQueueWaitTimeNano=103858 currentPoolSize=32 maxAllowedPoolSize=256] THREADPOOL.Timer.statistics [corePoolSize=10 currentPoolSize=10 activeThreadCount=1 completedTaskCount=21944 maxAllowedPoolSize=2147483647 largestPoolSize=10] ZOOKEEPER.configuration [connectInfo=State:CONNECTED Timeout:40000 sessionid:0x1723cc83b530003 local:/10.81.68.79:50248 remoteserver:10.81.68.79/10.81.68.79:2181 lastZxid:366 xid:80068 sent:96626 recv:96628 queuedpkts:0 pendingresp:0 queuedevents:0] ZOOKEEPER.counters [operations=80009 successfulOperations=80000] ZOOKEEPER.operations [exists=67088 setData=43 create=7 getData=8636 getChildren=4235] ZOOKEEPER.pathWatcher [create=25 add=2] ZOOKEEPER.statistics [operations=80000]

=====================

[root@VTELICSW101 edge-management-server]# curl -u XXXXXXXXXX$ http://XXXXXXXX/v1/users/amit1.gopi@xyz.com/userroles

{ "role" : [ { "name" : "orgadmin", "organization" : "amitorg" } ]

0 1 331
1 REPLY 1

https://docs.apigee.com/private-cloud/v4.19.06/creating-organization-environment-and-virtual-host?hl...

May be check silent file for user details..(may be user is not authorized to create org just a guess - is the user org admin?? ).See some trace related to business user.