Azure / Azure/azure-cli

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

Open
#26,109 14 comments 0 reactions 1 assignee Assigned to @jiasli View on GitHub
Account act-identity-squad Auto-Assign Azure CLI Team customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**

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

![image](https://user-images.githubusercontent.com/52439238/231143750-cec08249-f2a4-4080-be6f-73f92265e2ed.png)

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](https://user-images.githubusercontent.com/52439238/231143988-f9ce963a-3887-47a9-af19-01301e9f7e23.png)

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.