-
Notifications
You must be signed in to change notification settings - Fork 204
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
Azcopy login fails with failed to get keyring during saving token #1021
Comments
Hey @Sharathmk99 , Thanks for reaching out to us! This is a known issue in CentOS, RHEL and some flavors of Linux.
If this doesn't answer your question, please don't hesitate to reach out to us for more clarity. |
This still doesn't work as of |
I was able to get a workaround according to #193 (comment), but this is still an issue. |
This still needs a fix. I'm using a container to run the Azure CLI so that my host system isn't polluted with a bunch of dependencies. Sharing credentials with |
Still a problem on 10.16.1 after you wait 2+ hours for the key to be revoked, or you manually revoke it. At a guess, it is because the saving credential code does not handle revoked keys: azure-storage-azcopy/common/credCache_linux.go Lines 152 to 184 in 058bd5b
Once a key is revoked, all operations on it (other than prune/reap) will fail: https://www.man7.org/linux/man-pages/man3/keyctl_revoke.3.html A possible fix would be to purge the revoked key before doing the login so later on it can be updated. @nakulkar-msft why mark as "won't fix"? Running 'login' should always work if the credentials are still valid, right? A revoked key should be handled far more cleanly, by purging the old key via keyctl and then letting the normal login process add a new fresh key; rather than latching in a way no one understands. |
@jimdigriz |
@nakulkar-msft the problem is not 'login' or 'auto-login', the problem is Using your described method I still get after two hours (which amusingly recommends I instead use the "old workflow and we dont recommend it"):
This is the method I am using here:
The second 'sync' fails after 2 hours with the above message. |
For those running into this bug, and vexed by MS's disinterest to assign one of its 100k programmers to knock out a two liner Python bug fix, the rest of us can workaround this by calling For example, I use something like this:
Such there are plenty of 'technical' arguments that this should not be in a |
az auto login does not work for me because I need to login every single time. |
I got this error today on v10.24.0. The message in the logs said to use auto login and referenced [1]. But that page was not helpful as none of the autologin types specified in that wiki page worked for me. Found additional info on [2] So, [1] https://github.com/Azure/azure-storage-azcopy/wiki/Improved-login-support-for-AzCopy-commands-(with-in-memory-secret-store) |
Which version of the AzCopy was used?
AzCopy 10.4.3
Which platform are you using? (ex: Windows, Mac, Linux)
Linux
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
What command did you run?
What problem was encountered?
We are trying to invoke azcopy to copy files from Azure VM to Azure Data Lake Storage Gen2 using Python in a batch mode. On every azcopy copy command we do azcopy login. Azcopy login works most of the time, but it will fail by below error,
As per issue #452 people suggested to add "keyctl session mysession" before login, but it still fails sometime within 2hrs or 24hrs
How can we reproduce the problem in the simplest way?
Execute below code in loop by adding delay of 2hrs for 48hrs,
Have you found a mitigation/solution?
No
The text was updated successfully, but these errors were encountered: