Recent issue regarding service resource


#1

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


#2

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 ameya@simplyhired.com 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


#3

Hi Ameya

Were you able to resolve this issue? I am facing same issue in my recipe.

Thanks
Amrut