I’ve just started getting this error when I do a run of a cookbook that had
been working (albeit before a hefty refactor) I’ve tried to undo all of the
things, but can’t seem to get this error to go away… what seems most odd
here is that it appears to originate from the apache2 cookbook itself, but
I know that it sets itself up as a service because it’s there when I ssh in.

[2014-12-23T00:59:02+00:00] ERROR: chaucer_service_php[auth]
(auth::developer line 15) had an error: Chef::Exceptions::ResourceNotFound:
resource template[/etc/apache2/mods-available/php5.conf] is configured to
notify resource service[apache2] with action reload, but service[apache2]
cannot be found in the resource collection.
template[/etc/apache2/mods-available/php5.conf] is defined in
/tmp/kitchen/cache/cookbooks/apache2/definitions/apache_mod.rb:21:in `block
in from_file’

I’ve just started getting this error when I do a run of a cookbook that had
been working (albeit before a hefty refactor) I’ve tried to undo all of the
things, but can’t seem to get this error to go away… what seems most odd
here is that it appears to originate from the apache2 cookbook itself, but I
know that it sets itself up as a service because it’s there when I ssh in.

[2014-12-23T00:59:02+00:00] ERROR: chaucer_service_php[auth]
(auth::developer line 15) had an error: Chef::Exceptions::ResourceNotFound:
resource template[/etc/apache2/mods-available/php5.conf] is configured to
notify resource service[apache2] with action reload, but service[apache2]
cannot be found in the resource collection.
template[/etc/apache2/mods-available/php5.conf] is defined in
/tmp/kitchen/cache/cookbooks/apache2/definitions/apache_mod.rb:21:in `block
in from_file’

I’m one of the maintainers of the apache2 cookbook, and if you’d like to go over some of the changes to the cookbook, I’d be happy to chat with you a bit. The apache2 cookbook has gone through quite a few major changes recently so it’s not surprising things aren’t working like they used to before!

I’ve just started getting this error when I do a run of a cookbook that had
been working (albeit before a hefty refactor) I’ve tried to undo all of the
things, but can’t seem to get this error to go away… what seems most odd
here is that it appears to originate from the apache2 cookbook itself, but I
know that it sets itself up as a service because it’s there when I ssh in.

[2014-12-23T00:59:02+00:00] ERROR: chaucer_service_php[auth]
(auth::developer line 15) had an error: Chef::Exceptions::ResourceNotFound:
resource template[/etc/apache2/mods-available/php5.conf] is configured to
notify resource service[apache2] with action reload, but service[apache2]
cannot be found in the resource collection.
template[/etc/apache2/mods-available/php5.conf] is defined in
/tmp/kitchen/cache/cookbooks/apache2/definitions/apache_mod.rb:21:in `block
in from_file’