-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Compile error loading Opscode::IIS::Helper::Windows #149
Comments
This is a question above my pay grade, i'll apply the patch that resolved the issue immediately and then we will need to deep dive. |
Because the iis cookbook depends on the windows cookbook, the windows/libraries/windows_helper.rb should be loaded first. I'll look to see if something changed between 12.0.3 and 12.1.0 that could affect load order. |
I did not see it being loaded first when I ran in debug mode. |
In the normal course of events the chef-client cookbook does not depend on IIS (which...makes sense), I was only picking it up due to an unrelated error. I don't know if there are other cases where a multi-platform cookbook might depend on this cookbook and a Linux user could run into this error. I suspect it is possible, but since my example was flawed I don't know the likelihood. Close or fix as you see fit. :) |
@agperson glad we resolved chef-boneyard/chef-client#285. In this situation though, I'm not sure why we aren't seeing the windows cookbook being loaded first, which should be where that module comes from. Can you confirm that the copy of the iis cookbook that you're running has a dependency on the windows cookbook in it's metadata, and what the version of the windows cookbook is that you're using? |
I can confirm that the copy of the IIS cookbook is version 4.1.0 and depends on |
@agperson can you share a gist of a 'chef-client -l debug' output? I made a fake cookbook that depended on iis, and running Chef 12.1.1 it properly loaded the windows cookbook first:
|
There is an error with this cookbook on Linux (tested on Amazon Linux 2014.9 and CentOS 7.0) when running under Chef client 12.1+. Attempting to converge with a run list of "recipe[chef-client]" (which transitively depends on "iis") fails with the following error. This error does not occur when using the latest Chef 11 client to converge. Hiding the
include Windows::Helper
statement under anif RUBY_PLATFORM
resolves the error. I wonder if there is some new behavior in Chef 12 that prevents a Windows library from loading on Linux?The text was updated successfully, but these errors were encountered: