Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to store PAT using keyring, az devops cli #25138

Closed
OisinFoley opened this issue Jan 16, 2023 · 4 comments
Closed

Failed to store PAT using keyring, az devops cli #25138

OisinFoley opened this issue Jan 16, 2023 · 4 comments
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. DevOps Installation
Milestone

Comments

@OisinFoley
Copy link

I’m trying to authenticate toward my Azure DevOps organisation using a personal access token, but keep getting met with the “Failed to store PAT using keyring, falling back to file storage”.

I have tried the steps outlined below, based on suggestions here and here.

CLI version:

  • az cli: 2.44.1
  • azure-devops (extension): 0.25.0

Order of steps (from a fresh install of both Ubuntu 18.04 and Ubuntu 20.04)

  • sudo apt install python3-pip
  • python3 -m pip install -U pip # install latest version of pip
  • installing az cli based on instructions here (as soon as this command finishes, I notice that running ls /opt/az lists a python3.10 directory)
  • sudo pip3 install --target /opt/az/lib/python3.6/site-packages/ keyring~=17.1.1 # keyring package missing by default when booting VM for first time
  • az extension add --name azure-devops
  • regardless of whether I do either of the following commands, I keep getting the same Failed to store PAT using keyring error when trying to login to my org:
    • az devops login --organization https://dev.azure.com/{orgName} (then paste in PAT when prompted)
    • export AZURE_DEVOPS_EXT_PAT variable, then run same az devops login command
    • echo $AZURE_DEVOPS_EXT_PAT | az devops login --organization https://dev.azure.com/{orgName}/

I am out of ideas and would appreciate any suggestions.
Running python3 --version in my terminal returns Python 3.6.9.

For simplicity, I gave the PAT open permissions across the entire Azure DevOps org.

Is there a permission I need to add to the service principal representing Azure DevOps?
Not finding any documentation mentioning this but just an idea i'm investigating.

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot CXP Attention This issue is handled by CXP team. DevOps Installation labels Jan 16, 2023
@ghost ghost assigned jiasli Jan 16, 2023
@ghost ghost added this to the Backlog milestone Jan 16, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jan 16, 2023

route to CXP team

@hima-gadupudi
Copy link

I am also facing the same issue. Any update on this github issue is appreciated.

@jiasli jiasli removed their assignment Mar 30, 2023
@jiasli
Copy link
Member

jiasli commented Mar 30, 2023

az devops is an Azure CLI extension. Please report to https://github.com/Azure/azure-devops-cli-extension instead.

@shileshbabu
Copy link

I am also facing the same issue... Any update how to fix this??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. DevOps Installation
Projects
None yet
Development

No branches or pull requests

5 participants