php: php-fpm Service Not Found on PHP 5 Installations
I’m running a test kitchen instance with Ubuntu 14.04 and PHP 5.5.9. I can install the php5-fpm package manually, but the php_fpm_pool resource notifies/restarts php-fpm, not php5-fpm.
Here’s the tail of the chef-client run output:
Running handlers:
[2016-01-11T21:25:01+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-01-11T21:25:01+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 25.579421826 seconds
[2016-01-11T21:25:01+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2016-01-11T21:25:01+00:00] ERROR: resource template[/etc/php5/fpm/pool.d/wordpress.conf] is configured to notify resource service[php-fpm] with action restart, but service[php-fpm] cannot be found in the resource collection. template[/etc/php5/fpm/pool.d/wordpress.conf] is defined in /tmp/kitchen/cache/cookbooks/php-fpm/definitions/php_fpm_pool.rb:27:in `block in from_file'
[2016-01-11T21:25:02+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
I tried overriding the node['php']['fpm_service'] attribute to php5-fpm (instead of php-fpm) but Chef is not picking up the change. (Probably a separate issue.)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (8 by maintainers)
It might be easier in the interim to just edit the resource after calling the recipe.
Then any calls to the package will reference the correct service name instead.