https://pulumi.com logo
#general
Title
# general
m

millions-judge-24978

03/11/2019, 6:43 PM
Plugins are installed automatically correct? I am somehow running into an issue running in CI (Jenkins) where I get the error
error: could not load plugin for aws provider
when trying to do a
pulumi preview
.
i

incalculable-sundown-82514

03/11/2019, 6:43 PM
Hi! They are, but we just made some changes recently that made our plugin loading behavior a little more strict. Here’s another related issue, is this what you’re seeing? https://github.com/pulumi/pulumi-azure/issues/200
(with aws and not azure)
If you’re blocked by this, you can set the environment variable
PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1
and you should be able to continue working as before
m

millions-judge-24978

03/11/2019, 6:46 PM
On first glance it definitely seems like the same issue
I will use that, thanks! Is there anything you would like me to grab as far as debug info to help?
i

incalculable-sundown-82514

03/11/2019, 6:48 PM
Yeah, actually - do you mind doing what’s in this comment? https://github.com/pulumi/pulumi-azure/issues/200#issuecomment-471654642
m

millions-judge-24978

03/11/2019, 6:48 PM
Sure thing, want me to post here or in the issue?
i

incalculable-sundown-82514

03/11/2019, 6:48 PM
the issue, if you don’t mind! slack doesn’t do well with big text blobs 😞
m

millions-judge-24978

03/11/2019, 6:50 PM
incoming shortly
i

incalculable-sundown-82514

03/11/2019, 6:51 PM
thanks!
one more thing, what’s the output of
pulumi plugin ls
on your machine?
m

millions-judge-24978

03/11/2019, 6:53 PM
I am finding
PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1 pulumi preview
to fail the same way btw.
Locally or in CI?
local:
Copy code
❯ pulumi plugin ls
NAME        KIND      VERSION  SIZE    INSTALLED     LAST USED
aws         resource  0.17.1   156 MB  4 days ago    12 minutes ago
aws         resource  0.17.0   156 MB  4 days ago    12 minutes ago
aws         resource  0.16.10  156 MB  15 hours ago  now
gcp         resource  0.16.9   61 MB   15 hours ago  now
kubernetes  resource  0.21.0   45 MB   4 days ago    now
kubernetes  resource  0.20.4   45 MB   15 hours ago  now
kubernetes  resource  0.18.0   43 MB   15 hours ago  now

TOTAL plugin cache size: 661 MB
i

incalculable-sundown-82514

03/11/2019, 6:54 PM
In whatever environment is failing. Those logs seem to indicate that there aren’t any plugins installed at all
m

millions-judge-24978

03/11/2019, 6:54 PM
Should be able to run that after
yarn
correct?
(and pulumi being installed)
i

incalculable-sundown-82514

03/11/2019, 6:54 PM
yeah, correct
m

millions-judge-24978

03/11/2019, 6:55 PM
This would support that:
Copy code
NAME  KIND  VERSION  SIZE  INSTALLED  LAST USED



TOTAL plugin cache size: 0 B
Installing with
curl -L <https://get.pulumi.com/> | bash -s
i

incalculable-sundown-82514

03/11/2019, 6:56 PM
okay, that’s good info! This is after
yarn install
? Looks like we may have regressed the auto plugin installation that is attached to the NPM package.
m

millions-judge-24978

03/11/2019, 6:56 PM
Yes it is
I don't seem to have any pulumi NPM packages out of date locally
i

incalculable-sundown-82514

03/11/2019, 6:57 PM
does this still reproduce when you run
yarn install
with
PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH
set to 1?
(last question, sorry 😆 )
m

millions-judge-24978

03/11/2019, 6:58 PM
let me try
You mean do
PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1 yarn install
right?
Add it to that
i

incalculable-sundown-82514

03/11/2019, 6:58 PM
yeah, though even better would be
export PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1
as early as you can in your CI shell script
just so we cover all our bases
m

millions-judge-24978

03/11/2019, 7:01 PM
appears to be same result
i

incalculable-sundown-82514

03/11/2019, 7:02 PM
gotcha, thanks! that’s disappointing - I’ll work on this right away
m

millions-judge-24978

03/11/2019, 7:02 PM
Copy code
yarn install v1.13.0

warning package.json: No license field

warning infrastructure: No license field

[1/4] Resolving packages...

[2/4] Fetching packages...

warning Pattern ["@pulumi/kubernetes@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v4/npm-@pulumi-kubernetes-0.21.0-c8695d145a1097a79dbb13f33393a0d169f7e2ef/node_modules/@pulumi/kubernetes" as pattern ["@pulumi/kubernetes@^0.21.0"]. This could result in non-deterministic behavior, skipping.

warning Pattern ["@pulumi/pulumi@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v4/npm-@pulumi-pulumi-0.17.1-a481cff714ca7b577b4ea8d57da0e43d4f464131/node_modules/@pulumi/pulumi" as pattern ["@pulumi/pulumi@^0.17.1","@pulumi/pulumi@^0.17.0","@pulumi/pulumi@^v0.17.0","@pulumi/pulumi@^0.17.1","@pulumi/pulumi@^0.17.1"]. This could result in non-deterministic behavior, skipping.

[3/4] Linking dependencies...

warning " > @typescript-eslint/eslint-plugin@1.4.2" has unmet peer dependency "typescript@*".

warning " > @typescript-eslint/parser@1.4.2" has unmet peer dependency "typescript@*".

warning "@typescript-eslint/eslint-plugin > @typescript-eslint/typescript-estree@1.4.2" has unmet peer dependency "typescript@*".

warning "@typescript-eslint/eslint-plugin > tsutils@3.8.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev".

[4/4] Building fresh packages...

Done in 12.76s.
if helpful
Maybe in mean time I should just add
pulumi plugin install aws
?
i

incalculable-sundown-82514

03/11/2019, 7:04 PM
yes, I believe so:
pulumi plugin install resource aws v0.17.0
m

millions-judge-24978

03/11/2019, 7:07 PM
I actually opted for just
pulumi plugin install
which gave me everything I needed (must check package.json or something?)
i

incalculable-sundown-82514

03/11/2019, 7:08 PM
oh, perfect!
I actually did not know we had that…
😆
m

millions-judge-24978

03/11/2019, 7:08 PM
😄
FYI it appears I still need
PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1
after installing plugins manually