AIM - PDKTC004E Connect command failed (Rc=[146]) - PDKTU001E Failed to send data (Reason=[send failed], Rc=[111]

AIM - PDKTC004E Connect command failed (Rc=[146]) - PDKTU001E Failed to send data (Reason=[send failed], Rc=[111]

109
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 13:01 PM


Symptom


The application fails to retrieve the password and the following error is returned when the GetPassword SDK command is issued:

"PDKTC004E Connect command failed (Rc=[146])"
When checking the provider using /etc/init.d/aimprv status it reports to be running.
When trying to stop the provider service the following messages are returned:
MACHINE_NAME# ./aimprv stop
Stopping Cyber-Ark Application Password Provider.......................
Cyber-Ark Application Password Provider failed to stop.
Cyber-Ark Application Password Provider is already running.

 

Another symptom could be the following error returned from the application trying to access a password: "PDKTU001E Failed to send data (Reason=[send failed], Rc=[111]".

In the debug log, it shows “APPAP075I Tcp server is down".
 



Environment


10.5;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) Credential Provider CP

Cause


This problem usually happens in high load scenarios when not enough files are allocated for the Provider process.

Resolution


Change the limit for the number of files allocated to the provider: type the following line in the /etc/init.d/aimprv startup script before starting the provider daemon "ulimit -n 4096" ("ulimit -a" again will show you that max open files has been modified).

Now, from the same session (this must be done from the same session as the variables are kept only for the current session), start the Provider.

 

The default ulimit value is different between platforms. You can see the ulimit value by running the "ulimit -a" command. One of the lines will show the maximum number of open files allowed per process. It should look of something like this: “open files 256”
 

The following guideline is recommended for setting the Ulimit value:
Each application requires to open 8 files. each application = each time the application activate the Cyber-Ark PasswordSDK and get a password.

for example 4096 is a recommended value for a server that runs 512 applications.



Additional Information


Details

SYMPTOM:
The application fails to retrieve the password and the following error is returned when the GetPassword SDK command is issued:

"PDKTC004E Connect command failed (Rc=[146])"
When checking the provider using /etc/init.d/aimprv status it reports to be running.
When trying to stop the provider service the following messages are returned:
MACHINE_NAME# ./aimprv stop
Stopping Cyber-Ark Application Password Provider.......................
Cyber-Ark Application Password Provider failed to stop.
Cyber-Ark Application Password Provider is already running.

 

Another symptom could be the following error returned from the application trying to access a password: "PDKTU001E Failed to send data (Reason=[send failed], Rc=[111]".

In the debug log, it shows “APPAP075I Tcp server is down".


PROBLEM:
This problem usually happens in high load scenarios when not enough files are allocated for the Provider process.

SOLUTION:
Change the limit for the number of files allocated to the provider: type the following line in the /etc/init.d/aimprv startup script before starting the provider daemon "ulimit -n 4096" ("ulimit -a" again will show you that max open files has been modified).

Now, from the same session (this must be done from the same session as the variables are kept only for the current session), start the Provider.

 

The default ulimit value is different between platforms. You can see the ulimit value by running the "ulimit -a" command. One of the lines will show the maximum number of open files allowed per process. It should look of something like this: “open files 256”
 

The following guideline is recommended for setting the Ulimit value:

Each application requires to open 8 files. each application = each time the application activate the Cyber-Ark PasswordSDK and get a password.

for example 4096 is a recommended value for a server that runs 512 applications.




Actions
  • Print
  • Copy Link

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