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 repos list hangs

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

hangs, doesn’t work

cyl@diamat:~/LSG-linux-yocto$ az repos list --verbose ^Ccommand ran in 3802.346 seconds.

Command Name az repos list Extension Name: azure-devops. Version: 0.17.0.

Errors:

To Reproduce:

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

  • Put any pre-requisite steps here…
  • az repos list --verbose

Expected Behavior

Environment Summary

Linux-5.0.0-37-generic-x86_64-with-debian-buster-sid
Python 3.6.5
Shell: bash

azure-cli 2.0.80

Extensions:
azure-devops 0.17.0

Additional Context

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ironymancommented, Feb 4, 2020

It did happen everytime I ran it. But az repos list is working now. I signed out and signed in and deleted some stuff. Can’t quite remember everything I did.

But this is hanging

echo $USERPAT | az devops login --organization https://msazure.visualstudio.com --verbose --debug

This happens everytime.

azext_devops.devops_sdk.client : Api version '5.0-preview.1'
azext_devops.devops_sdk.client : GET https://msazure.visualstudio.com/_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): msazure.visualstudio.com:443
urllib3.connectionpool : https://msazure.visualstudio.com:443 "GET /_apis/ConnectionData HTTP/1.1" 200 694
azext_devops.devops_sdk.client : Response content: b'{"authenticatedUser": censored
keyring.backend : Loading KWallet
keyring.backend : Loading SecretService
keyring.backend : Loading Windows
keyring.backend : Loading chainer
keyring.backend : Loading macOS
Keyring backend : keyring.backends.SecretService.Keyring (priority: 5)

hangs there

I have a stack trace at that point

File "/opt/az/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/az/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/__main__.py", line 49, in <module>
    exit_code = cli_main(az_cli, sys.argv[1:])
  File "/opt/az/lib/python3.6/site-packages/azure/cli/__main__.py", line 38, in cli_main
    return cli.invoke(args)
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 601, in execute
    results, exceptions = self._run_jobs_serially(jobs, ids)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 666, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 636, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 306, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 493, in default_command_handler
    return op(**command_args)
  File "/home/cyl/.azure/cliextensions/azure-devops/azext_devops/dev/team/credentials.py", line 31, in credential_set
    set_credential(organization=organization, token=token)
  File "/home/cyl/.azure/cliextensions/azure-devops/azext_devops/dev/common/_credentials.py", line 33, in set_credential
    cred_store.set_password(key, token)
  File "/home/cyl/.azure/cliextensions/azure-devops/azext_devops/dev/common/credential_store.py", line 31, in set_password
    old_token = keyring.get_password(key, self._USERNAME)
  File "/home/cyl/.azure/cliextensions/azure-devops/keyring/core.py", line 57, in get_password
    return _keyring_backend.get_password(service_name, username)
  File "/home/cyl/.azure/cliextensions/azure-devops/keyring/backends/SecretService.py", line 64, in get_password
    collection = self.get_preferred_collection()
  File "/home/cyl/.azure/cliextensions/azure-devops/keyring/backends/SecretService.py", line 56, in get_preferred_collection
    collection.unlock()
  File "/home/cyl/.azure/cliextensions/azure-devops/secretstorage/collection.py", line 67, in unlock
    return unlock_objects(self.connection, [self.collection_path])
  File "/home/cyl/.azure/cliextensions/azure-devops/secretstorage/util.py", line 154, in unlock_objects
    dismissed, (signature, unlocked) = exec_prompt(connection, prompt)
  File "/home/cyl/.azure/cliextensions/azure-devops/secretstorage/util.py", line 140, in exec_prompt
    connection.recv_messages()
  File "/home/cyl/.azure/cliextensions/azure-devops/jeepney/integrate/blocking.py", line 62, in recv_messages
    b = self.sock.recv(4096)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/__main__.py", line 21, in quit_handler
    traceback.print_stack()
0reactions
roshan-sycommented, Jan 24, 2022

It is not happening anymore and we are closing this If you are facing this issue feel free to re-open it

Read more comments on GitHub >

github_iconTop Results From Across the Web

az devops login hangs - Stack Overflow
--project {PROJECT} . And it seems that it hangs because it fails to install the keyring~=17.1. 1 package (and its deps).
Read more >
az-cli commands responding slow - Visual Studio Feedback
I am running some az-cli commands that are taking forever to complete. ... az repos list --org https://dev.azure.com/my-org/ --project my_project --query ...
Read more >
az repos ref - Microsoft Learn
Manage Git references. In this article. Commands; az repos ref create; az repos ref delete; az repos ref list; az repos ref ...
Read more >
Connection problems - doing CLI for Azure DevOps
How to fix connection problems. Some basic things to try: In addition to logging in through az devops login , make sure you...
Read more >
How to troubleshoot subscription-manager and yum issues
Repo Name: Red Hat Enterprise Linux 6 Server (RPMs) Repo Id: rhel-6-server-rpms Repo Url: https://cdn.redhat.com/content/dist/rhel/server/6/$ ...
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