question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az acr login - fail

See original GitHub issue

Bug Description

Problem with login

Command Name az acr login

Errors:

'NoneType' object has no attribute '__name__'
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 659, in execute
    raise ex
cli/core/commands/__init__.py, ln 722, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 715, in _run_job
    six.reraise(*sys.exc_info())
...
cli/core/commands/parameters.py, ln 136, in get_resources_in_subscription
    rcf = get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
cli/core/commands/client_factory.py, ln 74, in get_mgmt_service_client
    **kwargs)
cli/core/commands/client_factory.py, ln 176, in _get_mgmt_service_client
    logger.debug('Getting management service client client_type=%s', client_type.__name__)
AttributeError: 'NoneType' object has no attribute '__name__'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az login
  • az account set --subscription *********
  • az acr login -n **************

Expected Behavior

  • login

Environment Summary

Linux-5.14.21-150400.24.21-default-x86_64-with-glibc2.3.4
Python 3.6.15
Installer: PIP
OponSUSE 15.4

azure-cli 2.17.1 *

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
estebanreylcommented, Oct 25, 2022

I tried using the above CLI version and run the steps to reproduce but was unable to, everything succeeded properly. The package issues outlined in the error could however to indicate an improper CLI installation

0reactions
chromcommented, Oct 31, 2022

close this issue pls

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot login to registry - Azure Container Registry
Unable to access a registry using az acr login and you receive error CONNECTIVITY_REFRESH_TOKEN_ERROR. Access to registry was denied. Response ...
Read more >
az acr login failed · Issue #23987 · Azure/azure-cli
We find that az acr login could work if we create a symbol link of docker.exe at current dir. Formerly it also works...
Read more >
az acr login results in error: can't find token from MSAL cache
Try clearing the cache from the .azure folder from the home directory /var/root; Also clear the cache using MSAL.net.
Read more >
azure-cli
az acr login fails on mac# ... Error saving credentials: error storing credentials - err: exit status 1, out: `The user name or...
Read more >
Unable To Get AAD Authorization Token With Message
To Fix this issue, Try to run sudo az login first and then try sudo az acr login –name acr001. You should get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found