Azure / Azure/azure-cli

az devops login "Not enough memory resources are available to process this command"

Open
#25,146 6 comments 0 reactions 0 assignees View on GitHub
act-platform-engineering-squad Auto-Assign customer-reported DevOps needs-team-attention Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Related command**
az devops login --organization https://dev.azure.com/my_test_org

**Describe the bug**
stacktrace:
C:\Users\user>az devops login --organization https://dev.azure.com/ --debug
cli.knack.cli: Command arguments: [‘devops’, ‘login’, ‘–organization’, ‘https://dev.azure.com/user1’, ‘–debug’]
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [, , ]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for ‘devops’: [‘azext_devops’]
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: These extensions are not installed and will be skipped: [‘azext_ai_examples’, ‘azext_next’]
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: azure-devops 0.072 60 191 C:\Users\user1.azure\cliextensions\azure-devops
cli.azure.cli.core: Total (1) 0.072 60 191
cli.azure.cli.core: Loaded 60 groups, 191 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : devops login
cli.azure.cli.core: Command table: devops login
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate []
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to ‘C:\Users\user1.azure\commands\2023-01-16.12-14-02.devops_login.33740.log’.
az_command_data_logger: command args: devops login --organization {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [.add_subscription_parameter at 0x046E8D18>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [.add_ids_arguments at 0x046E8DF0>, .add_cache_arguments at 0x046FC2F8>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [, , .parse_ids_arguments at 0x046FC2B0>, ]
az_command_data_logger: extension name: azure-devops
az_command_data_logger: extension version: 0.25.0
Token:
cli.azext_devops.dev.team.credentials: Creating connection with personal access token.
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
azext_devops.devops_sdk._file_cache: Loading cache file: C:\Users\user1.azure-devops\python-sdk\cache\options.json
azext_devops.devops_sdk._file_cache: attempting to read file C:\Users\user1.azure-devops\python-sdk\cache\options.json as utf-8-sig
azext_devops.devops_sdk.client: File cache hit for options on: https://dev.azure.com/user1
azext_devops.devops_sdk.client: Route template: _apis/{resource}
azext_devops.devops_sdk.client: Api version ‘5.0-preview.1’
azext_devops.devops_sdk.client: GET https://dev.azure.com/user1/_apis/ConnectionData
azext_devops.devops_sdk.client: Request content: None
msrest.universal_http: Configuring redirects: allow=True, max=30
msrest.universal_http: Configuring request: timeout=100, verify=True, cert=None
msrest.universal_http: Configuring proxies: ‘’
msrest.universal_http: Evaluate proxies against ENV settings: True
urllib3.connectionpool: Starting new HTTPS connection (1): dev.azure.com:443
urllib3.connectionpool: [https://dev.azure.com:443](https://dev.azure.com/) “GET /user/_apis/ConnectionData HTTP/1.1” 200 715
azext_devops.devops_sdk.client: Response content: b’{“authenticatedUser”:{“id”:“”,“descriptor”:“Microsoft.IdentityModel.Claims.ClaimsIdentity;\\user1@microsoft.com”,“subjectDescriptor”:“”,“providerDisplayName”:[Redacted]@[Redacted] “,“customDisplayName”:“user1”,“isActive”:true,“properties”:{“Account”:{”$type":“System.String”,“$value”:[Redacted]@[Redacted]“}},“resourceVersion”:2,“metaTypeId”:0},“authorizedUser”:{“id”:”“,“descriptor”:“Microsoft.IdentityModel.Claims.ClaimsIdentity;\\user1@microsoft.com”,“subjectDescriptor”:”“,“providerDisplayName”:[Redacted]@[Redacted]”,“customDisplayName”:“user1”,“isActive”:true,“properties”:{“Account”:{“$type”:“System.String”,“$value”:[Redacted]@[Redacted]“}},“resourceVersion”:2,“metaTypeId”:0},“instanceId”:“4e6fe87d-4a15-46a4-8263-f208d85a7fdc”,“deploymentId”:“ddeec5a2-6f54-9a01-6dc9-bb4c369b913a”,“deploymentType”:“hosted”,“locationServiceData”:{“serviceOwner”:”",“defaultAccessMappingMoniker”:“PublicAccessMapping”,“lastChangeId”:321515548,“lastChangeId64”:321515548}}’
keyring.backend: Loading KWallet
keyring.backend: Loading SecretService
keyring.backend: Loading Windows
keyring.backend: Loading chainer
keyring.backend: Loading macOS
cli.azext_devops.dev.common.credential_store: Keyring backend : keyring.backends.Windows.WinVaultKeyring (priority: 5)
cli.azext_devops.dev.common.credential_store: Setting credential: azdevops-cli:https://dev.azure.com/user
cli.azext_devops.dev.team.credentials: Unable to use secure credential store in this environment.
cli.azext_devops.dev.team.credentials: Please refer to alternate methods at https://aka.ms/azure-devops-cli-auth
cli.azext_devops.dev.team.credentials: using Environment variable
cli.azext_devops.dev.team.credentials: or use ‘az login’
cli.azext_devops.dev.common.exception_handler: handling generic error
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
File “C:\Users\user1.azure\cliextensions\azure-devops\win32ctypes\pywin32\pywintypes.py”, line 35, in pywin32error
yield
File “C:\Users\user1.azure\cliextensions\azure-devops\win32ctypes\pywin32\win32cred.py”, line 37, in CredWrite
_authentication._CredWrite(c_pcreds, 0)
File “C:\Users\user1.azure\cliextensions\azure-devops\win32ctypes\core\cffi_authentication.py”, line 152, in _CredWrite
return check_zero(
File “C:\Users\user1.azure\cliextensions\azure-devops\win32ctypes\core\cffi_util.py”, line 81, in call
self._raise_error(function_name)
File “C:\Users\user1.azure\cliextensions\azure-devops\win32ctypes\core\cffi_util.py”, line 92, in _raise_error
raise exception
OSError: [WinError 8] Not enough memory resources are available to process this command During handling of the above exception, another exception occurred: Traceback (most recent call last):
File “C:\Users\user1.azure\cliextensions\azure-devops\azext_devops\dev\common\credential_store.py”, line 35, in set_password
keyring.set_password(key, self._USERNAME, token)
File “C:\Users\user1.azure\cliextensions\azure-devops\keyring\core.py”, line 63, in set_password
_keyring_backend.set_password(service_name, username, password)
File “C:\Users\user1.azure\cliextensions\azure-devops\keyring\backends\Windows.py”, line 94, in set_password
self._set_password(service, username, text_type(password))
File “C:\Users\user1.azure\cliextensions\azure-devops\keyring\backends\Windows.py”, line 103, in _set_password
win32cred.CredWrite(credential, 0)
File “C:\Users\user1.azure\cliextensions\azure-devops\win32ctypes\pywin32\win32cred.py”, line 36, in CredWrite
with _pywin32error():
File “contextlib.py”, line 153, in exit
File “C:\Users\user1.azure\cliextensions\azure-devops\win32ctypes\pywin32\pywintypes.py”, line 37, in pywin32error
raise error(exception.winerror, exception.function, exception.strerror)
win32ctypes.pywin32.pywintypes.error: (8, ‘CredWrite’, ‘Not enough memory resources are available to process this command’) During handling of the above exception, another exception occurred: Traceback (most recent call last):
File “C:\Users\user1.azure\cliextensions\azure-devops\azext_devops\dev\team\credentials.py”, line 31, in credential_set
set_credential(organization=organization, token=token)
File “C:\Users\user1.azure\cliextensions\azure-devops\azext_devops\dev\common_credentials.py”, line 33, in set_credential
cred_store.set_password(key, token)
File “C:\Users\user1.azure\cliextensions\azure-devops\azext_devops\dev\common\credential_store.py”, line 51, in set_password
raise CLIError(ex)
knack.util.CLIError: (8, ‘CredWrite’, ‘Not enough memory resources are available to process this command’) During handling of the above exception, another exception occurred: Traceback (most recent call last):
File “D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py”, line 233, in invoke
File “D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py”, line 663, in execute
File “D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py”, line 726, in _run_jobs_serially
File “D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py”, line 718, in _run_job
File “C:\Users\user1.azure\cliextensions\azure-devops\azext_devops\dev\common\exception_handler.py”, line 31, in azure_devops_exception_handler
reraise(*sys.exc_info())
File “D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\six.py”, line 703, in reraise
File “D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py”, line 697, in _run_job
File “D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py”, line 333, in call
File “D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py”, line 121, in handler
File “C:\Users\user1.azure\cliextensions\azure-devops\azext_devops\dev\team\credentials.py”, line 37, in credential_set
raise CLIError(ex)
knack.util.CLIError: (8, ‘CredWrite’, ‘Not enough memory resources are available to process this command’) cli.azure.cli.core.azclierror: (8, ‘CredWrite’, ‘Not enough memory resources are available to process this command’)
az_command_data_logger: (8, ‘CredWrite’, ‘Not enough memory resources are available to process this command’)
cli.knack.cli: Event: Cli.PostExecute []
az_command_data_logger: exit code: 1
cli.main: Command ran in 19.697 seconds (init: 0.909, invoke: 18.788)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3147 in cache
telemetry.check: Negative: The C:\Users\user1.azure\telemetry.txt was modified at 2023-01-16 12:05:44.030725, which in less than 600.000000 s

**To Reproduce**
az devops login --organization https://dev.azure.com/my_test_org

**Expected behavior**
successful login

**Environment summary**
Bash/PS on Windows

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.