-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
packer init tries to fetch versions if their release pipelines are strill running #12399
Comments
This and this issue are essentially the same |
Hi @hluaces, As pointed out by @MatthewPugliese, this issue should now be fixed since v1.2.5 of the plugin is available. I'll transfer this issue over to Packer, since this is where the code that manages plugin installations lives, we'll see to fix it later. Thanks for submitting this issue! |
Hi @hluaces, Out of curiosity, is the template that runs the build generated? I see that in your logs there's the following: This line hints at a version constraint of Running packer init on a block such as the one you shared gives me this line in the logs: In this case,we have multiple candidates (for example in logs I had I tested this both on the current dev version, and 1.8.6, and this seems consistent between these two versions. Could you confirm if that's the case? |
I apologize, that was probably me playing around and sending the wrong log 🤦♂️ Our pin was Unfortunately our actions run without Nevertheless, I can confirm that:
When our actions failed for the third time I tried to reproduce the issue locally, which led me to start moving the pin around to confirm my suspicions. Once I did, I unlocked my actions by using a |
Hi @hluaces, Thanks for the update! In the current state it'll be hard to confirm there's a problem on Packer since I'm unable to reproduce the error, so in case that happens again, could you add Also, since you're pinning on version ~> 1.1 in the CI environment, could you make sure the CI runs version 1.8.6? For transparence, Packer bases itself on the tags to get the list of versions available, so even if the release is incomplete, by default, it will attempt to get 1.8.5 in this example, and fallback to a previous version, so long as you're running a version of Packer that had the missing checksum fixed. Hope that helps! We'll keep this issue open in case the problem manifests itself again in the future, please feel free to update it if that happens again, or with any other information you may encounter. |
Thanks, I'll make sure to do that. If I experience further issues I'll let you know, so feel free to close the issue if you don't want it lingering around 👍 Thanks for everything 🙏 |
Hi there @hluaces, This issue has it would seem become stale, so I'll close it now, but please feel free to reopen it if you encounter the problem again in the future, thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Overview of the Issue
packer init
tries to fetch releases of the plugin when a new version is published but its github release action has not finished. As the artifacts are not present as a GitHub release,packer init
returns a 404 error when trying to fetch them.E.g.: when
1.2.5
was being built (see: https://github.com/hashicorp/packer-plugin-amazon/actions/runs/4862838453/jobs/8669730242) our packer workflows failed because we are just pinning the major version (version = "~> 1.0"
):Reproduction Steps
Hard to reproduce, but:
"~> 1.0"
packer-plugin-amazon
(I don't know if this is a problem with this particular plugin or with packer itself)release
GH action is running, try to runpacker init
and see how it 404s when trying to fetch the new versionPlugin and Packer version
Simplified Packer Buildfile
I'm omitting most of the buildfile as this is the relevant bit. Let me know if I need to improve upon this:
Operating system and Environment details
Happens in my local machine (Ubuntu 20, amd64) and while running in GitHub actions with a
ubuntu-latest
executorLog Fragments and crash.log files
The text was updated successfully, but these errors were encountered: