Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synced-folder plugin not available through CDN #23

Closed
lionello opened this issue Mar 28, 2023 · 7 comments · Fixed by #57
Closed

synced-folder plugin not available through CDN #23

lionello opened this issue Mar 28, 2023 · 7 comments · Fixed by #57
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed size/S Estimated effort to complete (1-2 days).
Milestone

Comments

@lionello
Copy link

What happened?

Tried to install using pulumi plugin install resource synced-folder v0.10.2 and failed with 403. Other plugins are available (unauth'ed) from that CloudFront URL, but synced-folder is not.

Expected Behavior

Expected to be able to download the plugins through the CDN URL (not just GitHub releases)

Steps to reproduce

  • install using pulumi plugin install resource synced-folder v0.10.2:
error: [resource plugin synced-folder-0.10.2] downloading from : failed to download plugin: synced-folder-0.10.2: 403 HTTP error fetching plugin from https://get.pulumi.com/releases/plugins/pulumi-resource-synced-folder-v0.10.2-darwin-arm64.tar.gz
  • try curl:
$ curl -L https://get.pulumi.com/releases/plugins/pulumi-resource-synced-folder-v0.10.2-darwin-arm64.tar.gz                                                                                                                                                                       <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>009YP6GB4NG2AX12</RequestId><HostId>WCQ9uX9fue1eFhUV/m1Ki0WH1EJ3wJh4Sk6U9dszQQXQQeXgaNux6ofmQnAwQtm0chxYh55eIXI=</HostId></Error>                                                                             

Output of pulumi about

CLI          
Version      3.60.0
Go Version   go1.20.2
Go Compiler  gc

Host     
OS       darwin
Version  13.2.1
Arch     arm64

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/lionello
User           lionello
Organizations  lionello

Pulumi locates its logs in /var/folders/wp/g4m6l2dx3f71wsy8j6l2wwdc0000gn/T/ by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@lionello lionello added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Mar 28, 2023
@Zaid-Ajaj
Copy link

Hi there @lionello thank you for taking the time to file the issue 🙏

I have tried the command above: pulumi plugin install resource synced-folder v0.10.2 and it worked as expected. It could be that Github hit a sort of late limit at the time you tried to download the plugin from the releases. Can you give it another try to check whether it was something intermittent? Thank you!

@Zaid-Ajaj Zaid-Ajaj added awaiting-feedback Blocked on input from the author and removed needs-triage Needs attention from the triage team labels Mar 31, 2023
@lionello
Copy link
Author

I'm still getting the same error. Funnily enough it only happens with this plugin. Other plugins download fine? If it's just on my system, then I might have something weird here, so feel free to close.

@cnunciato
Copy link
Contributor

I tried this as well and didn't have any issues, and the usual cause is indeed API rate-limiting on the GitHub end. @lionello does this repro when you have a GITHUB_TOKEN environment variable set with a valid GitHub access token?

@jimjoes
Copy link

jimjoes commented Apr 27, 2023

I'm getting the same error. No change if I add a valid key to the GITHUB_TOKEN local env var, either.

@nielskrijger
Copy link

nielskrijger commented May 31, 2023

Having the same issue, specifically with this plugin. Github rate limits are exceeded and the fallback to get.pulumi.com fails.

Is there a reason why synced-folder is not available publicly?

The issue is also referenced here: pulumi/actions#815

@bensivo
Copy link

bensivo commented Aug 11, 2023

I have also experienced this issue, in my case it was within a Gitlab CI pipeline. Because of docker-in-docker we were having to install this plugin on each run.

Would really appreciate a CDN, these rate limits probably don't trigger for anyone doing local development - you only install once. But in CI environments, you end up running installs much more frequently and can easily hit the rate limit if you have multiple projects running on the same agent.

@cnunciato cnunciato removed the awaiting-feedback Blocked on input from the author label Aug 13, 2023
@cnunciato cnunciato added this to the 0.100 milestone Jan 2, 2024
@cnunciato cnunciato added the size/S Estimated effort to complete (1-2 days). label Jan 2, 2024
@cnunciato cnunciato self-assigned this Jan 2, 2024
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Jan 2, 2024
@cnunciato
Copy link
Contributor

Binaries for 0.10.2 and 0.11.1 have been published, and future releases should be published automatically.

$ pulumi plugin install resource synced-folder v0.11.1 --server https://get.pulumi.com/releases/plugins
[resource plugin synced-folder-0.11.1] installing
Downloading plugin: 45.80 MiB / 45.80 MiB [=========================] 100.00% 3s

$ pulumi plugin ls
NAME           KIND      VERSION  SIZE    INSTALLED      LAST USED
synced-folder  resource  0.11.1   353 MB  8 seconds ago  8 seconds ago

@github-project-automation github-project-automation bot moved this to 🤔 Triage in Docs 📚 Feb 2, 2024
@cnunciato cnunciato moved this from 🤔 Triage to 🏁 Done in Docs 📚 Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed size/S Estimated effort to complete (1-2 days).
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

7 participants