CPM - CASGN002E: No Free Socket in the Sockets Pool
Symptom
The CPM Password Manager Service either terminates unexpectedly or, when running, causes password verification or change requests to become stuck and never complete.
Environment
Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM) Central Policy Manager (CPM) Other
Cause
The CPM is exhausting vault resources, particularly when trying to retrieve and process a large number of safes that match the wildcard ".*". This wildcard is typically used to match all safes, and when this is applied, the CPM service attempts to find and process every safe in the vault.
This behavior can be observed in the pm.log, where you will see entries such as:
CACPM833I: Found 991 Safes that match the AllowedSafes parameter value: ".*"
CACPM831I: Filtering Safes according to the AllowedSafes parameter value: ".*"
CACPM320E Failed to perform CPM Tasks search. Reason: CASGN002E No free socket in the Sockets Pool.
CACPM051E Error getting folder Root\Policies from Safe PasswordManager_Info (error: CASGN002E No free socket in the Sockets Pool.).
These log entries indicate that the CPM is matching and processing a significant number of safes, potentially overwhelming the system, and contributing to service instability or requests getting stuck.
Resolution
To resolve the issue, specify a more targeted AllowedSafes regex value to match only the relevant safes. You can also list multiple safes by separating them with a |.
After updating the regex, verify the CPM functionality.