Hello,
The alternative workaround is to run Chef-client as a scheduled task which will not have the same startup dependencies as starting it as a service. The chef-client cookbook supports this method[1].
There's arguments to be made for both methods, but scheduled task is more resilient than windows_service to the startup issues, and I'd recommend it to anyone experiencing those issues.
[1] https://github.com/opscode-cookbooks/chef-client/blob/master/recipes/task.rbOn Mon, Aug 31, 2015 at 10:18 AM, Julian Varanini < " target="_blank"> > wrote:Thanks Gregory,I forgot to mention these are AWS instances. I going to try other windows 2012r2 instances and see if the behavior changes.Thanks again,Julian
Sent from my iPhoneWe’ve run into this issue as well on our Windows 2012R2 hosts. In our cases, it seems that setting startup to Automatic (Delayed) does indeed fix the startup problem, but from the documentation for chef_service_manager I’m not sure how to do this automatically, or if it would require some mangling via windows_service in a recipe.We haven’t noticed this issue on other non-2012R2 Windows hosts.Thanks,Gregory--
Gregory K. Ruiz-Ade < " target="_blank"> >On Aug 31, 2015, at 9:04 AM, Julian Varanini < " target="_blank"> > wrote:We are having an issue with the12.4.1 chef client for windows 2012 R2 (12.4.0 fails as well). No matter ifwe install the service via the msi or the chef_service_manager command thechef service will not start on its own and reports to windows that it hastimed out. I have read online that if you set it to Automatic delayed thatthis fixes the issue however that has not worked for us. I have also added DNS and wmi as dependencies. I can start itmanually and it runs as it should but it will not start on its own. Any help is appreciated.ThanksJulian
425.341.3619 – " style="color:rgb(17,85,204)" target="_blank"> my: Linkedin Twitter
CHEF | TM |
Archive powered by MHonArc 2.6.16.