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
/usr/local/bin/consul-template is created as a zero-length file #40
Comments
Thanks for opening the issue, I've reproduced this on my end. I'm already looking at a related bug (#38), so I'll see if I can resolve this at the same time. |
- removes ark (uses libarchive instead) - fixes version updates using a symlink (Issue #38) - fixes issue that could cause a zero-length consul-template file to be created (Issue #40) - updates checksums to use releases.hashicorp.com for all version (also simplified install_binary logic) - adds new 0.12.2 version to checksums
I just merged some changes into master that updates the way binaries are downloaded/extracted/etc. Let me know if this fixes things for you. |
I think we should be able to close this one. @jperville have you tested it? |
Hi @adamkrone, I confirm that the current master version of this cookbook fixes my issue. Looking forward to new release of this cookbook, thank you very much. |
@jperville awesome, I'll close this out. There's another issue I want to get resolved before I do another release, but that should hopefully happen in the next week. |
Thank you very much. |
When:
/usr/local/bin/consul-template
file does not exist/var/chef/cache/consul-template.zip
file existsThen running
chef-client
will result in the/usr/local/bin/consul-template
being created as a zero-length file (and of course, the service[consul-template] will not be running at the end of the chef-run).This condition is easy to reproduce, just type
rm /usr/local/bin/consul-template
on existing setup before running chef-client again.Here is the relevant portion of my chef-client log (with my comments added):
The archive should be extracted in all cases when
/usr/local/bin/consul-template
does not exist.The text was updated successfully, but these errors were encountered: