Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Unknown
-
Resolution: Fixed
-
Affects Version/s: 10.12.0
-
Fix Version/s: 10.14.0
-
Component/s: Chef Client
-
Labels:None
-
Environment:
Windows Server 2008 R2
Description
Using the instructions in CHEF-1736 I configured my chef-client to run as a service in Windows Server 2008 R2.
If the run list is empty the service will start and run without issue.
If there are any items in the run list the service will fail with the following error:
[2012-07-10T16:22:45+10:00] ERROR: NameError: Cannot find a resource for template on windows version 6.1.7600
[2012-07-10T16:22:45+10:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
For my testing I used the getting-started recipe from the Fast Start guide.
I have attached the chef.log and chef-stacktrace.out files
Issue Links
- relates to
-
CHEF-3313
Resource lookups can silently fail in Chef::Resource::PlatformMap
-
Exception handler does not provide accurate information, which should also be improved (not part of this fix). If the exception is handled immediately, the message is:
uninitialized constant Chef::Resource::Template
windows_service.rb doesn't load all of the appropriate libraries to run chef-client. A fix is provided here:
https://github.com/timops/chef/tree/CHEF-3301