SCIM: "Get Containers" in Swagger gets stuck in loading

SCIM: "Get Containers" in Swagger gets stuck in loading

99
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:55 PM


Symptom


When trying to get all containers using Swagger, the execution gets stuck in "LOADING".

Environment


10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Vault Server Idira SCIM Server 1.3.0 and above

Cause


The cache rebuild is failing for "Containers" endpoint due to the unoptimized configuration.

In the Scheduler log, the cache rebuild for Containers has started:
INFO [12/16/2022 11:50:40] com.cyberark.scimserver.scheduler.RebuildCacheScheduler:autoRefreshEndpoint:182- Refreshing Endpoint Containers

In the Server log, the corresponding PACLI command gets stuck:
DEBUG|22/12/16 12:02:39.358|PACLI|execute|529|dw-35 - GET /CyberArk/scim/v2/Containers?startIndex=1&count=50|*** Destroying process for statement : FINDFILES SAFE="abcdef" FOLDER="Root" INCLUDESUBFOLDERS=YES DELETEDOPTION=WITHOUT_DELETED INCLUDEFILECATEGORIES=YES FILECATEGORYVALUESSEPARATOR="^" FILECATEGORIESSEPARATOR="~" OUTPUT(OEM,ENCLOSE,SAFE,FOLDER,NAME,FILEID,FILECATEGORIES)

And as a result, the cache rebuild never gets into a "Finished" state. An example of the expected entry in Scheduler log for successful Container cache rebuild (which never gets written in this case):
INFO [12/16/2022 11:59:36] com.cyberark.scimserver.scheduler.RebuildCacheScheduler:autoRefreshEndpoint:194- Finished Endpoint Containers [0 secs, totalResults=7]


Resolution


Remove the cache and introduce 3 new configurational parameters. Complete steps are as follow:

1). Stop SCIM server.
2). Check Task Manager to make sure that all Java and PACLI processes are terminated. If not, kill the process manually.
3). Add the following 3 lines:
executionThreadPoolSize: 14
internalRefreshPageSize: 1000
batchesPerInitPACLI: 350

, above this line in GlobalConfig.yml file (which can be found in "SCIM Config" safe in the Vault):
autoRefreshCache: true

, so that the file post edit looks like the following:
executionThreadPoolSize: 14
internalRefreshPageSize: 1000
batchesPerInitPACLI: 350
autoRefreshCache: true

4). Remove all files under \CyberArk-SCIM\cache folder.
5). Start SCIM server.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000vzECAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail