Is there a known good version to which I should downgrade?
oh... seems to have resolved now that I locked to these in `packages.json`:
Copy code
{
  "name": "eks-cluster",
  "devDependencies": {
    "@types/node": "latest"
  },
  "dependencies": {
    "@pulumi/aws": "0.16.7",
    "@pulumi/eks": "0.16.6",
    "@pulumi/kubernetes": "0.19.0",
    "@pulumi/pulumi": "0.16.12"
  }
}
w
Glad to hear those version worked. Were you using
dev
versions perviously? I'm not aware of any issue that would lead to the failure you saw above.
b
Ive been running into this as well on
0.16.11
Packages:
Copy code
-        "@pulumi/aws": "^0.16.3",
-        "@pulumi/docker": "^0.16.2",
-        "@pulumi/eks": "latest",
-        "@pulumi/kubernetes": "^0.18.0",
-        "@pulumi/pulumi": "^0.16.7",
e
I was using all "latest" and it started failing late last night
b
Still haven't been able to fix this with the latest packages:
Copy code
"dependencies": {
        "@Pulumi Team/aws": "^0.16.7",
        "@Pulumi Team/docker": "^0.16.4",
        "@Pulumi Team/eks": "^0.16.6",
        "@Pulumi Team/kubernetes": "^0.19.0",
        "@Pulumi Team/pulumi": "^0.16.13",
Copy code
TypeError: resproto.InvokeRequest is not a constructor
w
b
We've published 0.16.14 of
@pulumi/pulumi
(should be on NPM now) which should address this issue.
Sorry for the failure here, we are trying to understand why our pre-release tests did not find this regression.
b
the dev version?
I'm still getting the exact same bug with
0.16.12
and the following libs
Copy code
"dependencies": {
        "@pulumi/aws": "^0.16.7",
        "@pulumi/docker": "^0.16.4",
        "@pulumi/eks": "^0.16.6",
        "@pulumi/kubernetes": "^0.19.0",
        "@pulumi/pulumi": "^0.16.14",
Copy code
error: TypeError: resproto.InvokeRequest is not a constructor
        at Object.<anonymous> (/home/azamat/git/shapeshift/cointainers/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/runtime/invoke.js:58:25)
        at Generator.next (<anonymous>)
        at fulfilled (/home/azamat/git/shapeshift/cointainers/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/runtime/invoke.js:17:58)
        at <anonymous>
    error: TypeError: resproto.InvokeRequest is not a constructor
        at Object.<anonymous> (/home/azamat/git/shapeshift/cointainers/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/runtime/invoke.js:58:25)
        at Generator.next (<anonymous>)
        at fulfilled (/home/azamat/git/shapeshift/cointainers/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/runtime/invoke.js:17:58)
        at <anonymous>
b
@busy-umbrella-36067: The path there:
/home/azamat/git/shapeshift/cointainers/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/runtime/invoke.js:58:25
implies that
@pulumi/aws
got its own copy of
@pulumi/pulumi
for some reason. Could you tell me a few things? 1. What version of
@pulumi/aws
ended up being installed (the package.json in /home/azamat/git/shapeshift/cointainers/node_modules/@pulumi/aws should have this) 2. What version of
@pulumi/pulumi
got installed for
@pulumi/aws
(the package.json in /home/azamat/git/shapeshift/cointainers/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi should have this) 3. Could you share with me your yarn.lock or package-lock.json file?
b
it think its due to yarn caching
cleared my
~/.cache
directory and now I'm getting different errors 😛
Copy code
Previewing update (XXXXXXXX):
error: could not load plugin for aws provider 'urn:pulumi:cointainers-dev::cointainers::pulumi:providers:aws::corpAws': could not read plugin [/home/azamat/.pulumi/plugins/resource-aws-v0.16.8-dev.1548902955+g43842090.tmp077556783/pulumi-resource-aws] stdout: EOF
b
I suspect if you
rm -rf /home/azamat/.pulumi/plugins/resource-aws-v0.16.8-dev.1548902955+g43842090.tmp077556783
and then run
pulumi plugin install resource aws v0.16.8-dev.1548902955+g43842090
, it will install that plugin again. The .tmp in the filename makes me think this is related to this issue: https://github.com/pulumi/pulumi/issues/1353. We should be ignoring these .tmp folders (the CLI downloads plugins there and then moves them into their correct location), it should never try to use something from this folder but we have some issue here.
b
yeah its yarn specifically
npm doesnt cause the issue, yarn causes the aws package to get its own
@pulumi/pulumi
the version of
@pulumi/pulumi
inside of
@pulumi.aws
is
0.16.13
I got it recovered, had a
yarn.lock
file locally that was causing this.
👍 1