envconsul icon indicating copy to clipboard operation
envconsul copied to clipboard

Windows Binary error - parsing command: executable file not found in %PATH%

Open adamtimmins opened this issue 1 year ago • 5 comments

Attempting to use envconsul in powershell however after it finds the KV2 secrets it errors out with the following. 2023-04-07T14:53:06.852+0100 [ERROR] envconsul: parsing command: executable file not found in %PATH%

Experiencing this with both v0.13.0 and v0.13.1.

adamtimmins avatar Apr 07 '23 14:04 adamtimmins

Maybe related to https://github.com/hashicorp/envconsul/issues/335

komapa avatar Jul 18 '23 03:07 komapa

We are experiencing the same issue with envconsul v0.13.2 (dd416ce)

acidumirae avatar Sep 21 '23 01:09 acidumirae

The article does not work https://support.hashicorp.com/hc/en-us/articles/4409463187731-Using-envconsul-with-Windows

"cmd /C set" - 2023-09-21T17:03:31.361+0800 [ERROR] envconsul: parsing command: executable file not found in %PATH%

"cmd" - works but makes no useful work, since no parameters could be passed

acidumirae avatar Sep 21 '23 09:09 acidumirae

A workaround is to use "exec" configuration, eg.:

exec {
   command = ["C:\\some.exe", "some parameter"]
}

acidumirae avatar Sep 22 '23 01:09 acidumirae

Quick and dirty patch for CLI to work properly on windows

https://pastebin.com/vra2H82n

acidumirae avatar Sep 22 '23 01:09 acidumirae