blackfire-cookbook icon indicating copy to clipboard operation
blackfire-cookbook copied to clipboard

Error executing action `enable` on resource 'service[blackfire-agent]'

Open Flowlance opened this issue 5 years ago • 0 comments

Hi. I'm getting an error when installing this on Ubuntu 18.04. Any workaround for this?

================================================================================
Error executing action `enable` on resource 'service[blackfire-agent]'
================================================================================
 
Chef::Exceptions::Service
-------------------------
/usr/sbin/update-rc.d -n -f blackfire-agent failed - #<Process::Status: pid 27859 exit 1>
 
Resource Declaration:
---------------------
# In /var/chef/runs/207d22f6-aeaa-498c-9be3-b606c1348622/local-mode-cache/cache/cookbooks/blackfire/recipes/agent.rb
 
34: service 'blackfire-agent' do
35:   not_if { node[cookbook_name]['agent']['server_id'].to_s.empty? }
36:   not_if { node[cookbook_name]['agent']['server_token'].to_s.empty? }
37:   supports status: true, start: true, stop: true, restart: true
38:   action [:enable]
39:   subscribes :restart, 'template[/etc/blackfire/agent]',  node[cookbook_name]['agent']['restart_mode']
40: end
 
Compiled Resource:
------------------
# Declared in /var/chef/runs/207d22f6-aeaa-498c-9be3-b606c1348622/local-mode-cache/cache/cookbooks/blackfire/recipes/agent.rb:34:in `from_file'
 
service("blackfire-agent") do
action [:enable]
supports {:status=>true, :start=>true, :stop=>true, :restart=>true}
retries 0
retry_delay 2
default_guard_interpreter :default
service_name "blackfire-agent"
pattern "blackfire-agent"
declared_type :service
cookbook_name "blackfire"
recipe_name "agent"
not_if { #code block }
not_if { #code block }
end
[2019-02-27T12:10:44+01:00] INFO: template[/etc/blackfire/agent] sending restart action to service[blackfire-agent] (delayed)
[2019-02-27T12:10:44+01:00] INFO: Processing service[blackfire-agent] action restart (blackfire::agent line 34)
 
================================================================================
Error executing action `restart` on resource 'service[blackfire-agent]'
================================================================================
 
Chef::Exceptions::Service
-------------------------
/usr/sbin/update-rc.d -n -f blackfire-agent failed - #<Process::Status: pid 27951 exit 1>
 
Resource Declaration:
---------------------
# In /var/chef/runs/207d22f6-aeaa-498c-9be3-b606c1348622/local-mode-cache/cache/cookbooks/blackfire/recipes/agent.rb
 
34: service 'blackfire-agent' do
35:   not_if { node[cookbook_name]['agent']['server_id'].to_s.empty? }
36:   not_if { node[cookbook_name]['agent']['server_token'].to_s.empty? }
37:   supports status: true, start: true, stop: true, restart: true
38:   action [:enable]
39:   subscribes :restart, 'template[/etc/blackfire/agent]',  node[cookbook_name]['agent']['restart_mode']
40: end
 
Compiled Resource:
------------------
# Declared in /var/chef/runs/207d22f6-aeaa-498c-9be3-b606c1348622/local-mode-cache/cache/cookbooks/blackfire/recipes/agent.rb:34:in `from_file'
 
service("blackfire-agent") do
action [:enable]
supports {:status=>true, :start=>true, :stop=>true, :restart=>true}
retries 0
retry_delay 2
default_guard_interpreter :default
service_name "blackfire-agent"
pattern "blackfire-agent"
declared_type :service
cookbook_name "blackfire"
recipe_name "agent"
not_if { #code block }
not_if { #code block }
end
 
Platform:
---------
x86_64-linux
 

Flowlance avatar Feb 27 '19 11:02 Flowlance