Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Unknown
-
Resolution: Unresolved
-
Affects Version/s: 0.10.8
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:
Windows 7, Windows 2003
Description
If you set your log_location in the client.rb to a file that has not been created, such as:
log_location "c:/opscode/chef/logs/chef.log"
You will get an error that it can't find the config file, and then it also warns that it can't find the file you've set in the client.rb:
[Thu, 26 Apr 2012 17:59:29 -0700] WARN: Can not find config file: c:\opscode\chef\conf\client.rb, using defaults. [Thu, 26 Apr 2012 17:59:29 -0700] WARN: No such file or directory - c:/opscode/chef/logs/chef.log
It seems like the first error should not be posted, as it makes the problem confusing.
Related Ticket: http://help.opscode.com/discussions/problems/1594-can-not-find-config-file-windows-2003
Activity
- All
- Comments
- History
- Activity
- Transitions Summary
I've noticed that in your example the file paths are using improper (and/or inconsistent) slashes. Windows uses backslashes ("\") for file paths. If you can test for and run within powershell.exe, that allows for either slash to be used (it interpolates and corrects within the shell).