https://pulumi.com logo
#automation-api
Title
# automation-api
d

dazzling-salesclerk-51689

05/24/2021, 7:53 PM
We're using the
automation_api
on
node.js
to create resources on AWS and K8s. We have two classes that performs the text-book Pulumi flow. Each one independently is working fine. The weird issue pops when we're running them one after the other. Doesn't matter which one is the first, the second one is always failing with a
grpc
related error:
Copy code
Exception has occurred: Error: 14 UNAVAILABLE: No connection established
  at Object.callErrorFromStatus (.../node_modules/@grpc/grpc-js/src/call.ts:81:24)
Some more metadata: • There are two different stacks for each one. • There is no paralleling, one is done and only then the other starts • We're using an inline function • Pulumi version: 3.3.0 Any ideas what could go wrong? Thanks!
b

bored-oyster-3147

05/24/2021, 8:00 PM
If I had to guess this is likely some kind of automation API bug related to static global state being set in the first run that isn't being cleaned up, and is then causing the second run to fail. You might want to open an issue and see if you can get a small repro together
p

proud-pizza-80589

05/25/2021, 7:26 AM
I’ve been struggling with similar looking grpc errors. In our case, the fix was downgrading to 3.2.1 for both the CLI and SDK https://github.com/pulumi/pulumi/issues/6998
Not sure it is the same as your case though, but who knows
d

dazzling-salesclerk-51689

05/25/2021, 10:01 AM
@proud-pizza-80589 - no luck on downgrading but thanks. @bored-oyster-3147 - Yes, agree that it looks like state related issue. opened an issue. thanks.
2 Views