-
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
Error initializing provisioner 'shell' on packer version 1.6.2 and 1.6.3 due to OOM #10005
Comments
Hey there, thanks for reaching out! Could you provide us more information on what builder you're using and a simplified template and steps we can use to reproduce the issue? |
Hello! We are using the google compute builder and running it in cloud build. We are only experiencing this with the shell provisioner and don't use any custom plugins. Simplified template looks something like this:
I will try to come up with a reproducer. |
Hello! I have tried to reproduce the error without running our full build, but with no success. As I said, this is in GCP Cloud Build and we have 20+ steps running in parallel and the errors does not appear on the same step every time and does not appear when I run any of the steps individually, nor if I create a simple mock template like the one above and run it in 30 parallel steps. Do you have any suggestions on how we can narrow this down? |
Hi, it sounds to me like you're hitting some kind of compute limit of the instance you're building on. Try splitting your Packer run across multiple cloud builds, or running on a more powerful instance. Here's some documentation about available instance types: https://cloud.google.com/compute/docs/machine-types#n1_machine_type |
Yes, I think you are correct! Running on a bigger machine worked fine:
Are there any changes between 1.6.0 and 1.6.2/1.6.3 that would make the builds require more resources? |
I'm definitely going to look into that based on this report. |
This issue has been synced to JIRA for planning. JIRA ID: HPR-767 |
After upgrading packer from version 1.6.0 to 1.6.2, we started experiencing the following kind of errors in our builds:
and
We experience the same error after upgrading to 1.6.3, but when downgrading to 1.6.0, we can run our builds again without issues.
Are there any changes in versions later than 1.6.0 that can cause these issues?
The text was updated successfully, but these errors were encountered: