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.

Fail to "az devops login --organization https://msazure.visualstudio.com"

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az devops login Extension Name: azure-devops. Version: 0.10.0.

Errors:

Failed to unlock the collection!
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 560, in execute
    raise ex
cli/core/commands/__init__.py, ln 618, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
...
azure-devops/keyring/backends/SecretService.py, ln 64, in get_password
    collection = self.get_preferred_collection()
azure-devops/keyring/backends/SecretService.py, ln 58, in get_preferred_collection
    raise KeyringLocked("Failed to unlock the collection!")
keyring.errors.KeyringLocked: Failed to unlock the collection!

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 devops login --organization {}

Expected Behavior

Environment Summary

Linux-4.18.0-20-generic-x86_64-with-debian-buster-sid
Python 3.6.5
Shell: bash

azure-cli 2.0.66

Extensions:
azure-devops 0.10.0

Additional Context

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wanggleicommented, Jun 13, 2019

@atbagga Yes! This workaround worked for me.

0reactions
geverghecommented, Oct 15, 2019

@wangglei - I am closing this issue. Feel free to reopen the issue in case it does not answer your query. Would be super helpful for us if you could open any issue related to az devops | az pipelines | az artifacts | az repos | az boards on https://github.com/Azure/azure-devops-cli-extension/issues .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot sign in to organization azure devops
I'm trying to login to our organization azure devops (mt.visualstudio.com - of which I am an owner) using my organization email address (from...
Read more >
Unable to run az devops login from a bash script - Microsoft Q&A
I have my azure-pipelines.yaml as follows and stored my personal access token in the pipeline variable. trigger:
Read more >
Az Devops Commands Failing in Azure Pipelines (Classic)
I see that piping PAT on StdIn to az devops login is failing. However, an even better approach IMHO would be to set...
Read more >
Synchronize accounts from our Azure DevOps organizations
az devops user list --organization https://dev.azure.com/xxx --output ... "licenseDisplayName": "Visual Studio Professional subscription", ...
Read more >
Working with Azure DevOps using Azure DevOps CLI
(3) Run the az login command to authenticate user. ... az devops : Manage Azure DevOps organization level operations. Related Groups.
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