better-shampoo-48884
03/27/2021, 6:39 AMλ ts-node automation.ts
CommandError: code: 4294967295
stdout:
stderr: error: decrypting secrets: passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE environment variables
err?:
at Object.createCommandError (c:\<path>\node_modules\@pulumi\pulumi\x\automation\errors.js:71:17)
at ChildProcess.<anonymous> (c:\<path>\node_modules\@pulumi\pulumi\x\automation\cmd.js:63:40)
See code in post above for source, and in the thread for the automation.ts code as well.. Basically I'm running automation on top of a preexisting standard pulumi-cli set of stacks in a project. Previously, I got the message when I failed to set AZURE_KEYVAULT_AUTH_VIA_CLI to true - but now I've both got it in the environment I'm executing in AND the envVars of the LocalWorkspace settings. Also - the CommandError: code: is a bit weird because there are quite a lot of hits for that exact code.. which is really weird.. and that code returns results relating from electron stuff to .msp upgrades of adobe software to IIS stuff.. The most useful result was the IIS one which has this as the title: ERROR_FILE_IN_USE msdeploy.exe failed with return code: 4294967295
- could this be a filesystem issue somehow?!
Using pulumi 2.23.2
if it helps.const currentProject = yaml.load(fs.readFileSync("./Pulumi.yaml"))
and the LocalWorkspace: ..projectSettings: currentProject..
lemon-agent-27707
03/27/2021, 3:40 PMworkDir
to the directory that contains your pulumi yaml, it will pick it up automatically.better-shampoo-48884
03/27/2021, 4:29 PMprojectSettings
defined.lemon-agent-27707
03/28/2021, 4:48 PMworkDir
without explicit projectSettings
then this behavior would be a bug and we should fix it. If you have a repro, please share or file an issue: https://github.com/pulumi/pulumi/issues/new?assignees=&labels=kind%2Fbug&template=0-bug-report.mdbetter-shampoo-48884
03/29/2021, 12:42 PM