[chef] Re: recent issue regarding service resource


Chronological Thread 
  • From: Matthew Moretti < >
  • To: " " < >
  • Subject: [chef] Re: recent issue regarding service resource
  • Date: Tue, 14 Jul 2015 09:21:21 -0400

Hello Ameya,

Was there a stacktrace that you can show us?  Also, what OS and version are you running this on?



Matt Moretti

On Tue, Jul 14, 2015 at 7:40 AM, Ameya Savale < " target="_blank"> > wrote:
Hi my chef recipes have recently started breaking when I use a service resource. Whenever I try to use the service resource to start or stop a service, my chef run breaks with the following error:

TypeError
    ---------
    no implicit conversion of false into Array

For example I try to start the postfix service using the following in my recipe

service "postfix" do
      action [:enable, :start]
end

but when I run the recipe it fails

* service[postfix] action enable

    ================================================================================
    Error executing action `enable` on resource 'service[postfix]'
    ================================================================================

    TypeError
    ---------
    no implicit conversion of false into Array

ERROR: service[postfix] (base::setup_mail line 54) had an error: TypeError: no implicit conversion of false into Array

This has started occurring recently, and the error is not really making sense to me. Does anyone have any idea why this might be happening? Thanks




Archive powered by MHonArc 2.6.16.

§