great-sunset-355
02/27/2023, 7:43 AM"pluginDownloadURL": "<github://api.github.com/pulumiverse>",
limited-rainbow-51650
02/27/2023, 8:00 AMhandsome-candle-10543
02/27/2023, 8:10 AMpulumi plugin install
not supporting pluginDownloadURL
?echoing-dinner-19531
02/27/2023, 8:24 AMpulumi plugin install
can't work out pluginDownloadURL
automatically, it needs the --server
option. But I only know of two real issues around plugin downloads:
1. The above issue where we lose track of the download url when providers are restored from state
2. We don't retry github 403 rate limit errorsgreat-sunset-355
02/27/2023, 8:26 AM1.
because I worked around 2.
by caching plugins directory and GITHUB_TOKENhandsome-candle-10543
02/27/2023, 8:31 AM1. The above issue where we lose track of the download url when providers are restored from statethe issue for us this time was that an older version of the provider was specified in the state from previous runs and that version was downloaded correctly, but the new version was not.
echoing-dinner-19531
02/27/2023, 8:33 AMhandsome-candle-10543
02/27/2023, 8:38 AMnode_modules
cache between our github workflows, but not the pulumi plugin
cache.
So in our (code) build/test step we install cache node_modules
-> when we run the pulumi workflow the npm module is already installed -> no new plugin download from yarn install -> crash at runtimeechoing-dinner-19531
02/27/2023, 8:39 AMhandsome-candle-10543
02/27/2023, 8:40 AMpluginDownloadURL
echoing-dinner-19531
02/27/2023, 8:40 AMhandsome-candle-10543
02/27/2023, 8:41 AMRun pulumi/actions@v4
Configured range: ^3
Matched version: v3.55.0
Install destination is /home/runner/.pulumi
Successfully deleted pre-existing /home/runner/.pulumi/bin
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/.pulumi -f /home/runner/work/_temp/7b6bed36-6bbd-44ed-98a9-ec9aaf662737
Logging into the Pulumi Service backend.
pulumi preview on orgname/stackname
Error: code: -2
stdout:
stderr: Command failed with exit code 255: pulumi preview --diff --parallel 2147483647 --exec-agent pulumi/actions@v4 --color always --exec-kind auto.local --event-log /tmp/automation-logs-preview-o7seSM/eventlog.txt --stack bluecodecom/bcx-shared --non-interactive
[resource plugin sentry-0.0.4] installing
error: Could not automatically download and install resource plugin 'pulumi-resource-sentry' at version v0.0.8, install the plugin using `pulumi plugin install resource sentry v0.0.8`.
Underlying error: error downloading plugin sentry to file: failed to download plugin: sentry-0.0.8: 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-sentry-v0.0.8-linux-amd64.tar.gz>
v0.0.4
, which is referenced from the stack is downloaded correctlyv0.0.8
from package.json
failsechoing-dinner-19531
02/27/2023, 8:42 AMbrash-hairdresser-60389
03/08/2023, 9:48 AM401 HTTP error fetching plugin from <https://api.github.com/repos/pulumiverse/pulumi-sentry/releases/tags/v0.0.8>
This happens whatever workflow I use, using automation api, try to install it using the CLI on my dev machine, every where.limited-rainbow-51650
03/08/2023, 10:01 AMcurl -i <https://api.github.com/rate_limit>
To increase these limits, make sure that you have a valid GITHUB_TOKEN
set. Pulumi will (when defined) send this along on any plugin download request to make it an authenticated request.