Skip to content
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

undefined method `path' for Chef::Resource::Execute #175

Closed
zeroXten opened this issue Dec 5, 2014 · 5 comments
Closed

undefined method `path' for Chef::Resource::Execute #175

zeroXten opened this issue Dec 5, 2014 · 5 comments

Comments

@zeroXten
Copy link

zeroXten commented Dec 5, 2014

Getting the following error when converging. Tested on CentOS 6.4 and Ubuntu 14.04:

* rabbitmq_plugin[rabbitmq_management] action enable[2014-12-05T15:59:34+00:00] INFO:    Processing rabbitmq_plugin[rabbitmq_management] action enable (rabbitmq::mgmt_console line 27)
[2014-12-05T15:59:34+00:00] INFO: Enabling RabbitMQ plugin 'rabbitmq_management'.


    ================================================================================
 Error executing action `enable` on resource 'rabbitmq_plugin[rabbitmq_management]'
     ================================================================================

NoMethodError
-------------
undefined method `path' for Chef::Resource::Execute

Cookbook Trace:
---------------
/tmp/kitchen/cookbooks/rabbitmq/providers/plugin.rb:43:in `block (2 levels) in class_from_file'
       /tmp/kitchen/cookbooks/rabbitmq/providers/plugin.rb:41:in `block in class_from_file'


       Resource Declaration:
       ---------------------

       # In /tmp/kitchen/cookbooks/rabbitmq/recipes/mgmt_console.rb

        27:   rabbitmq_plugin plugin do
        28:     action :enable

        29:     notifies :restart, "service[#{service_name}]", :immediately
        30:   end
        31: end

       Compiled Resource:
       ------------------
       # Declared in /tmp/kitchen/cookbooks/rabbitmq/recipes/mgmt_console.rb:27:in `block in from_file'


       rabbitmq_plugin("rabbitmq_management") do
         action [:enable]
         retries 0
         retry_delay 2
         default_guard_interpreter :default

         cookbook_name :rabbitmq
         recipe_name "mgmt_console"
         plugin "rabbitmq_management"
       end

   [2014-12-05T15:59:34+00:00] INFO: Running queued delayed notifications before re-raising exception
@jjasghar
Copy link
Contributor

jjasghar commented Dec 5, 2014

Awesome, thanks. Yeah I've seen this too. I'm investigating now.

@jjasghar
Copy link
Contributor

jjasghar commented Dec 5, 2014

The line that triggers this error is here: https://github.com/jjasghar/rabbitmq/blob/master/providers/plugin.rb#L43

@jjasghar
Copy link
Contributor

jjasghar commented Dec 5, 2014

Ok, removing that line allows the converge to continue. So something is broken on that. (yes i'm writing this real time and stream of conscious. ) 😁

@jjasghar
Copy link
Contributor

jjasghar commented Dec 5, 2014

It looks like this is a Starting Chef Client, version 12.0.0 issue? I'm confirming that the path attribute is still in the execute block.

@jjasghar
Copy link
Contributor

jjasghar commented Dec 5, 2014

#176 --> if i can get some 👍s on it please.

@jjasghar jjasghar closed this as completed Dec 5, 2014
wenchma pushed a commit to wenchma/rabbitmq that referenced this issue Dec 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants