You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do?
I've tried to install sensu using the puppet module:
puppet install sensu/sensu
What happened?
RabbitMQ and Redis are installed. Sensu is installed after I installed the APT key manually (see issue Sensu packages cannot be authenticated #654) but sensu client is not started because of a ruby error (s. below), which I guess caused by the empy /etc/sensu/conf.d/client.json file. As all other files, redis.json, rabbitmq.json and api json are empty, too.
What did you expect to happen?
That sensu-client and sensu-api are also started and the configuration files are fileld up according to the initialization parameters of the class sensu.
How can someone reproduce the problem?
Use the manifest file below.
Command used and debugging output
What does your puppet config look like (including any hiera config)
This is the manifest file in my modul "sensu_server":
The fragment of output of the command on the client: puppet agent --onetime --no-daemonize --verbose:
Error: Could not start Service[sensu-client]: Execution of '/bin/systemctl start sensu-client' returned 1: Job for sensu-client.service failed because the control process exited with error code. See "systemctl status sensu-client.service" and "journalctl -xe" for details.
Error: /Stage[main]/Sensu::Client::Service/Service[sensu-client]/ensure: change from stopped to running failed: Could not start Service[sensu-client]: Execution of '/bin/systemctl start sensu-client' returned 1: Job for sensu-client.service failed because the control process exited with error code. See "systemctl status sensu-client.service" and "journalctl -xe" for details.
In /var/log/sensu/sensu-client.log I see the following
/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-settings-9.2.1/lib/sensu/settings/loader.rb:359:in `deep_merge': undefined method `each' for nil:NilClass (NoMethodError)
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-settings-9.2.1/lib/sensu/settings/loader.rb:131:in `load_file'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-settings-9.2.1/lib/sensu/settings/loader.rb:165:in `block in load_directory'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-settings-9.2.1/lib/sensu/settings/loader.rb:164:in `each'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-settings-9.2.1/lib/sensu/settings/loader.rb:164:in `load_directory'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-settings-9.2.1/lib/sensu/settings.rb:29:in `block in load'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-settings-9.2.1/lib/sensu/settings.rb:28:in `each'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-settings-9.2.1/lib/sensu/settings.rb:28:in `load'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-settings-9.2.1/lib/sensu/settings.rb:48:in `get'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-0.26.5/lib/sensu/daemon.rb:133:in `load_settings'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-0.26.5/lib/sensu/daemon.rb:53:in `initialize'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-0.26.5/lib/sensu/client/process.rb:29:in `initialize'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-0.26.5/lib/sensu/client/process.rb:17:in `new'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-0.26.5/lib/sensu/client/process.rb:17:in `run'
from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-0.26.5/exe/sensu-client:10:in `<top (required)>'
from /opt/sensu/bin/sensu-client:22:in `load'
from /opt/sensu/bin/sensu-client:22:in `<main>'
Is this a masterless or master based puppet setup?
It's a master base setup.
Platform and version information
Your OS: Ubuntu 16.04 on the puppet client, 12.04 on the puppet server
Your Ruby version: 2.3.1p112 on the puppet client, 1.9.3p484 on the puppet server
Your version of Puppet: opens source 3.8.5 on the puppet client, 3.7.3 on the puppet server
Your version of Sensu: not so far, the package is not installed by this module
Your version of this module: 2.2.0
Anything else to add that you think will be helpful?
The text was updated successfully, but these errors were encountered:
The problem was caused by the pluginsync settings on the puppet agent. It has to be enabled, see puppet documentation. The weird thing is that no error message appears anywhere about missing (custom) types.
Description of problem
I've tried to install sensu using the puppet module:
RabbitMQ and Redis are installed. Sensu is installed after I installed the APT key manually (see issue Sensu packages cannot be authenticated #654) but sensu client is not started because of a ruby error (s. below), which I guess caused by the empy
/etc/sensu/conf.d/client.json
file. As all other files, redis.json, rabbitmq.json and api json are empty, too.That sensu-client and sensu-api are also started and the configuration files are fileld up according to the initialization parameters of the class sensu.
Use the manifest file below.
Command used and debugging output
This is the manifest file in my modul "sensu_server":
The fragment of output of the command on the client:
puppet agent --onetime --no-daemonize --verbose
:In /var/log/sensu/sensu-client.log I see the following
It's a master base setup.
Platform and version information
Anything else to add that you think will be helpful?
The text was updated successfully, but these errors were encountered: