pulumi: Pulumi preview stuck indefinitely
What happened?
pulumi preview command will just stuck oftenly and randomly, retry can solve. Unknown reason.
$ pulumi --stack '***' preview -v 11 --logtostderr 2>log
Previewing update (***):
Type Name Plan
pulumi:pulumi:Stack *** running...
(The dots of running... is still animating.)
Expected Behavior
Complete preview.
Steps to reproduce
Just run pulumi preview.
Output of pulumi about
pulumi about
CLI
Version 3.54.0
Go Version go1.20
Go Compiler gc
Host
OS darwin
Version 13.1
Arch x86_64
Backend
Name ***
URL file://~
User ***
Organizations
Pulumi locates its logs in /var/folders/pl/n_7kfrtd67n85qq7q_t286k80000gn/T/ by default
Additional context
- If it’s not stuck, it’ll complete in about 30 seconds
- Our stack has about 2 thousands of resources.
- While stucking, the log will just stop output
- Didn’t see an obvious error in last few lines of log (But I’m not a pulumi expert)
- We’re mainly use TypeScript (
runtime: nodejs) and@pulumi/gcp - Retry can solve, this problem will just appear randomly
- This problem also appear on GitHub Actions
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already).
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 15 (6 by maintainers)
I’m moving this back to pulumi/pulumi, I’ve seen enough reports of this to be confident that it’s an engine problem not specific to any one provider.
I am seeing the same with the default C# Azure template. The only thing I changed was the resource group name.
I fixed it by running
az login, which I seem to have not done beforehand. Perhaps Pulumi should warn if it cannot find an authentication context?@igor-pinchuk suggest raising a new issue, this is was for nodejs and didn’t have a repro so was closed off.
Given we’ve now got reports for node, go and dotnet I’d suggest just commenting on https://github.com/pulumi/pulumi/issues/16476. It might be this is an engine issue after all.
I use the latest Pulumi and C# (not Nodejs), which also met this issue. (It’s hard to share all the projects, but some logs are like the following.)
And the online view:
I can share more when I get new findings but at least this issue was not completed.
Possible causes
Pulumi started another process to execute the program, and it will hang forever if the underlying process gets killed.