Skip to content

'az login' hangs in linux server: msal_extensions.cache_lock: Process 505865 failed to create lock file #26109

@violascarlett

Description

@violascarlett

Related command

Describe the bug
'az login' command hangs after user authentication . This happens executing from user accounts except root user.

image

azure cli 2.38.0 is installed. I tried reinstalling the same version, but didn't help.

Not even working after clearing /home/(username)/.azure directory, where token information and cache saved.

I tried 'az login --debug' command. It is stuck after a message "msal_extensions.cache_lock: Process 505865 failed to create lock file"
image

Expected behavior
complete the authentication and return token information and login details.

Environment summary
CLI version (az --version : 2.38.0) / OS : RHEL 7 / Shell Type : bash

Additional context
The terminal remains stuck after authentication. But if I quit the session by clicking ctrl+z after some couple of minutes and try $az account show, it displays the token information.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions