'az login' hangs in linux server: msal_extensions.cache_lock: Process 505865 failed to create lock file
- 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.

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"

**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
Assessment
This issue has not been assessed yet.