Error: The lock file (<File_Path>) couldn't be opened, Error code: 2

Error: The lock file (<File_Path>) couldn't be opened, Error code: 2

123
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 15:54 PM


Symptom


In Unix environments, the following error can appear:
 
Error: The lock file (<File_Path>) couldn't be opened, Error code: 2
 
 


Environment


10.5;10.10;11.2;11.4 Privileged Access Manager (PAM, self-hosted) Credential Provider

Cause


This error comes from the Credential Provider side. It appears when the file used for the Credential Provider to authenticate the application cannot be used.

This can happen for many reasons. We will describe some of them in this article.


Resolution


A possible reasons for the failure can be:

  • The CP doesn't have enough permission to read the file. Please make sure the provider has access to where the file is located. 

  • The file was deleted before CP tries to read it. This can be caused by:

    1. The SDK didn't create and sent a request to the provider - This is not a valid functionality. Please open a case to our support team.

    2. The SDK sent the request to the provider but deleted the file before getting the response - The error received on the AIM file could indicate there was a connection timeout between the SDK and the provider.
      The password SDK has by default 30 sec timeout when requesting a password from the provider.
      If the provider queue is overloaded with requests (for example, there is a job doing high amount of requests), and some of the request didn't get the response in 30 sec, there will be a timeout and the AIM file will be deleted by the SDK.

      When the provider will get to the request, he won’t be able to use the file.
      Possible solutions:

      1. Try to increase the timeout. It's configurable on the SDK side by setting the 'ConnectionParms.Timeout' to a higher value, for example 60 sec.
        For more information about using the timeout parameter please see
        this link to our official documentation

      2. Try to increase the number of threads the CP can handle with using 'MaxConcurrentRequests'. This may harm performance as it depends on the machine capabilities.
        For more information about using the threads parameter please see
        this link to our official documentation.
         

  • This issue can also occur when applications like Apache try to use a different temp folder as described within this KB article. Follow the instructions on the linked KB article for alternative troubleshooting steps vs. what is described in this article.

If none of the solutions above worked for you, please open a case to our support team for further assistance.



Actions
  • Print
  • Copy Link

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