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

Download failed context deadline exceeded #187

Open
jacob-carlborg opened this issue Dec 4, 2024 · 0 comments
Open

Download failed context deadline exceeded #187

jacob-carlborg opened this issue Dec 4, 2024 · 0 comments

Comments

@jacob-carlborg
Copy link
Contributor

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

I would like a way to deal with the error: Download failed context deadline exceeded. Either that Packer could automatically retry when this error occurs or if it was possible to configure the deadline so I can increase it.

Use Case(s)

I have a Packer file that can build an image for a single operating system but for multiple versions of the same operating system. Some of these versions are older and therefore the boot media is not located in the same location (URL) as the other versions, it's been moved to an archive site. I've handled this by adding the URL for the archive site to the iso_urls option. So for some of the versions it's expected to not find the URL at all entries in the iso_urls option, only at one entry, the archive site.

Sometimes when I build an image for an older version I get the following error: Download failed context deadline exceeded [1]. It looks like Packer correctly finds the URL but while downloading something fails. Therefore Packer will continue and try the next entry available in iso_urls. But in the case of the older version it's not expected to be available in any other entry and therefore they all result in a 404 response code. Eventually it will run out of entries and the whole build will fail.

[1] https://github.com/cross-platform-actions/freebsd-builder/actions/runs/12155317641/job/33896628780#step:6:113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant