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

busy-napkin-83700

03/08/2023, 10:29 PM
Running into an issue when trying to update the aws plugin
Copy code
[resource plugin aws] installing
warning: Error downloading plugin: unknown version for plugin aws
Will retry in 80ms [1/5]
warning: Error downloading plugin: unknown version for plugin aws
Will retry in 160ms [2/5]
warning: Error downloading plugin: unknown version for plugin aws
Will retry in 320ms [3/5]
warning: Error downloading plugin: unknown version for plugin aws
Will retry in 640ms [4/5]
warning: Error downloading plugin: unknown version for plugin aws
Will retry in 1.28s [5/5]
error: [resource plugin aws] downloading from : failed to download plugin: aws: unknown version for plugin aws
Copy code
pulumi plugin install resource aws
error: 401 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-aws/releases/latest>
b

billowy-army-68599

03/08/2023, 10:31 PM
where are you running from?
b

busy-napkin-83700

03/08/2023, 10:31 PM
locally. but seeing the same issue with github workflow
b

billowy-army-68599

03/08/2023, 10:36 PM
could you run
Copy code
curl -i <https://api.github.com/repos/pulumi/pulumi-aws/releases/latest>
b

busy-napkin-83700

03/08/2023, 10:36 PM
locally, works fine
b

billowy-army-68599

03/08/2023, 10:36 PM
any chance you could add it as a step to your action as well?
b

busy-napkin-83700

03/08/2023, 10:36 PM
we have v5.3.0 currently installed
5.4.0, not 5.3.0
b

billowy-army-68599

03/08/2023, 10:37 PM
the solution is to add a GITHUB_TOKEN env var to your action, but we’re seeing increased instances of this so trying to get more info
b

busy-napkin-83700

03/08/2023, 10:39 PM
ok, that looked to work, even if the var is blank
thanks for your help
s

straight-fireman-55591

03/09/2023, 8:55 AM
Hi, I'm having a similar error. empty
GITHUB_TOKEN
doesn't help. I use
pulumi/pulumi:latest
image
Copy code
$ pulumi preview

Previewing update (dev):

warning: A new version of Pulumi is available. To upgrade from version '3.56.0' to '3.57.0', visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.

error: could not load plugin for gcp provider 'urn:pulumi:dev::xxxx::pulumi:providers:gcp::default': Could not automatically download and install resource plugin 'pulumi-resource-gcp', install the plugin using `pulumi plugin install resource gcp`.

Underlying error: 401 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-gcp/releases/latest>
pulumi plugin install resource gcp
brings the same error: error:
401 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-gcp/releases/latest>
e

echoing-dinner-19531

03/09/2023, 9:03 AM
These 401 errors are a little surprising. We can't see any clear documented reason from GitHub why they'd be happening but we have a ticket now open to investigate: https://github.com/pulumi/pulumi/issues/12379
s

straight-fireman-55591

03/09/2023, 9:14 AM
If I use my own GITHUB_TOKEN would that solve it temporarily ?
e

echoing-dinner-19531

03/09/2023, 9:15 AM
Probably, we're assuming this is related to rate limits despite being 401 not 403 like a normal rate limit error. Would be good to hear back if that does actually help.
s

straight-fireman-55591

03/09/2023, 9:17 AM
will try that today
After adding
- export GITHUB_TOKEN=${PULUMI_TOKEN_GITHUB}
to the pipeline, pulumi works. I used
<https://github.com/settings/personal-access-tokens/new>  New fine-grained personal access token Beta
with
Public Repositories (read-only)
Updated github ticket: https://github.com/pulumi/pulumi/issues/12379#issuecomment-1461658628
e

echoing-dinner-19531

03/09/2023, 9:59 AM
We've raised https://github.com/pulumi/pulumi/issues/12391 to track this 401 issue, looks like a auth header regression in 3.56 when we refactored to code to also support GitLab auth headers. Fix should be released today in 3.57.1.
3.57.1 has been released with a fix for this
17 Views