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 devops login fails with "InitError: Failed to create the collection: Prompt dismissed.."

See original GitHub issue

Describe the bug

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

Errors:

The command failed with an unexpected error. Here is the traceback:


Failed to create the collection: Prompt dismissed..
Traceback (most recent call last):
  File "/usr/lib64/az/lib/python2.7/site-packages/knack/cli.py", line 206, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib64/az/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 603, in execute
    raise ex
InitError: Failed to create the collection: Prompt dismissed..

To Reproduce:

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

  • az devops login

Expected Behavior

Perform a successful login

Environment Summary

Linux-5.0.16-100.fc28.x86_64-x86_64-with-fedora-28-Twenty_Eight
Python 2.7.15
Shell: bash

azure-cli 2.0.71

Extensions:
azure-devops 0.12.0

Additional Context

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Sharath52commented, Oct 29, 2020

Hi All, I am having the same issue when i try to login into azure devops using az devops login --org https://dev.azure.com/{ORGNAME} From within azcli container…But its working locally…Any additional changes needs to be done in the container?? This is the ouput.

Failed to store PAT using keyring; falling back to file storage. You can clear the stored credential by running az devops logout. Refer https://aka.ms/azure-devops-cli-auth to know more on sign in with PAT.

`bash-5.0# az --version azure-cli 2.14.0

core 2.14.0 telemetry 1.0.6

Extensions: azure-devops 0.18.0

Python location ‘/usr/local/bin/python’ Extensions directory ‘/root/.azure/cliextensions’

Python (Linux) 3.6.10 (default, May 21 2020, 05:54:39) [GCC 9.2.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Please let us know how we are doing: https://aka.ms/azureclihats and let us know if you’re interested in trying out our newest features: https://aka.ms/CLIUXstudy`

2reactions
gauravsaralMscommented, Aug 27, 2019

@BenjaminHerbert : This error is coming from keyring library which we use for credentials management. Will need some more information please run

  1. pip uninstall keyring (this might fail, ignore failure)
  2. pip install keyring~=17.1.1

Then in a file named something like temp.py add this code

import keyring

def _only_builtin(backend):
    return (
        backend.__module__.startswith('keyring.backends.') and
        'chain' not in backend.__module__
    )

keyring.core.init_backend(_only_builtin)
print('Keyring backend : %s', keyring.get_keyring())

old_token = keyring.get_password('fake key', 'Personal Access Token')
if old_token is not None:
    keyring.delete_password('fake key', 'Personal Access Token')
keyring.set_password('fake key', 'Personal Access Token', 'fake token')

Try running this file using python temp.py Let us know if temp.py is working fine or not and share error in case of any

cc: @ishitam8

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring a CD pipeline for your Jenkins CI
Set up your Azure DevOps project using the MyShuttle template in the Azure ... the following command needs to be run from a...
Read more >
terraform - CHANGELOG.md - GitLab
The validate command now checks that all variables are specified by default. The validation will fail by default if that's not the case....
Read more >
sitemap-questions-3.xml - Server Fault
... /server-2008-r2-failing-dcdiag-not-advertising-as-a-time-server 2015-10-10 ... https://serverfault.com/questions/727943/auto-root-login-in-linux-servers ...
Read more >
ONAP on Kubernetes
kubectl --namespace onap-robot create secret docker-registry nexuscreds2 ... Failed to start container with docker id 47b63e352857 with error: Error ...
Read more >
Continue: Error Cleartext Not Permitted Android Studio - Scribd
PROCAM from the Project Fleeting PROCAM) The API service rejected the request with an error. HTTP 403 (Disabled) any files, AttributeError: Module ...
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