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

Incompatible with 11.8.0 #1

Closed
mikelococo opened this Issue Nov 17, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@mikelococo

mikelococo commented Nov 17, 2013

libraries / api.rb requires a chef file that no longer exists as of 11.8.0:
requires 'chef/rest/rest_request'

https://github.com/opscode/chef/tree/11.8.0/lib/chef

When running the cookbook under the latest chef, it produces the following error:

[2013-11-17T02:40:39+00:00] ERROR: Running exception handlers
[2013-11-17T02:40:39+00:00] ERROR: Exception handlers complete
[2013-11-17T02:40:39+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-11-17T02:40:39+00:00] ERROR: cannot load such file -- chef/rest/rest_request

================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postfixadmin/libraries/api.rb
================================================================================


LoadError
---------
cannot load such file -- chef/rest/rest_request                                                                                                                                                      [11/893]


Cookbook Trace:
---------------
  /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postfixadmin/libraries/api.rb:4:in `<top (required)>'


Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/postfixadmin/libraries/api.rb:

  1:  
  2:  require 'uri'
  3:  require 'net/http'
  4>> require 'chef/rest/rest_request'
  5:  
  6:  module PostfixAdmin
  7:    module API
  8:      @@cookie = nil
  9:      @@authenticated = false
 10:  
 11:      def self.request(method, path, body, ssl=false)
 12:        proto = ssl ? 'https' : 'http'
 13:        port = ssl ? 443 : 80
@zuazo

This comment has been minimized.

Show comment
Hide comment
@zuazo

zuazo Nov 17, 2013

Owner

Thanks @mikelococo for your detailed report 😄 I released the version 0.1.2 that fixes this problem.

Owner

zuazo commented Nov 17, 2013

Thanks @mikelococo for your detailed report 😄 I released the version 0.1.2 that fixes this problem.

mburns referenced this issue in mburns/postfixadmin-cookbook Mar 11, 2018

Merge pull request #1 from mburns/nginx_chef
move to the official chef_nginx cookbook fork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment