-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
Chef fails with a fatal error when building an image #31
Comments
Maybe it's happened by image_cmd_timeout. If so, it would be good to raise a descriptive error anyway. |
Yeah; when I got this error, I increased cmd_timeout on my resource and it was fixed. I think the timeout is something setup in Chef's shell_out mixin, so keying a better error might be something more suited for upstream? |
At least when I'm running, it has the descriptive "command timed out" error a few lines up.
Here's the generator: I can probably begin/rescue it and return a more helpful message saying to change container_cmd_timeout / image_cmd_timeout or LWRP cmd_timeout. I'll fiddle shortly. If this works, I'll leave it at FATAL because I'm not sure how useful it would be to continue the Chef run should one of these fail, it would likely be much more of a headache for other resources/behavior later in the run. |
Got this worked out so it prints a helpful error message and is also catchable should you want rescue logic (for retries, etc) in wrapping cookbooks. I'll document and release this feature in a few minutes as 0.21.0 of the cookbook.
|
Hi, I am experiencing a weird error on my Vagrant (Ubuntu 12.04) installation.
I am using latest chef configured with
config.omnibus.chef_version = :latest
The recipe looks like:
It seems that it trying to run the right command which is
docker build -t buildstep:buildstep github.com/progrium/buildstep
.When I run this command manually as root in my vagrant installation it works nicely and it returns code 0. While chef fails:
Nothing more, no backtrace. Thank you for a help
The text was updated successfully, but these errors were encountered: