AzCopy 10.0.5-Preview
Ubuntu 18.04 on Windows Subsystem for Linux, Windows 10 build 18312
azcopy login
After authenticating through https://microsoft.com/devicelogin with the authentication code (which shows success), login fails with error
Error: failed to perform login command, failed to get keyring during saving token, function not implemented
Ubuntu from Windows storehttps://aka.ms/downloadazcopy-v10-linux and unpackazcopy login, go through the promptsNo, tried installing a keyring through sudo apt install gnome-keyring but that did not solve the problem.
Hi, caksoylar
Thanks for reaching us! We will further test your scenario. And will update the thread later.
Best Regards,
Jiachen
Hi, @caksoylar
AzCopy on Linux is using Linux embedded keyring, while we can repro your issue, that on Ubuntu 18.04 on Windows Subsystem for Linux, even with keyctl, keyring cannot be used properly, e.g.:
root@MS-JIACFAN-PC6:/mnt/c# keyctl list @s
keyctl_read_alloc: Function not implemented
Would you try to use it on standard Linux distro? At same time, we'll discuss and consider to add support for Ubuntu 18.04 on Windows Subsystem for Linux.
Thanks,
Jiachen
Thanks for the investigation and reply @jiacfan, sorry to hear this is a shortcoming of WSL. I don't have a real Linux system to test on, but I'll try to do my work with azcopy on Windows until a solution can be found.
@caksoylar
Thanks for updating the info!
I ran into a similar azcopy issue in a Docker Container.
Which version of the AzCopy was used? azcopy v10.2.1
Which platform are you using? RHEL7.x and Docker Container
What command did you run? azcopy login --service-principal --certificate-path
What problem was encountered?
Failed to perform login command:
failed to get keyring during saving token, operation not permitted
Have you found a mitigation/solution?
The container was running with "seccomp". The quickest resolution is to run the image with "seccomp" disabled. See link for resolution: https://docs.docker.com/engine/security/seccomp/
I also needed to "yum install keyutils".
I am able to "azcopy login" with a service principal that has a public certificate in a docker container.
Thanks for sharing that info @sac8m!
Most helpful comment
I ran into a similar azcopy issue in a Docker Container.
Which version of the AzCopy was used? azcopy v10.2.1
Which platform are you using? RHEL7.x and Docker Container
What command did you run? azcopy login --service-principal --certificate-path
What problem was encountered?
Failed to perform login command:
failed to get keyring during saving token, operation not permitted
Have you found a mitigation/solution?
The container was running with "seccomp". The quickest resolution is to run the image with "seccomp" disabled. See link for resolution: https://docs.docker.com/engine/security/seccomp/
I also needed to "yum install keyutils".
I am able to "azcopy login" with a service principal that has a public certificate in a docker container.