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

Cannot find a resource matching service[apache2] #10

Open
voslartomas opened this issue Oct 19, 2015 · 0 comments
Open

Cannot find a resource matching service[apache2] #10

voslartomas opened this issue Oct 19, 2015 · 0 comments

Comments

@voslartomas
Copy link

Did anyone encounter this error, when provisioning vagrant?

/tmp/vagrant-chef/da8f1f74ef69a56cb37f6ff65c260d84/cookbooks/xdebug/recipes/default.rb:
==> default: 
==> default:  24:  
==> default:  25:  template node['xdebug']['config_file'] do
==> default:  26:    source 'xdebug.ini.erb'
==> default:  27:    owner 'root'
==> default:  28:    group 'root'
==> default:  29:    mode 0644
==> default:  30:    unless node['xdebug']['web_server']['service_name'].empty?
==> default:  31>>     notifies :restart, resources("service[#{node['xdebug']['web_server']['service_name']}]"), :delayed
==> default:  32:    end
==> default:  33:  end
==> default:  34:  
==> default:  35:  directives = node['xdebug']['directives']
==> default:  36:  
==> default:  37:  unless directives.nil?
==> default:  38:    if directives.key?('remote_log')
==> default:  39:      file directives['remote_log'] do
==> default:  40:        owner 'root'
==> default: 
==> default: 
==> default: Running handlers:
==> default: [2015-10-19T14:34:14+00:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default: [2015-10-19T14:34:14+00:00] ERROR: Exception handlers complete
==> default: Chef Client failed. 0 resources updated in 01 seconds
==> default: [2015-10-19T14:34:14+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2015-10-19T14:34:14+00:00] ERROR: Cannot find a resource matching service[apache2] (did you define it first?)
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

1 participant