laradji / zabbix

Zabbix chef cookbook
Apache License 2.0
91 stars 125 forks source link

Halite is not compatible with no_lazy_load false, please set no_lazy_load true in your Chef configuration file. #209

Open blagoygenadiev-taulia opened 9 years ago

blagoygenadiev-taulia commented 9 years ago

This module doesn't work for me. Please have e look a the error I receive. I give up, I think its better to do look for other zabbix instal and configure module!

[2015-06-08T12:06:39+00:00] INFO: Storing updated cookbooks/iis/recipes/remove_default_site.rb in the cache. [2015-06-08T12:06:39+00:00] INFO: Storing updated cookbooks/iis/attributes/default.rb in the cache. [2015-06-08T12:06:39+00:00] INFO: Storing updated cookbooks/iis/recipes/mod_auth_windows.rb in the cache. [2015-06-08T12:06:39+00:00] INFO: Storing updated cookbooks/iis/recipes/mod_compress_dynamic.rb in the cache. [2015-06-08T12:06:39+00:00] INFO: Storing updated cookbooks/iis/CHANGELOG.md in the cache. [2015-06-08T12:06:39+00:00] INFO: Storing updated cookbooks/iis/libraries/matcher.rb in the cache. [2015-06-08T12:06:39+00:00] INFO: Storing updated cookbooks/iis/recipes/mod_tracing.rb in the cache. [2015-06-08T12:06:39+00:00] INFO: Storing updated cookbooks/iis/libraries/helper.rb in the cache. [2015-06-08T12:06:39+00:00] INFO: Storing updated cookbooks/iis/README.md in the cache. [2015-06-08T12:06:39+00:00] INFO: Storing updated cookbooks/iis/metadata.json in the cache.  ================================================================================ Recipe Compile Error in /var/chef/cache/cookbooks/poise/libraries/default.rb ================================================================================

RuntimeError ------------ Halite is not compatible with no_lazy_load false, please set no_lazy_load true in your Chef configuration file.

Cookbook Trace: --------------- /var/chef/cache/cookbooks/poise/libraries/default.rb:17:in `<top (required)>'

Relevant File Content: ---------------------- /var/chef/cache/cookbooks/poise/libraries/default.rb:   10: # Unless required by applicable law or agreed to in writing, software  11: # distributed under the License is distributed on an "AS IS" BASIS,  12: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  13: # See the License for the specific language governing permissions and  14: # limitations under the License.  15: #  16:
 17>> raise 'Halite is not compatible with no_lazy_load false, please set no_lazy_load true in your Chef configuration file.' unless Chef::Config[:no_lazy_load]  18: $LOAD_PATH << File.expand_path('../../files/halite_gem', FILE)  19: 

[2015-06-08T12:06:39+00:00] ERROR: Running exception handlers [2015-06-08T12:06:39+00:00] ERROR: Exception handlers complete [2015-06-08T12:06:39+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2015-06-08T12:06:39+00:00] ERROR: Halite is not compatible with no_lazy_load false, please set no_lazy_load true in your Chef configuration file. [2015-06-08T12:06:39+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) [2015-06-08T12:06:39+00:00] INFO: Deleting client key... time="2015-06-08T12:06:49Z" level="info" msg="The command

ghost commented 9 years ago

It looks like this is the dependency chain:

zabbix -> ufw -> firewall -> poise

The dependency on ufw is open-ended, which is generally a bad practice. ufw's dependency on firewall is also opened-ended. I've opened https://github.com/opscode-cookbooks/ufw/issues/16 to recommend the use of a pessimistic version constraint from ufw to firewall. Once that is done, this cookbook should be updated to use a pessimistic version constraint to ufw.

blagoygenadiev-taulia commented 9 years ago

Hi Ian, Thanks for looking at the issue, I hope they will set the pessimistic version constraint soon.

tb3088 commented 9 years ago

https://github.com/tb3088/zabbix/commit/c1ebc97b5a51418b45fd793d6f5fdfe3ff8f7c29

itssasanka commented 9 years ago

To me, this error came via Firewall gem (Which zabbix was depending on) Zabbix > ufw > firewall.

I just changed the firewall version to '0.11.8' and it worked. ( As some guy suggested here: https://github.com/tb3088/zabbix/commit/c1ebc97b5a51418b45fd793d6f5fdfe3ff8f7c29)