faint-hair-23828
05/05/2022, 6:49 PMpulumi up
command and my hunch is that this problem is related to the memory available for the TS compilation. These errors don't have much information:
@ previewing update....
Resources:
1 unchanged
error: an unhandled error occurred: Program exited with non-zero exit code: -1
Has anyone experienced this before and found a solution? (which isn't bumping the memory - since in this case I cannot do)debug
and using -v9
I can see the following messages:
deployment_executor.go:259] deploymentExecutor.Execute(...): incoming event (nil? true, Error: an unhandled error occurred: Program exited with non-zero exit code: -1)
step_executor.go:364] StepExecutor worker(-1): StepExecutor.waitForCompletion(): waiting for worker threads to exit
step_executor.go:364] StepExecutor worker(-2): worker exiting due to cancellation
step_executor.go:364] StepExecutor worker(-1): StepExecutor.waitForCompletion(): worker threads all exited
deployment_executor.go:303] deploymentExecutor.Execute(...): step executor has completed
error: an unhandled error occurred: Program exited with non-zero exit code: -1
deployment_executor.go:161] deploymentExecutor.Execute(...): exiting provider canceller
ignore.go:44] Explicitly ignoring and discarding error: rpc error: code = Canceled desc = grpc: the client connection is closing
green-musician-49057
05/06/2022, 2:22 AMNODE_OPTIONS="--max-old-space-size=3000" pulumi preview
Pulumi might already be overriding this value internally, or it might not be a memory issue at all -- so this additional option might not have any effect.
You can read more about max-old-space-size
here https://stackoverflow.com/a/64409997faint-hair-23828
05/06/2022, 1:13 PMNODE_OPTIONS
but still experienced failures
I also noticed when running in docker desktop memory consumption goes up over 3GB during the preview and when resources are getting created drops to around 100MB, that's why I suspect the TS build process can be the problem (considering this needs to happen before resources are created/updated).