Skip to content

CrossPlatformLockError: Not able to acquire lock. Exceeded amount of retries set in options #7148

Open
@maorleger

Description

@maorleger

Core Library

MSAL Node (@azure/msal-node)

Wrapper Library

MSAL Node Extensions (@azure/msal-node-extensions)

Public or Confidential Client?

Public

Documentation Location

https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/extensions/docs/faq.md

Description

Related to Azure/azure-sdk-for-js#29920

@pcdeadeasy has reached out to us with the above error. It seems like, from looking at the code, that this can happen if the .lockfile file is not properly cleaned up.

Is there documentation about how a user can get themselves into a good state? If not, we think it should be documented or ideally self-healed (maybe by checking if the pid who owns the file is still running?)

Otherwise I can see a scenario where terminating processes at the wrong time may leave the system in a bad state.

Could we either document how to correct this issue as a user or self-heal within the code? We (@azure/identity-cache-persistence) can include that in our error message or troubleshooting guide.

@pcdeadeasy feel free to add any asks you have of the MSAL team.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Awaiting response from the MSAL.js teamdocumentationRelated to documentation.msal-nodeRelated to msal-node packagemsal-node-extensionsRelated to msal-node-extensions packagepublic-clientIssues regarding PublicClientApplicationsquestionCustomer is asking for a clarification, use case or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions