Error when updating queries.yaml in db1
[2017-07-02T10:32:38+00:00] INFO: cookbook_file[/opt/prometheus/postgres_exporter/queries.yaml] sending reload action to service[postgres_exporter] (delayed)
Recipe: <Dynamically Defined Resource>
* service[postgres_exporter] action reload[2017-07-02T10:32:38+00:00] INFO: Processing service[postgres_exporter] action reload (dynamically defined)
* #<Chef::Provider::Service::Simple:0x00000008068350> requires a reload_command be set in order to perform a reload
================================================================================
Error executing action `reload` on resource 'service[postgres_exporter]'
================================================================================
Chef::Exceptions::UnsupportedAction
-----------------------------------
#<Chef::Provider::Service::Simple:0x00000008068350> requires a reload_command be set in order to perform a reload
Compiled Resource:
------------------
# Declared in
service("postgres_exporter") do
provider Chef::Provider::Service::Simple
action [:nothing]
supports {:restart=>true, :reload=>true, :status=>true}
retries 0
retry_delay 2
default_guard_interpreter :default
service_name "postgres_exporter"
enabled nil
running nil
masked nil
pattern "postgres_exporter"
start_command "/usr/bin/sv start /etc/service/postgres_exporter"
stop_command "/usr/bin/sv stop /etc/service/postgres_exporter"
status_command "/usr/bin/sv status /etc/service/postgres_exporter"
restart_command "/usr/bin/sv restart /etc/service/postgres_exporter"
end
Platform:
---------
x86_64-linux
Running handlers:
[2017-07-02T10:32:38+00:00] ERROR: Running exception handlers
- PrometheusHandler
Running handlers complete
[2017-07-02T10:32:38+00:00] ERROR: Exception handlers complete
Chef Client failed. 18 resources updated in 42 seconds
[2017-07-02T10:32:38+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2017-07-02T10:32:38+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-07-02T10:32:38+00:00] ERROR: service[postgres_exporter] (dynamically defined) had an error: Chef::Exceptions::UnsupportedAction: #<Chef::Provider::Service::Simple:0x00000008068350> requires a reload_command be set in order to perform a reload
[2017-07-02T10:32:38+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
cc/ @jtevnan