-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Vault CLI always hangs for a few seconds on Windows #12536
Comments
@rageshkrishna this is likely something specific to your machine - more so if you've not made comparisons relative to some other systems running the same version. What's more the likelihood of it being specific to your system is even more so if you're experiencing the same sort of slowness with all other versions of vault. For example on my system using PowerShell Prompt (you also didn't mention what you used): PS C:\> (Measure-Command { vault --version | Out-Default }).ToString()
# Vault v1.8.2 (aca76f63357041a43b49f3e8c11d67358496959f)
# 00:00:00.6710139 You may want to give a few systems as well as versions a try and consider closing. PS - In the future mention the type of system / version of Vault you're using (32bit / 64) as well as some hardware, specific OS (exact versions) and other details as relevant. |
Thanks for the pointers, @aphorise. Here's some more information if it helps:
The delay on both of these machines is roughly the same:
Now, the interesting bit is that on the same machines there is no delay when running in WSL:
I'm wondering if it could be something about my network. I'm running Tailscale, but disconnecting didn't make any difference. I'm also not sure why |
In golang the The good news is that aerospike fixed this issue already, and there is a PR in flight to update Vault to the latest version of aerospike. The issue will disappear then. For right now, if you do not mind compiling Vault manually (and you do not use aerospike) just comment out the sleep line in the aerospike source code and re-compile, the delay goes away. If you set an environment variable like this
|
Thanks @AndrewSav. I can confirm that this is indeed the issue for me:
I'll keep this issue open until I can verify the fix with the 1.9 release. |
@AndrewSav Would you happen to have an ETA for the 1.9 release? In the mean time, as a workaround, I suppose I could just downgrade the CLI on my Windows machines to an older release that isn't affected by this issue. |
@rageshkrishna no. |
I have the same issue with Vault 1.9 on Windows 10. It hangs for around 7.2s everytime I send any command. |
I had to revert to version 1.7 (here) to make it work faster. |
Same issue here |
Just updated to Vault 1.9.1 on Windows which seems to have fixed the issue! (Guessing #12165 did the trick) |
I confirm: issue has been zapped in 1.9.1. |
Huzzah! Thank you so much @nvx and @DanielBoulerice for reporting back! |
Describe the bug
Running any vault command in Windows is delayed almost 10 seconds before anything happens. This is true even if run
vault --version
To Reproduce
Steps to reproduce the behavior:
vault --version
Expected behavior
There shouldn't be a 10 second delay.
Environment:
vault status
): Irrelevant; just printing the version triggers the delay. NoVAULT_ADDR
or any otherVAULT
envs were set.vault version
): Vault v1.8.2 (aca76f6)Vault server configuration file(s): Irrelevant
The text was updated successfully, but these errors were encountered: